[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Converting Strict XHTML + CSS with XSLT

Subject: RE: Converting Strict XHTML + CSS with XSLT
From: Americo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Thu, 11 Jul 2002 10:17:23 +0100
attach css to xslt
Hi Jeni
  XSLT is suposed to transform a document into another, so why not transform
a XML file into a css one and include that with <link>?

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jeni Tennison
Sent: Wednesday, July 10, 2002 11:00 PM
To: J.Pietschmann
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Converting Strict XHTML + CSS with XSLT


Hi Joerg,

> 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.

Yeah, interesting idea. One potential difficulty I can see with it,
though, is that in CSS a single element can match multiple rules, and
the styles from all of those rules are applied (with different
priorities depending on the specificity of the selector). I think it
would be quite hard to mirror that behaviour with XSLT templates...
perhaps if you created multiple XSLT stylesheets from the CSS, each
stylesheet reflecting a different priority and used xsl:apply-imports
within each of them...

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.