summaryrefslogtreecommitdiff
path: root/tests/general
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-05-11 17:15:46 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-05-11 17:15:46 +0000
commita7c43a4198c1f10fc0ce2949a14bed07a67de12b (patch)
tree353ebee18b53b5dbce70297bbc3bc0c604322e7b /tests/general
parent69cf756db5478363694b8407a53e13c33e771c2c (diff)
downloadlibxslt-a7c43a4198c1f10fc0ce2949a14bed07a67de12b.tar.gz
libxslt-a7c43a4198c1f10fc0ce2949a14bed07a67de12b.tar.bz2
libxslt-a7c43a4198c1f10fc0ce2949a14bed07a67de12b.zip
- libxslt/templates.c libxslt/transform.c: fixed bug #54446
about attribute being generated twice. Fixed a number of related bugs on attributes handling. - tests/REC/test-7.1.4.out: this changed an attribute generation order - tests/docs/bug-27-.xml tests/general/bug-27-.*: added test Daniel
Diffstat (limited to 'tests/general')
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-27-.out2
-rw-r--r--tests/general/bug-27-.xsl14
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 824047f5..2dd48125 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -30,6 +30,7 @@ EXTRA_DIST = \
bug-24-.out bug-24-.xsl \
bug-25-.out bug-25-.xsl \
bug-26-.out bug-26-.xsl \
+ bug-27-.out bug-27-.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-27-.out b/tests/general/bug-27-.out
new file mode 100644
index 00000000..015b6bb5
--- /dev/null
+++ b/tests/general/bug-27-.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<p attr="from-xsl-attr"/>
diff --git a/tests/general/bug-27-.xsl b/tests/general/bug-27-.xsl
new file mode 100644
index 00000000..1dedad9e
--- /dev/null
+++ b/tests/general/bug-27-.xsl
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:attribute-set name="my-attr-set">
+ <xsl:attribute name="attr">from-attr-set</xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:template match="/">
+ <p xsl:use-attribute-sets="my-attr-set" attr="from-p-tag">
+ <xsl:attribute name="attr">from-xsl-attr</xsl:attribute>
+ </p>
+ </xsl:template>
+
+</xsl:stylesheet>