1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-17 03:22:14 +03:00
Files
libxslt/tests/general/bug-40-.xsl
Daniel Veillard 78e30d87ad added a specific regression test for the variable scope within templates
* 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
2001-07-07 09:21:53 +00:00

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>