diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2012-07-31 23:32:05 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-09-06 20:32:17 +0800 |
commit | 2b7e16f7711dbd860a44e4fa40e48d00812f7333 (patch) | |
tree | 996960ce48fc89065b1459435303fa94c3c5924e /tests/general | |
parent | 3195073c740be579892c08cfc02efeae1a1c0dbd (diff) | |
download | libxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.tar.gz libxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.tar.bz2 libxslt-2b7e16f7711dbd860a44e4fa40e48d00812f7333.zip |
Test for bug #680920
Add test cases for the EXSLT func bug
Diffstat (limited to 'tests/general')
-rw-r--r-- | tests/general/Makefile.am | 1 | ||||
-rw-r--r-- | tests/general/bug-178.out | 2 | ||||
-rw-r--r-- | tests/general/bug-178.xsl | 18 |
3 files changed, 21 insertions, 0 deletions
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> + |