[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: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 10 Jul 2002 13:34:05 -0700 (PDT)
attaching css in strict xhtml
--- "J.Pietschmann" <j3322ptm at yahoo dot de> wrote:

> 
> 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?
> 
> J.Pietschmann


Yes, it is not difficult (e.g. see
http://sources.redhat.com/ml/xsl-list/2002-03/msg01074.html), but it
isn't interesting, too.


Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

 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.