summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-02-26 13:54:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-02-26 13:54:35 +0000
commit2fd968f166d5918054b317ce4ad0c1ee2761cb0c (patch)
tree639a5923c7a1efc27f37f56d6a937715ca7dab14 /tests
parent35184c89089ecdbdc202cd24ba30db9b082601aa (diff)
downloadlibxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.tar.gz
libxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.tar.bz2
libxslt-2fd968f166d5918054b317ce4ad0c1ee2761cb0c.zip
added test similar to 143 but checking for AVT in local variables. Daniel
* tests/docs/Makefile.am tests/docs/bug-144.xml tests/general/Makefile.am tests/docs/bug-144*: added test similar to 143 but checking for AVT in local variables. Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-144.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-144.out2
-rw-r--r--tests/general/bug-144.xsl10
5 files changed, 15 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 8a328668..04f555ff 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -143,6 +143,7 @@ EXTRA_DIST = \
bug-141.xml \
bug-142.xml \
bug-143.xml \
+ bug-144.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-144.xml b/tests/docs/bug-144.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-144.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 534ae094..156caa4f 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -149,6 +149,7 @@ EXTRA_DIST = \
bug-141.out bug-141.xsl \
bug-142.out bug-142.xsl \
bug-143.out bug-143.xsl \
+ bug-144.out bug-144.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-144.out b/tests/general/bug-144.out
new file mode 100644
index 00000000..61380a17
--- /dev/null
+++ b/tests/general/bug-144.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<foo bar="0foo1">foo1</foo>
diff --git a/tests/general/bug-144.xsl b/tests/general/bug-144.xsl
new file mode 100644
index 00000000..4f62ed75
--- /dev/null
+++ b/tests/general/bug-144.xsl
@@ -0,0 +1,10 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/">
+ <xsl:variable name="foo">foo</xsl:variable>
+ <xsl:variable name="bar">
+ <foo bar="0{$foo}1">foo1</foo>
+</xsl:variable>
+ <xsl:copy-of select="$bar"/>
+</xsl:template>
+</xsl:stylesheet>