RE: [xsl] CSS for XSL:FO?

Subject: RE: [xsl] CSS for XSL:FO?
From: "Andy Joslin" <andy.joslin@xxxxxxxx>
Date: Wed, 27 Nov 2002 15:57:21 -0000
> Is there any way to incorporate CSS so that I don't have to repeat
same style
> settings for each table header font?

You can't use CSS directly as you would with an HTML file (although the
syntax is similar), but if you are processing FO from an XSL stylesheet,
you can use attribute sets to minimize the amount of re-typing..

E.g.

<xsl:attribute-set name="default">
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-size">11pt</xsl:attribute>
</xsl:attribute-set>


<fo:block xsl:use-attribute-sets="default">Factor</fo:block>


Hope this helps



Andy










________________________________________________________________________
This e-mail and its attachments are confidential. If you are not the intended recipient of this e-mail message, please telephone or e-mail us immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. 

Although ri3k Limited believes this e-mail and any attachments to be free of any virus or other defect which may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and ri3k Limited does not accept any responsibility for any loss or damage in any way from its use.

ri3k Limited
Registered in England: 10-12 Ely Place, London, EC1N 6RY
Company Number: 3909745

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


Current Thread