diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/docs/Makefile.am | 1 | ||||
-rw-r--r-- | tests/docs/bug-163.xml | 5 | ||||
-rw-r--r-- | tests/general/Makefile.am | 1 | ||||
-rw-r--r-- | tests/general/bug-163.out | 2 | ||||
-rw-r--r-- | tests/general/bug-163.xsl | 6 |
5 files changed, 15 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index 89aff9a9..938b2167 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -161,6 +161,7 @@ EXTRA_DIST = \ bug-159.xml \ bug-160.xml \ bug-161.xml \ + bug-163.xml \ character.xml \ array.xml \ items.xml diff --git a/tests/docs/bug-163.xml b/tests/docs/bug-163.xml new file mode 100644 index 00000000..5209f085 --- /dev/null +++ b/tests/docs/bug-163.xml @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE my-root [ + <!ATTLIST my-root myns:id ID #IMPLIED> +]> +<my-root xmlns:myns="uri" myns:id="indexme" some-attr="findme"/> diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index 0f5a89ba..55b3e394 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -170,6 +170,7 @@ EXTRA_DIST = \ bug-159.out bug-159.xsl \ bug-160.out bug-160.xsl \ bug-161.out bug-161.xsl \ + bug-163.out bug-163.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-163.out b/tests/general/bug-163.out new file mode 100644 index 00000000..ef970f53 --- /dev/null +++ b/tests/general/bug-163.out @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +findme diff --git a/tests/general/bug-163.xsl b/tests/general/bug-163.xsl new file mode 100644 index 00000000..9e41e49b --- /dev/null +++ b/tests/general/bug-163.xsl @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> + <template match="/"> + <value-of select="id('indexme')/@some-attr"/> + </template> +</stylesheet> |