Lists Home |
Date Index |
- From: Lars Marius Garshol <firstname.lastname@example.org>
- To: XML Dev <email@example.com>
- Date: 03 Oct 1998 00:12:25 +0100
* Paul Prescod
| I presume that there is a reason that CSS was deemed not suitable as
| the formatting model for XSL. CSS did not really have a concept of
| "formatting objects".
CSS2 does, if you look at the 'display' property, and it now has a
boxed display model.
| It only knew how to attach formatting semantics to existing objects.
| At one point, some of the existing objects semantics had to be
| already known: e.g. tables and links. I don't know if that has
| changed recently. If not, CSS would need an overhaul to be
| sufficient for formatting XML documents (or else you would have to
| merge CSS and HTML somehow).
CSS2 has a table model, but can not create links. Links aren't a
problem with XML anyhow, since XLink takes care of that.
The main difference between CSS2 and XSL is that CSS2 cannot reorder
document content, or duplicate it. The support for generated text is
also relatively weak, although it does have a generalized counter
concept which is quite clever.
For many uses CSS2 is going to suffice just fine, and it is much
easier to learn and write than XSL is (the syntax is wonderfully
readable and concise). For more advanced uses CSS2 won't cut it, but
XSL hopefully will.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)