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

IndexNameDescription
1)selectIt specifies the XPpath expression to be evaluated in current context.
2)disable-outputescapingDefault-"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:

XSLT Xsl value of 1
Next TopicXSLT <for-each>




Latest Courses