summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-164.xml4
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-164.out4
-rw-r--r--tests/general/bug-164.xsl13
5 files changed, 23 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 938b2167..a801453e 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -162,6 +162,7 @@ EXTRA_DIST = \
bug-160.xml \
bug-161.xml \
bug-163.xml \
+ bug-164.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-164.xml b/tests/docs/bug-164.xml
new file mode 100644
index 00000000..920546dc
--- /dev/null
+++ b/tests/docs/bug-164.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<doc>
+ <stuff name="A &amp; B"/>
+</doc>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 55b3e394..618b23a5 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -171,6 +171,7 @@ EXTRA_DIST = \
bug-160.out bug-160.xsl \
bug-161.out bug-161.xsl \
bug-163.out bug-163.xsl \
+ bug-164.out bug-164.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-164.out b/tests/general/bug-164.out
new file mode 100644
index 00000000..7bf839ab
--- /dev/null
+++ b/tests/general/bug-164.out
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="us-ascii"?>
+
+ <stuff name="A &amp; B"/>
+
diff --git a/tests/general/bug-164.xsl b/tests/general/bug-164.xsl
new file mode 100644
index 00000000..ef4ae188
--- /dev/null
+++ b/tests/general/bug-164.xsl
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<xsl:stylesheet
+ version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+
+<xsl:output encoding="us-ascii"/>
+
+<xsl:template match="stuff">
+ <xsl:copy-of select="."/>
+</xsl:template>
+
+</xsl:stylesheet>