Javatpoint Logo
Javatpoint Logo

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:

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA