Nic Miloslav
Example 34***
A stylesheet can contain several variables of the same name. Stylesheet 1 demonstrates a way how to recover the value of global variable which has the same name as a local one. The Stylesheet 2 demonstrates an incorrect approach. The value of local variable is bounded to xsl:when element. The rest of template therefore sees only the global variable.