Southend Linux User Group

CSS comparison

Comparison of CSS and XSL

Wondering which one to choose? Read “CSS & XSL”

The fact that W3C has developed XSL in addition to CSS has caused some confusion. Why develop a second style sheet language when implementers haven’t even finished the first one? The answer can be found in the table below:

CSS XSL
Can be used with HTML? yes no
Can be used with XML? yes yes
Transformation language? no yes
Syntax CSS XML

The unique features are that CSS can be used to style HTML & XML documents. XSL, on the other hand, is able to transform documents. For example, XSL can be used to transform XML data into HTML/CSS documents on the Web server. This way, the two languages complement each other and can be used
together.

Both languages can be used to style XML documents.

CSS and XSL use the same underlying formatting model and designers therefore have access to the same formatting features in both languages. W3C will work hard to ensure that interoperable implementations of the formatting model are available.

Author: Alan Campion - Page reference: 924
Last modified: Alan Campion - 2014-10-18