summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-11 13:28:51 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-11 13:28:51 +0000
commit3e1a7baad5b0cbc7dc742ecc57f58882528343e5 (patch)
tree3b3ba07b01ca57826c65a1d8ac147c56005c8ff6 /tests
parent451f8c4c03865214f00b69d00c800d76bd1a10b9 (diff)
downloadlibxslt-3e1a7baad5b0cbc7dc742ecc57f58882528343e5.tar.gz
libxslt-3e1a7baad5b0cbc7dc742ecc57f58882528343e5.tar.bz2
libxslt-3e1a7baad5b0cbc7dc742ecc57f58882528343e5.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-72.xml3
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-72.out6
-rw-r--r--tests/general/bug-72.xsl31
5 files changed, 42 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index a24da2e5..0f32b713 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -72,6 +72,7 @@ EXTRA_DIST = \
bug-69.xml \
bug-70.xml \
bug-71.xml \
+ bug-72.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-72.xml b/tests/docs/bug-72.xml
new file mode 100644
index 00000000..90060bd2
--- /dev/null
+++ b/tests/docs/bug-72.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<message/>
+
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 194b0e48..c53204b8 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -75,6 +75,7 @@ EXTRA_DIST = \
bug-69.out bug-69.xsl \
bug-70.out bug-70.xsl \
bug-71.out bug-71.xsl \
+ bug-72.out bug-72.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-72.out b/tests/general/bug-72.out
new file mode 100644
index 00000000..59dbd8ed
--- /dev/null
+++ b/tests/general/bug-72.out
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<ROOT><ELEMENT1>
+Some result
+foo<hello/></ELEMENT1><ELEMENT2>
+other one
+foo<hello/></ELEMENT2></ROOT>
diff --git a/tests/general/bug-72.xsl b/tests/general/bug-72.xsl
new file mode 100644
index 00000000..9a063b38
--- /dev/null
+++ b/tests/general/bug-72.xsl
@@ -0,0 +1,31 @@
+<?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>