XSLT xsl:with-param Element
Complete XSLT Element Reference Manual
Definition and Usage
xsl:with-param The element defines the value of a parameter passed to a template.
Note:xsl:with-param The value of the name attribute of the element must match the xsl:param name in the element; otherwise it is ignored. xsl:with-param .
Note:xsl:apply-templates and xsl:call-template Both allow the use of the xsl:with-param .
**Tip:** You can add a value to a variable through the content of the xsl:with-param element's content or the select attribute to assign a value to the parameter!
Syntax
name="name" select="expression">
property
| property | Value | Description |
|---|---|---|
| name | name | Required. Specifies the name of the parameter. |
| select | expression | Optional. Defines the XPath expression for the value of the parameter. |
Example 1
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> Title:
Complete XSLT Element Reference Manual