473,671 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I turn quirks mode on for XSL generated data in Mozilla?

In Mozilla:

The problem we are trying to solve: We are using XSL/XML to generate
tables with text in the rows. The spacing is wider then when those same
exact tables are created in regular HTML. We figured out that this has
to do with Mozilla rendering the HTML page in quirks mode, versus the
XML/XSL page being rendered in strict mode.

I can find no way to enable quirks mode in Mozilla for XML/XSL
documents, since it does not appear possible to use the DOCTYPE tag. So
then the question is, how do we fix it the "right" way, within strict
mode, so that the table rows are spaced the way they are in quirks
mode?

This document makes reference to some CSS settings that can be used to
do it:

http://www.mozilla.org/docs/web-deve...q.html#margins

But it gives no specifics, and I can find nothing specifically
explaining the issue and how to fix it.

Any help is welcomed!

Thanks,
Thomas

Jul 23 '05 #1
6 2769
It was somewhere outside Barstow when "Thomas" <to*******@gmai l.com>
wrote:
I can find no way to enable quirks mode in Mozilla for XML/XSL
documents, since it does not appear possible to use the DOCTYPE tag.


What do you mean ? You can't generate it, or Mozilla doesn't use it?

Try something like this in the top of your XSLT

<xslt:output omit-xml-declaration="ye s"
encoding="iso-8859-1"
indent="yes"
method="xml"
media-type="text/html"

doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
/>
Jul 23 '05 #2
In article <11************ **********@g14g 2000cwa.googleg roups.com>,
"Thomas" <to*******@gmai l.com> wrote:
I can find no way to enable quirks mode in Mozilla for XML/XSL
documents, since it does not appear possible to use the DOCTYPE tag.
Knowingly trying to activate the quirks mode is generally a bad
"solution".
This document makes reference to some CSS settings that can be used to
do it:

http://www.mozilla.org/docs/web-deve...q.html#margins

But it gives no specifics, and I can find nothing specifically
explaining the issue
I think the answer explains the issue. How could the answer be improved?
and how to fix it.


td>p:last-child {
margin-bottom: 0;
}
td>p:first-child {
margin-top: 0;
}

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 23 '05 #3
Thomas wrote:
I can find no way to enable quirks mode in Mozilla for XML/XSL
documents, since it does not appear possible to use the DOCTYPE tag.


Firstly, it's not a DOCTYPE tag, it's a DOCTYPE declaration.
http://lachy.id.au/log/2004/12/html-tags

Secondly, quirks mode is an intentionally broken and evil parsing and
rendering mode designed to be compatible with non-conformant pages
designed for IE and NN 4.x browsers, so why would you want to enable it
in the first place? Please try to avoid it at all times by including an
HTML 4.01 Strict or Transitional DOCTYPE in all of your pages.
(Although, in Mozilla, transitional will trigger Almost Standards Mode
with the system identifier (the URI for loose.dtd) included, and quirks
mode without)

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #4
me
"Lachlan Hunt" <sp***********@ gmail.com> wrote in message
news:42******** *************** @per-qv1-newsreader-01.iinet.net.au ...
[snip]
Secondly, quirks mode is an intentionally broken and evil parsing and
rendering mode designed to be compatible with non-conformant pages
designed for IE and NN 4.x browsers, so why would you want to enable it
in the first place?

[snip]

Please explain how parsing can be "evil"?
Signed,
me
Jul 23 '05 #5
me wrote:
"Lachlan Hunt" <sp***********@ gmail.com> wrote in message
news:42******** *************** @per-qv1-newsreader-01.iinet.net.au ...
[snip]
Secondly, quirks mode is an intentionally broken and evil parsing and
rendering mode...


Please explain how parsing can be "evil"?


