W3C home > Mailing lists > Public > www-style@w3.org > July 2002

Fw: [xsl] Converting Strict XHTML + CSS with XSLT

From: Patrick Andries <pandries@iti.qc.ca>
Date: Wed, 10 Jul 2002 13:20:37 -0700
Message-ID: <057401c2284f$412052c0$2677c818@Patrick2650>
To: <www-style@w3.org>


 ----- Original Message -----
 From: "J.Pietschmann" <j3322ptm@yahoo.de>

 > Jeni Tennison wrote:
> > I think
> > that you will find this very hard to do using XSLT, mainly because
> > parsing CSS (or any text-based format) is not particularly easy. If I
> > were you, I'd have two steps: one to create an XML version of the CSS
> > and the other to do the actual interpretation of the XHTML against the
> > CSS. The hard thing then will be working out how to match a particular
> > XHTML element against the CSS selectors, particularly doing so quickly
> > and efficiently.

> I think selectors can be translated to XPath match patterns
> easily. The whole process would be:
> - XMLify CSS, including transforming CSS selectors to XPath
> - generate a XSLT from the XCSS which will attach XCSS styles
>    to matched elements
> - run the "enrichment" XSLT on the XHTML
> - run the final transformation.
>
> Question: Why isn't anyone working on XCSS, or am I something
> missing?

 Exactly my question.

 P. Andries

 ----------------
 Unicode en français
 (texte normatif, annotations, tous les caractères 3.2)
 http://hapax.iquebec.com
Received on Wednesday, 10 July 2002 16:20:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:15 GMT