github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-43-.xsl (about) 1 <?xml version='1.0'?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 version='1.0'> 4 5 <xsl:variable name="foo" select="'SUCCESS'"/> 6 7 <!-- Global var shouldn't be changed by call with param --> 8 <xsl:template match="doc"> 9 <xsl:value-of select="$foo"/> 10 </xsl:template> 11 12 <xsl:template match="/"> 13 <xsl:variable name="foo" select="'FAILURE'"/> 14 <xsl:apply-templates> 15 <xsl:with-param name="foo" select="'FAILURE'"/> 16 </xsl:apply-templates> 17 </xsl:template> 18 19 </xsl:stylesheet>