Previous | Next | Indexes
adultinternetusers > Tutorials > XSLT 2.0 Tutorial > Variables and Parameters (5/14) >

Variable shadowing

Global variable can be shadowed by a local one. It means that if local variable has the same name as a global one, the value of the local one is used.


            <xsl:output  method="xml"
            <xsl:variable  name="xxx">xxx-global</xsl:variable>
            <xsl:variable  name="yyy">yyy-global</xsl:variable>

            <xsl:template  match="/aaa">
                  <xsl:variable  name="xxx">xxx-local</xsl:variable>
                  <xsl:variable  name="zzz">zzz-local</xsl:variable>
                        <xsl:value-of  select="$xxx"/>
                        <xsl:value-of  select="$yyy"/>
                        <xsl:value-of  select="$zzz"/>




Previous chapter: Named-Templates
Next chapter: Stylesheet Functions
Previous page: Problems with scope of variables
Next page: Shadowing local variables

Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
Mayor Dave Shawver Stanton

You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks