diff options
author | Martin <gzlist@googlemail.com> | 2009-09-17 10:22:42 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-09-17 10:22:42 +0200 |
commit | 34c7b5ce635afbf68ce1dc33f92e72d76909dc6f (patch) | |
tree | 16a8182d3871cb24c8a9f76d031acb5bfee0c550 /tests | |
parent | a3a1d4891c0e28bb1a43582b2aef4a637fe97cfc (diff) | |
download | libxslt-34c7b5ce635afbf68ce1dc33f92e72d76909dc6f.tar.gz libxslt-34c7b5ce635afbf68ce1dc33f92e72d76909dc6f.tar.bz2 libxslt-34c7b5ce635afbf68ce1dc33f92e72d76909dc6f.zip |
Fix problems with embedded stylesheets and namespaces
* libxslt/xslt.c: copy the embedded stylesheet instead of cutting it
out of the source tree and make sure to copy namespaces in scope too
* tests/REC/Makefile.am tests/REC/stand-2.7-[23]*: add the 2 tests
case to the regression suite
Diffstat (limited to 'tests')
-rw-r--r-- | tests/REC/Makefile.am | 3 | ||||
-rw-r--r-- | tests/REC/stand-2.7-2.stand.out | 8 | ||||
-rw-r--r-- | tests/REC/stand-2.7-2.xml | 9 | ||||
-rw-r--r-- | tests/REC/stand-2.7-3.stand.out | 8 | ||||
-rw-r--r-- | tests/REC/stand-2.7-3.xml | 9 |
5 files changed, 36 insertions, 1 deletions
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am index 2c372db8..cae04f43 100644 --- a/tests/REC/Makefile.am +++ b/tests/REC/Makefile.am @@ -72,7 +72,8 @@ EXTRA_DIST = \ test-9.1-2.out test-9.1-2.xml test-9.1-2.xsl \ test-9.2-1.xsl \ stand-2.7-1.dtd stand-2.7-1.stand.out stand-2.7-1.xsl \ - stand-2.7-1.out stand-2.7-1.xml + stand-2.7-1.out stand-2.7-1.xml \ + stand-2.7-2.xml stand-2.7-3.xml all: diff --git a/tests/REC/stand-2.7-2.stand.out b/tests/REC/stand-2.7-2.stand.out new file mode 100644 index 00000000..49a4cf81 --- /dev/null +++ b/tests/REC/stand-2.7-2.stand.out @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<xmp:moop xmlns:xmp="http://example.com/ns" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:transform id="transform" version="1.0"> + <xsl:template match="/xmp:moop"> + <xsl:copy-of select="."/> + </xsl:template> + </xsl:transform> +</xmp:moop> diff --git a/tests/REC/stand-2.7-2.xml b/tests/REC/stand-2.7-2.xml new file mode 100644 index 00000000..22e68347 --- /dev/null +++ b/tests/REC/stand-2.7-2.xml @@ -0,0 +1,9 @@ +<!DOCTYPE xmp:moop [<!ATTLIST xsl:transform id ID #IMPLIED>]> +<?xml-stylesheet type="text/xsl" href="#transform"?> +<xmp:moop xmlns:xmp="http://example.com/ns" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:transform id="transform" version="1.0"> + <xsl:template match="/xmp:moop"> + <xsl:copy-of select="."/> + </xsl:template> + </xsl:transform> +</xmp:moop> diff --git a/tests/REC/stand-2.7-3.stand.out b/tests/REC/stand-2.7-3.stand.out new file mode 100644 index 00000000..49a4cf81 --- /dev/null +++ b/tests/REC/stand-2.7-3.stand.out @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<xmp:moop xmlns:xmp="http://example.com/ns" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:transform id="transform" version="1.0"> + <xsl:template match="/xmp:moop"> + <xsl:copy-of select="."/> + </xsl:template> + </xsl:transform> +</xmp:moop> diff --git a/tests/REC/stand-2.7-3.xml b/tests/REC/stand-2.7-3.xml new file mode 100644 index 00000000..a8c8362e --- /dev/null +++ b/tests/REC/stand-2.7-3.xml @@ -0,0 +1,9 @@ +<!DOCTYPE xmp:moop [<!ATTLIST xsl:transform id ID #IMPLIED>]> +<?xml-stylesheet type="text/xsl" href="#transform"?> +<xmp:moop xmlns:xmp="http://example.com/ns" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:transform id="transform" version="1.0" xmlns:xmp="http://example.com/ns"> + <xsl:template match="/xmp:moop"> + <xsl:copy-of select="."/> + </xsl:template> + </xsl:transform> +</xmp:moop> |