summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2012-08-15 21:09:19 +0200
committerDaniel Veillard <veillard@redhat.com>2012-09-04 14:54:48 +0800
commitaebfee35d1106035dddf897e0e81d72d110b5e63 (patch)
tree9f9f319d2e1be90a8851e5080bac3f916e62b72e /tests
parent14ee81b06c12743a88fbc1676f3d35a86a74e08e (diff)
downloadlibxslt-aebfee35d1106035dddf897e0e81d72d110b5e63.tar.gz
libxslt-aebfee35d1106035dddf897e0e81d72d110b5e63.tar.bz2
libxslt-aebfee35d1106035dddf897e0e81d72d110b5e63.zip
Exit after compilation of invalid func:result
Second part of bug #680920.
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/bug-174.xml1
-rw-r--r--tests/general/bug-174.err1
-rw-r--r--tests/general/bug-174.out0
-rw-r--r--tests/general/bug-174.xsl18
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/docs/bug-174.xml b/tests/docs/bug-174.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-174.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/bug-174.err b/tests/general/bug-174.err
new file mode 100644
index 00000000..bc790a39
--- /dev/null
+++ b/tests/general/bug-174.err
@@ -0,0 +1 @@
+exsltFuncResultElem: only xsl:fallback is allowed to follow func:result
diff --git a/tests/general/bug-174.out b/tests/general/bug-174.out
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/general/bug-174.out
diff --git a/tests/general/bug-174.xsl b/tests/general/bug-174.xsl
new file mode 100644
index 00000000..51991ef5
--- /dev/null
+++ b/tests/general/bug-174.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">
+ <func:result/>
+ <func:result/>
+</func:function>
+
+<xsl:template match="/">
+ <result>
+ <xsl:value-of select="func:uaf()"/>
+ </result>
+</xsl:template>
+
+</xsl:stylesheet>
+