Name
<xsl:constant>
Synopsis
<xsl:constant name="
name
" value="
value
"/>
Description
Allows the definition of a named constant that can be substitued in XSL documents. For example:
<xsl:constant name="size" value="24pt"/> <xsl:template match="copyright"> <fo:block font-size="{constant(size)}"> <xsl:apply-templates/> </fo:block> </xsl:template>
Get Webmaster in a Nutshell, Second Edition 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.