Very interesting article, thank you. CSS syntax is indeed very concise and clear, but as the author has noted CSS' only purpose is formatting, and to me it means that input XML document has to be structured similar to desired output. XSLT, on the other hand can be used to format XML documents of arbitrary structure.
If this limitation can be dismissed because input is in fact suitable for CSS formatting, I'd definitely choose CSS over XSLT, provided there are tools that can produce output in desired format (in many cases, PDF). |