Hello guys, Here is an interesting problem need to check out any points will
be helpful. Here is the sample code.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="Blank"><xsl:value-of select="concat('','')"/></xsl:variable>
<xsl:variable name="Comp1" select="''"/>
<xsl:variable name="Comp2" select="''"/>
<xsl:variable name="Comp3" select="''"/>
<xsl:variable name="Comp4" select="''"/>
<xsl:variable name="Comp5" select="''"/>
<xsl:variable name="Comp6" select="''"/>
<xsl:variable name="Comp7" select="''"/>
<xsl:variable name="Comp8" select="''"/>
<xsl:variable name="Comp9" select="''"/>
<xsl:variable name="Comp10" select="''"/>
<xsl:variable name="Comp11" select="''"/>
<xsl:variable name="Comp12" select="''"/>
<xsl:variable name="Comps" select="''"/>
<-- DO BUNCH OF THINGS HERE -->
<xsl:for-each select="value from xml">
<xsl:if test="position()&lt;13">
<-- USE AND ASSIGN VALUES TO GLOBAL VARIABLES HERE. ALL THE VARIABLES MAY
OR MAY NOT BE ASSIGNED VALUE-->
</xsl:if>
</xsl:for-each>

<-- HERE I AM TRYING TO ACCESS THOSE ASSIGNED VALUES FROM GLOBAL VARIABLES
AS BELOW BUT IT RESETS TO AN EMPTY STRING CAN SOME ONE TELL ME WHAT IS THE
SCOPE OF VARIABLES IN HERE? -->
<xsl:variable name="Comps"><xsl:value-of select="concat($comp1,$comp2,$comp3,$comp4,$comp5,$comp6,$comp7,$comp8,$comp9,$comp10,$com p11,$comp12)"/></xsl:variable>