XSLT <xsl:value-of> Element
The XSLT <xsl:value-of> element is used to extract the value of selected node. It puts the value of selected node as per XPath expression, as text.
Parameter explanation
Index | Name | Description |
---|---|---|
1) | select | It specifies the XPpath expression to be evaluated in current context. |
2) | disable-outputescaping | Default-“no”. If “yes”, output text will not escape XML characters from text. |
XSLT <xsl:value-of> Element Example
Let’s take an example to see the usage of XSLT <xsl:value-of> element with its attribute “id” and its child <firstname>, <lastname>, <nickname>, and <salary>.
Employee.xml
Employee.xsl
Output:
Next TopicXSLT <for-each>