summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2012-08-15 23:06:14 +0200
committerDaniel Veillard <veillard@redhat.com>2012-08-16 15:55:40 +0800
commitabb7c65980c7da450f0447dcc6a1821eef99d473 (patch)
tree4e49b74e6fd25924bbc50ade91fbf70ed6fe243e /tests
parent24653072221e76d2f1f06aa71225229b532f8946 (diff)
downloadlibxslt-abb7c65980c7da450f0447dcc6a1821eef99d473.tar.gz
libxslt-abb7c65980c7da450f0447dcc6a1821eef99d473.tar.bz2
libxslt-abb7c65980c7da450f0447dcc6a1821eef99d473.zip
Fix system-property with unknown namespace
The empty string should be returned, see bug #631803.
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/bug-176.xml1
-rw-r--r--tests/general/bug-176.out2
-rw-r--r--tests/general/bug-176.xsl11
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/docs/bug-176.xml b/tests/docs/bug-176.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-176.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/bug-176.out b/tests/general/bug-176.out
new file mode 100644
index 00000000..e829790a
--- /dev/null
+++ b/tests/general/bug-176.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<result/>
diff --git a/tests/general/bug-176.xsl b/tests/general/bug-176.xsl
new file mode 100644
index 00000000..6996e1ed
--- /dev/null
+++ b/tests/general/bug-176.xsl
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:msxsl="urn:schemas-microsoft-com:xslt"
+ exclude-result-prefixes="msxsl"
+ version="1.0">
+ <xsl:template match="/">
+ <result>
+ <xsl:value-of select="system-property('msxsl:version')"/>
+ </result>
+ </xsl:template>
+</xsl:transform>