Subject:i want to capture the xml tag into a variable and use it in xsl:for each select Author:praveen tallapudi Date:27 Aug 2009 11:44 AM Originally Posted: 27 Aug 2009 11:42 AM
hi,
I am new to XSL Development please help me in solving this Issue.
My Issue is --->
This is my existing code
<xsl:for-each select="/XML/CITY/UnitedKingdom/OFFICE">
<option value="{NAME}"><xsl:value-of select="NAME"/></option>
</xsl:for-each>
I need like this
<xsl:variable name="t1" select ="/XML/CITY/UnitedKingdom/OFFICE">
<xsl:for-each select="$t1">
<option value="{NAME}"><xsl:value-of select="NAME"/></option>
</xsl:for-each>
Means here in "t1" i am to capuring the value from "XML/CITY/UnitedKingdom/OFFICE" XML Tag but i am unable to use the value t1 in the xsl:for-each loop.i want to use like this
<xsl:for-each select="$t1"> where t1 replaces the value from XML tag.