XSLT <xsl:with-param> Element
Definition and Usage
The <xsl:with-param> element defines the value of a parameter passed to a template.
Note: The value of the name attribute in the <xsl:with-param> element must match the name in the <xsl:param> element, otherwise the <xsl:with-param> element will be ignored.
Note: The <xsl:with-param> element is allowed in both <xsl:apply-templates> and <xsl:call-template>.
Tip: You can assign a value to the parameter either through the content of the <xsl:with-param> element or via the select attribute!
Syntax
Attributes
| Attribute | Value | Description |
|---|---|---|
| name | name | Required. Specifies the name of the parameter. |
| select | expression | Optional. Defines the XPath expression for the value of the parameter. |