473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2753
It was somewhere outside Barstow when "Thomas" <to*******@gmail.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="yes"
encoding="iso-8859-1"
indent="yes"
method="xml"
media-type="text/html"

doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
/>
Jul 23 '05 #2
In article <11**********************@g14g2000cwa.googlegroups .com>,
"Thomas" <to*******@gmail.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
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...
10
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"...
16
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...
8
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...
1
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;...
18
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...
4
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...
22
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.