1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-14 05:09:26 +03:00
Files
libxslt/tests/general/bug-72.xsl
Daniel Veillard 3e1a7baad5 added a specific example for bug #58444 in the regression tests Daniel
* tests/docs/Makefile.am tests/docs/bug-72.xml
  tests/general/Makefile.am tests/general/bug-72.*: added a
  specific example for bug #58444 in the regression tests
Daniel
2002-02-11 13:28:51 +00:00

32 lines
841 B
XML

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="message">
<xsl:variable name="foo">foo</xsl:variable>
<ROOT>
<ELEMENT1>
<xsl:variable name="test-var">
<xsl:call-template name="test1"/>
<xsl:value-of select="$foo"/>
</xsl:variable>
<xsl:value-of select="$test-var"/>
<hello/>
</ELEMENT1>
<ELEMENT2>
<xsl:variable name="test-var">
<xsl:call-template name="test2"/>
<xsl:value-of select="$foo"/>
</xsl:variable>
<xsl:value-of select="$test-var"/>
<hello/>
</ELEMENT2>
</ROOT>
</xsl:template>
<xsl:template name="test1">
Some result
</xsl:template>
<xsl:template name="test2">
other one
</xsl:template>
</xsl:stylesheet>