RE: Fwd: Re: RESEND: Extending xhtml? How?

>At 12:05 PM -0800 1/24/04, Richard Lander wrote:
>>I'm guessing that the 90% browser reference is IE. I believe that you are 
>>saying that IE handles XML+XSLT fine but not XML+CSS .....

OK, I'd better qualify that.  I decided that for my purposes IE6's support 
for XML+CSS just was not adequate as an alternative to XML+XSLT+CSS.

For a start, when rendering XML, IE6 uses its quirksmode (IE 5.5 WIN 
compatibility mode) which perpetuates a bunch of problems/bugs that should 
have been history.  The showstopper for me is Microsoft's broken box model 
which results in non-CSS-compliant calculation of the width of page elements 
when margins, borders and padding are involved (when aren't they?).  That 
means forget cross-browser CSS.

Mozilla, Safari and Opera support CSS selectors based on the presence of, or 
value of, XML (or XHTML) attributes, which is essential if you are styling 
your XML directly, IMHO.
So for:

<account standing="good">
    <balance>100.00</balance>
</account>
<account standing="delinquent">
    <balance>100000.00</balance>
</account>

MS  IE6 does not support:

account[standing="good"] { color : green }
account[standing="delinquent"] { color : red }

or

*[xml:lang|="en"] { color : red }

to match values of the "xml:lang" attribute that begin
with "en", including "en", "en-US", and "en-cockney":

http://www.w3.org/TR/CSS2/selector.html#attribute-selectors>

http://devedge.netscape.com/library/xref/2003/css-support/css2/selectors.html>

However, I'm not sure if this is particularly relevant to Brad's issues, but 
I am sure we have drifted off-topic for this forum ;-))

Cheers Jack
>From: Brad Cox <bcox@virtualschool.edu>
>To: "Richard Lander" <rlander@microsoft.com>, "Jack Lindsey" 
><tuquenukem@hotmail.com>, <xmlschema-dev@w3.org>
>Subject: RE: Fwd: Re: RESEND: Extending xhtml? How?
>Date: Sat, 24 Jan 2004 15:31:04 -0500
>
>At 12:05 PM -0800 1/24/04, Richard Lander wrote:
>>I'm guessing that the 90% browser reference is IE. I believe that you are 
>>saying that IE handles XML+XSLT fine but not XML+CSS .....

OK, I'd better qualify that.  I decided that for my purposes IE6's support 
for XML+CSS just was not adequate as an alternative to XML+XSLT+CSS.

For a start, when rendering XML, IE6 uses its quirksmode (IE 5.5 WIN 
compatibility mode) which perpetuates a bunch of problems/bugs that should 
have been history.  The showstopper for me is Microsoft's broken box model 
which results in non-CSS-compliant calculation of the width of page elements 
when margins, borders and padding are involved.  That means forget 
cross-browser CSS.

Try

Iew uses the quirks compatmode in the XML rendering
>mode. It has exactly the same limitations and features as it has in HTML
>rendering mode for quirks compatmode. The DOM tree is not entirely
correct.......
>--
>liorean <mailto:liorean@user.bip.net>
>
>ViewStyles, ViewScripts, ToggleStyles and GraphicsInfo
>bookmarklets and Theme Switcher, Cookies Handler scripts:
><http://liorean.web-graphics.com/>;

(: Oooh, look at me! Trimming, bottom-posting! :)

Phew, pay dirt! Thanks!

So quirksmode means you're stuck with the broken box
model, etc. etc.

I also thought I remembered (and the URLs below now
seem to confirm) that it doesn't support CSS selectors
based on the presence or value of XML/XHTML attributes,
so for:

<account standing="good">
    <balance>100.00</balance>
</account>
<account standing="delinquent">
    <balance>100000.00</balance>
</account>

MSIE 5.5 (and presumably IE6, since we are in
quirksmode) would not support:

account[standing="good"] { color : green }
account[standing="delinquent"] { color : red }

or

*[xml:lang|="en"] { color : red }

To match values of the "xml:lang" attribute that begin
with "en", including "en", "en-US", and "en-cockney":

or

for an aural style sheet, allow a script to be read
aloud in different voices for each role:

DIALOGUE[character=romeo]
     { voice-family: "Lawrence Olivier", charles, male }

DIALOGUE[character=juliet]
     { voice-family: "Vivien Leigh", victoria, female }


http://www.w3.org/TR/CSS2/selector.html#attribute-selectors>

http://devedge.netscape.com/library/xref/2003/css-support/css2/selectors.html>

But presumably Mozilla does???

Cheers Happy Jack

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

Received on Monday, 26 January 2004 00:57:30 UTC