I do believe that the class selector is an HTML-only shortcut as defined
by the W3C spec. For XML you can do
<style id="css">
style {display:none;}
note[class=right] {font-weight:bold;}
note[class=left] {font-weight:italic;}
</style>
--J
BB Duck wrote:
> The following simple CSS+XML example works just fine under
> Opera and IE 5, any reason why Mozilla can't even handle it
> properly?
>
> <?xml-stylesheet type="text/css" href="#css"?>
> <!-- sidebars.xml -->
> <document>
> <style id="css">
> {}
> style {display:none;}
> note.right {font-weight:bold;}
> note.left {font-weight:italic;}
> </style>
> <note class="right">This is a note with the class "right".</note>
> <note class="left">This is a note with the class "left".</note>
> </document>