you can have a stylesheet named attributes.xsl
in this one you can have for examples
<xsl:attribute-set name="block1">
<xsl:attribute name="font-size">12pt</xsl:attribute>
<xsl:attribute name="color">blue</xsl:attribute>
<xsl:attribute-set >
then in your others stylesheets if you want for example a block to have
thoses attributes you
can make something like
<fo:block
xsl:use-attibute-sets="block1"
>
----- Original Message -----
From: "Matthew Lancashire" <[EMAIL PROTECTED]>
To: "Fop-User-Help (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 1:30 PM
Subject: Common formatting
> What is the easiest methond of defineing what font/colour/sizes an element
> has without re-coding the definitions in each xsl.
>
> e.g.
> A text field of name has font arial, colour grey and size 12 point..
> It appears in 20 xml documents that are to be tranformed by fop to pdf.
> I do not want to have to type the fo formatting commands into 20 xsl-fo
> stylesheets because of the maintenance overhead. I want some standard
class
> of some sort
> that I can apply to the xsl element that pics up the style from one place.
> hence if the cont changes to courier I only need to change it once and not
> in each of the 20 xsl style sheets.
>
>
>
> Matthew Lancashire
> IT Project Manager
> Initial Electronic Security Ltd
>
> Tel: +44 1282 473554
> Fax: +44 1254 267552
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]