Re: [xml-dev] XSLT vs. CSS (Re: Indexing)

From
Thomas B. Passin <>
To
Date
2003-07-01T13:40:57Z
ID
<001401c33fd6$66befe10$6401a8c0@tbp1>
Thread
Re: [xml-dev] XSLT vs. CSS (Re: Indexing)
[Michael Day
> For this reason I believe that CSS is a more effective approach for
> styling XML documents, while XSLT is best used for more general
> transformation tasks, such as generating documents and reports from
> "data-oriented" XML, or migrating from one vocabulary to another.
>

It is not an either-or situation.  I routinely write CSS into documents
using xslt, getting the best of both.  The CSS is essentially just a block
of CDATA, so there are no problems for the xslt processor.  I sometimes
develop the CSS on a mock up, them paste it into the xslt stylesheet.  And,
of course, you can keep the css in a separate file and just import it into
the document.

Cheers,

Tom P