W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2003

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

From: Mike Haarman <mhaarman@infinitecampus.org>
Date: Mon, 5 May 2003 21:29:34 -0500
Message-ID: <009301c31377$554fb970$c70aa8c0@ic.org>
To: <www-xsl-fo@w3.org>, <xsl-list@lists.mulberrytech.com>

Cross posted to www-xsl-fo list, where it belongs.

----- Original Message ----- 
From: "Mark Ivs" <markivs2003@yahoo.com>

> 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

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


Received on Monday, 5 May 2003 22:27:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:27 UTC