I didn't say that just parsing was evil, I said the "parsing ... mode".
The way documents are parsed in quirks mode is different from
standards mode, and it's these non-standard differences in both parsing
and rendering that are evil.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #6
me
"Lachlan Hunt" <sp***********@ gmail.com> wrote in message
news:42******** **************@ per-qv1-newsreader-01.iinet.net.au ...
me wrote:
"Lachlan Hunt" <sp***********@ gmail.com> wrote in message
news:42******** *************** @per-qv1-newsreader-01.iinet.net.au ...
[snip]
Secondly, quirks mode is an intentionally broken and evil parsing and
rendering mode...


Please explain how parsing can be "evil"?


I didn't say that just parsing was evil, I said the "parsing ... mode".
The way documents are parsed in quirks mode is different from
standards mode, and it's these non-standard differences in both parsing
and rendering that are evil.

--
Lachlan Hunt


OK, why then do you call these "non-standard differences" evil?
Signed,
me
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
5163
by: Dr.Tube | last post by:
Hi there, I have this web site (www.DrTube.com) which has the following DTD: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> which switches Mozilla to standards compliance mode as I can confirm myself. How can I check whether IE6 and Opera do so too? TIA Regards Xavier van Unen.
10
12985
by: Axel Dahmen | last post by:
Hi, there's one question that's been bothering me for a long time: Why does the TD element not inherit from the BODY element? Is there any reason why properties like "font-family" or "font-size" are not applied to content of TD if I assign them to the BODY element? Thanks a lot for enlightening me! Axel Dahmen
16
2930
by: Jeff Thies | last post by:
Well, it's probably past time for me to regularly include doctype in my html. What is quirks mode and how do I avoid it. I seem to recall a specific url is required. What is the suggested doctype for html4.0 transitional? That's probably what I'm writing. Also, what's the differences between IE5(windows) and IE6?
8
2394
by: Chris Sharman | last post by:
I've got the following url (centre generated by cgi, and including banner, menus, etc designed by someone else) - http://services.ccagroup.co.uk/upbin/oformw?&whsmithwedding This looks as intended on a fair range of browsers (the dark blue menu separators are about 5-6mm). here's identical html, but with the loose dtd referenced on the doctype- http://services.ccagroup.co.uk/proofs/unquirktest.html This gets lots of unwanted padding -...
1
1513
by: don.hosek | last post by:
Here's the relevant piece of code. <div style="position:relative;height:506;width:700; z-index:1; background-image:url(images/Mat-Tan.png);"> <div style="position:absolute;z-index:2; height:0; width:0;"> <img src="images/Frame-Brown-Land.png" alt="" /> </div> <div style="position:absolute;top:100px; left:125px;"> <img src="images/poster1.jpg" alt="" /> </div>
18
2319
by: Neil Cherry | last post by:
I'm in the process of redesigning my web page and started working more with CSS. I have, what I think is, a nice web layout (I'm no expert so I could be wrong). When I tested it with Konqueror and Firefox it works well (a few minor problems) but when I test it with IE 6.0 it doesn't display or it jumbles everything up. I've tried using various examples (conditionals) to get around IE problems but they are causing more problems that they...
4
1775
by: Simon Brooke | last post by:
There is no need to respond to this post. There is, in fact, no possible helpful response to this post. I just needed to tear my hair in public... I have a site I wrote for a customer four years ago. Recently, the customer upgraded their browser (probably on an automatic upgrade) to Internet Explorer 7, and phoned me up to say the site was broken. The site is 'broken', because IE 7 loses a band about 1em high across the top of the page;...
22
13547
by: Harry Haller | last post by:
Is there any other way apart from: document.compatMode == 'CSS1Compat' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>Virtual Library</title> <script type="text/javascript">
3
7202
by: DiMono | last post by:
Consider this code: <input type="button" value="u" style="text-decoration: underline;" /> With a complete doctype definition, Firefox will not render the underline, but IE will. With an incomplete doctype definition, Firefox renders the page in quirks mode, and the underline is rendered. I want the underline to render, but I don't want the page to load in quirks mode. Is there a way to make this happen?
0
8911
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4402
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2808
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.