Saturday, June 1, 2013

How to define a variable and assign a value using XSLT

How to define a variable and assign a value using XSLT

Define an element

<xsl:variable name="sampleString">XML,XSLT,XPath,SVG,XPointer</xsl:variable>

<xsl:variable name="empName" select ="emp:EmployeeName"/>

Access the element

<name>
   <xsl:value-of select="$empName"/>
</name>

No comments:

Post a Comment