diff options
author | William M. Brack <wbrack@src.gnome.org> | 2008-06-25 07:05:52 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2008-06-25 07:05:52 +0000 |
commit | 1025c148f394152fea552b70ec368050b7a52827 (patch) | |
tree | c9e2966ed766041e739a8c01e7eca04f1be67aa9 /tests | |
parent | 71f86c0926a077fa3e7d23dbfbbd940d22ea82f7 (diff) | |
download | libxslt-1025c148f394152fea552b70ec368050b7a52827.tar.gz libxslt-1025c148f394152fea552b70ec368050b7a52827.tar.bz2 libxslt-1025c148f394152fea552b70ec368050b7a52827.zip |
added code to handle literal within an AVT #539741. tests/docs/Makefile.am
* libxslt/attrvt.c: added code to handle literal within an
AVT #539741.
* tests/docs/Makefile.am tests/docs/bug-168.xsl
* tests/general/Makefile.am tests/general/bug-168.* add a
test for this bug to the regression suite.
svn path=/trunk/; revision=1481
Diffstat (limited to 'tests')
-rw-r--r-- | tests/docs/Makefile.am | 1 | ||||
-rw-r--r-- | tests/docs/bug-168.xml | 9 | ||||
-rw-r--r-- | tests/general/Makefile.am | 1 | ||||
-rw-r--r-- | tests/general/bug-168.out | 2 | ||||
-rw-r--r-- | tests/general/bug-168.xsl | 9 |
5 files changed, 22 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index a261fcb7..b10edcab 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -166,6 +166,7 @@ EXTRA_DIST = \ bug-165.xml \ bug-166.xml \ bug-167.xml \ + bug-168.xml \ character.xml \ array.xml \ items.xml diff --git a/tests/docs/bug-168.xml b/tests/docs/bug-168.xml new file mode 100644 index 00000000..cd13d419 --- /dev/null +++ b/tests/docs/bug-168.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml"> + +<xsl:template match="*"> +<A a="{concat('{',namespace-uri(),'}',local-name())}"/> +<B b='{concat("{",namespace-uri(),"}",local-name())}'/> +</xsl:template> + +</xsl:stylesheet> diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index 106844be..87b0ed2c 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -175,6 +175,7 @@ EXTRA_DIST = \ bug-165.out bug-165.xsl bug-145.err \ bug-166.out bug-166.xsl \ bug-167.out bug-167.xsl \ + bug-168.out bug-168.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-168.out b/tests/general/bug-168.out new file mode 100644 index 00000000..2ca99bc8 --- /dev/null +++ b/tests/general/bug-168.out @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<A xmlns="http://www.w3.org/1999/xhtml" a="{http://www.w3.org/1999/XSL/Transform}stylesheet"/><B xmlns="http://www.w3.org/1999/xhtml" b="{http://www.w3.org/1999/XSL/Transform}stylesheet"/> diff --git a/tests/general/bug-168.xsl b/tests/general/bug-168.xsl new file mode 100644 index 00000000..cd13d419 --- /dev/null +++ b/tests/general/bug-168.xsl @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml"> + +<xsl:template match="*"> +<A a="{concat('{',namespace-uri(),'}',local-name())}"/> +<B b='{concat("{",namespace-uri(),"}",local-name())}'/> +</xsl:template> + +</xsl:stylesheet> |