mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-14 05:09:26 +03:00
* Updated tests affected by recent library changes - tests/general/bug-1-.out, tests/general/bug-24-.out, tests/keys/month.out : (<t></t> now becomes <t/>); tests/general/bug-41-.xsl and tests/general/bug-43.xsl : call-template and apply-template, where the template has no parameter but one is supplied (var should not be affected) tests/general/bug-145.err : changed error text
20 lines
503 B
XML
20 lines
503 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'"/>
|
|
|
|
<!-- Global var shouldn't be changed by call with param -->
|
|
<xsl:template match="doc">
|
|
<xsl:value-of select="$foo"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:variable name="foo" select="'FAILURE'"/>
|
|
<xsl:apply-templates>
|
|
<xsl:with-param name="foo" select="'FAILURE'"/>
|
|
</xsl:apply-templates>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|