summaryrefslogtreecommitdiffstats
path: root/libxslt/tests/general/bug-80.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'libxslt/tests/general/bug-80.xsl')
-rw-r--r--libxslt/tests/general/bug-80.xsl29
1 files changed, 29 insertions, 0 deletions
diff --git a/libxslt/tests/general/bug-80.xsl b/libxslt/tests/general/bug-80.xsl
new file mode 100644
index 0000000..c9f9eaf
--- /dev/null
+++ b/libxslt/tests/general/bug-80.xsl
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- FileName: ResultTree005.xsl -->
+ <!-- Document: http://www.w3.org/TR/xslt -->
+ <!-- Section: 7.1.4 Named Attribute Sets -->
+ <!-- Purpose: Set attributes of an xsl:element using attribute sets that
+ inherit. -->
+ <!-- Author: Carmelo Montanez -->
+
+<xsl:template match="/">
+ <out>
+ <xsl:element name="test" use-attribute-sets="set1"/>
+ </out>
+</xsl:template>
+
+<xsl:attribute-set name="set2" use-attribute-sets="set3">
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="set1" use-attribute-sets="set2">
+ <xsl:attribute name="color">black</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="set3">
+ <xsl:attribute name="font-size">14pt</xsl:attribute>
+</xsl:attribute-set>
+
+</xsl:stylesheet>