Name
<xsl:attribute-set>
Synopsis
<xsl:attribute-set name= value ... />
Description
Allows the naming of a collection of formatting attributes, which can
be applied using a formatting object. For example, the following will
assign a bold 24-point font to the name ”heading-style“
, which can be
used with the xsl:use
attribute:
<xsl:attribute-set name="heading-style" font-size="24pt" font-weight="bold"/> <xsl:template match="heading"> <fo:block xsl:use="heading-style"> <xsl:apply-templates/> </fo:block> </xsl:template>
Get XML Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.