Thursday January 20, 2005
|
| CSS vs XSL(T) | Computers |
Slashdot's discussion on CSS vs XSL contains links to a pro-CSS article and a pro-XSL article. This particular discussion focuses on generating printed text (books) as opposed to just web pages. As someone who has written large reporting systems using XSLT, I have to agree that CSS is better for display purposes.
As a programmer, I was drawn to the hybrid of programming structure and markup language that XSL (XSLT really) provides. For my purposes, XSLT was fine, but having worked more with CSS lately, I find that it just makes much more sense to use for web pages. XSL on the back end and CSS in the front - that's the way to go. Just the fact that someone had to write XSL-FO (formatted objects) proves that XSL was lacking in certain areas. And who really wants to write a XSL document just to generate XSL-FO? I don't.
The other big reason to stick with CSS for the display formatting is that it's already so widely used for web pages. Why not just add those last few elements to make hard-formatted printing possible? That seems like the path of least resistance to me. When 99% of the work is already done, why start over with XSL?
Tags:
January 20, 2005 10:05 AM PST
Permalink
| Comments [1]
|
You may also be interested in http://www.xml.com/pub/a/2005/02/09/cssorxsl.html
As to the question of why someone would write an XSLT stylesheet to generate XSL-FO, I can only say that it's the only sensible answer I can think of for producing a book-sized document from XML sources.
Posted by Norman Walsh on February 10, 2005 at 06:14 AM PST #
Comments are closed for this entry.
©
Kevin Chu, Some Rights Reserved.
This work is licensed under a Creative Commons License. Sun Microsystems Trademarks are in effect.
All opinons are mine! Mine! Mine! Mine! Sun Microsystems has nothing to do with them.
