Name

<xsl:constant>

Synopsis

<xsl:constant name= name value= value />

Description

Allows the definition of a named constant that can be substituted 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 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.