diff options
-rw-r--r-- | tests/docs/bug-178.xml | 1 | ||||
-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 |
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> + |