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

Re: Is it possible to use css stylesheets in xsl fo

Subject: Re: Is it possible to use css stylesheets in xsl fo
From: "Mike Haarman" <mhaarman@xxxxxxxxxxxxxxxxxx>
Date: Mon, 5 May 2003 21:29:34 -0500
use css in xsl
Cross posted to www-xsl-fo list, where it belongs.

----- Original Message ----- 
From: "Mark Ivs" <markivs2003@xxxxxxxxx>

> I have lot of inline style information in my xsl fo
> file.
>

This information belongs in an xsl:attribute-set.  They can be collected and
moved to an xsl:include file if you prefer that degree of separation.  They have
a mechanism for inheriting properties and can greatly clean up your style
regime.

>
> I was wondering if it is possible to import a .css

No.  Do any commercial FO processors do this yet?  Any standalone packages?  FOP
does not.

> By doing so my code will be much cleaner. Any help on
> this is appreciated.

CSS2 is largely mapped onto a subset of XSL-FO.  It should be possible to define
your styles in terms of xsl:attribute-sets of formatting objects properties and
write a stylesheet to convert those to css styles.  This would streamline
maintenance of a single set of property definitions exposed in two separate
syntaxes.  Typically, though, there is not that much correspondence between the
web and print presentations.

hth,

Mike


 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.