summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2012-07-31 23:32:05 +0200
committerDaniel Veillard <veillard@redhat.com>2012-09-06 20:32:17 +0800
commit2b7e16f7711dbd860a44e4fa40e48d00812f7333 (patch)
tree996960ce48fc89065b1459435303fa94c3c5924e
parent3195073c740be579892c08cfc02efeae1a1c0dbd (diff)
downloadlibxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.tar.gz
libxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.tar.bz2
libxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.zip
Test for bug #680920
Add test cases for the EXSLT func bug
-rw-r--r--tests/docs/bug-178.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-178.out2
-rw-r--r--tests/general/bug-178.xsl18
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/docs/bug-178.xml b/tests/docs/bug-178.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-178.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index f7fdea9c..523183ba 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -181,6 +181,7 @@ EXTRA_DIST = \
bug-171.out bug-171.xsl \
bug-172.out bug-172.xsl \
bug-173.out bug-173.xsl \
+ bug-178.out bug-178.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-178.out b/tests/general/bug-178.out
new file mode 100644
index 00000000..e829790a
--- /dev/null
+++ b/tests/general/bug-178.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<result/>
diff --git a/tests/general/bug-178.xsl b/tests/general/bug-178.xsl
new file mode 100644
index 00000000..aab57a4a
--- /dev/null
+++ b/tests/general/bug-178.xsl
@@ -0,0 +1,18 @@
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:func = "http://exslt.org/functions"
+ version="1.0" extension-element-prefixes="func">
+
+<func:function name="func:uaf">
+ <xsl:text/>
+ <func:result/>
+</func:function>
+
+<xsl:template match="/">
+ <result>
+ <xsl:value-of select="func:uaf()"/>
+ </result>
+</xsl:template>
+
+</xsl:stylesheet>
+