Name

<xsl:param>

Synopsis

<xsl:param
   name=”name"
   [select=”expression“]>
   ...
</xsl:param>

An xsl:param element binds its contents to the specified name, which can be called from and included in a template. As a top-level element, xsl:param provides a default value used if the named parameter is not supplied when a stylesheet is called. An xsl:param element may also appear inside an xsl:template element to receive the values of the parameters passed in with xsl:with-param, and to provide a default value good only inside that template for the case where a proper xsl:with-param element is not used. If the select attribute is included, its value becomes the default value of the parameter, in which case the value of the content should be empty.

Get XML Pocket Reference, 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.