Re: CSS in XML format ?

> I would like to do convert strict XHTML + CSS documents to some other 
> format using XSLT. In order to do so, interpreting the stylesheet 
> information during this transformation is essential.Unfortunately, the 
> CSS syntax is very hard (to use a euphemism) to interpret with XSLT.
>  
> Is there an initiative to have CSS use XML syntax ? I understand that 
> when CSS 1 was first proposed by Bos & Lie XML was not around, but why 
> not plan a transition towards XML syntax ?

Patrick,

XSL is already in XML format, while CSS has it's own unique one. I find 
the syntax of CSS to be much much more intuitive for what it does, and 
would strongly object to it being rewritten in xml. Apasrt from anything 
else it would be much more verbose, and harder to learn. I also believe 
it'd be less intuitive, create much larger file sizes than necessary, 
and of course it wouldn't work in current browsers which already do a 
good job interpreting it as it is.

If the presentation is that important that you need to use it when 
you're transforming I recommend you use XSL, however I'd take another 
look at what you're doing. CSS is purely presntational, whereas XML 
languages are meant to describe what they're marking up -- not suggest 
how to mark it up (apart from XSL obviously).

-- 
Lach
__________________________________________
http://members.evolt.org/luminosity/
MSN: luminosity @ members.evolt.org
__________________________________________

Received on Wednesday, 10 July 2002 09:47:12 UTC