1 <?xml version="1.0"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <xsl:output method="xml" indent="yes"/> 4 <!-- FileName: ParameterTest2.xsl --> 5 <!-- Purpose: Reproduce Bugzilla1611 --> 6 7 <xsl:variable name="globalVarAttr" select="/doc/@filename" /> 8 9 <xsl:template match="/"> 10 <out> 11 <globalVarAttr><xsl:value-of select="$globalVarAttr"/><xsl:text>:</xsl:text><xsl:copy-of select="$globalVarAttr"/></globalVarAttr> 12 </out> 13 </xsl:template> 14 15 </xsl:stylesheet>