mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-17 03:22:14 +03:00
* tests/docs/Makefile.am tests/general/Makefile.am tests/general/bug-40-* tests/docs/bug-40-*: added a specific regression test for the variable scope within templates problem Daniel
17 lines
379 B
XML
17 lines
379 B
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version='1.0'>
|
|
|
|
<xsl:variable name="foo" select="'SUCCESS'"/>
|
|
|
|
<xsl:template name="test">
|
|
<xsl:value-of select="$foo"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:variable name="foo" select="'FAILURE'"/>
|
|
<xsl:call-template name="test"/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|