summaryrefslogtreecommitdiff
path: root/tests/general/bug-47-.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-07-07 17:05:02 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-07-07 17:05:02 +0000
commit6744bd096b0f163a2a54094444b1afe29159d574 (patch)
treed35c25d26bf12e5b59236ab3d0f2964460291335 /tests/general/bug-47-.xsl
parent78e30d87ad8703e9db2be937c68dd7ea97cb7071 (diff)
downloadlibxslt-6744bd096b0f163a2a54094444b1afe29159d574.tar.gz
libxslt-6744bd096b0f163a2a54094444b1afe29159d574.tar.bz2
libxslt-6744bd096b0f163a2a54094444b1afe29159d574.zip
- libxslt/templates.c libxslt/transform.c libxslt/transform.h
libxslt/variables.c: big cleanup on the way templates or template fragments are processed, cleanup of stack building - tests/docs/Makefile.am tests/general/Makefile.am tests/general/bug-4[1-8]-* tests/docs/bug-4[1-8]-*: added a series of regression test for the variable/params lookups - libxslt/transform.c libxslt/xsltutils.[ch] libxslt/xsltproc.c: started working on profiling code, there is just invocation counting yet but the framework is in place. Daniel
Diffstat (limited to 'tests/general/bug-47-.xsl')
-rw-r--r--tests/general/bug-47-.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/general/bug-47-.xsl b/tests/general/bug-47-.xsl
new file mode 100644
index 00000000..60f11bb9
--- /dev/null
+++ b/tests/general/bug-47-.xsl
@@ -0,0 +1,18 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+<xsl:template name="test">
+<xsl:text>SUCCESS</xsl:text>
+</xsl:template>
+
+<xsl:template match="/">
+<xsl:variable name="foo">
+<xsl:call-template name="test"/>
+</xsl:variable>
+<xsl:if test="1">
+<xsl:value-of select="$foo"/>
+</xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>