github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-80.xsl (about)

     1  <?xml version="1.0"?> 
     2  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
     3  
     4    <!-- FileName: ResultTree005.xsl -->
     5    <!-- Document: http://www.w3.org/TR/xslt -->
     6    <!-- Section: 7.1.4 Named Attribute Sets -->
     7    <!-- Purpose: Set attributes of an xsl:element using attribute sets that 
     8         inherit. -->
     9    <!-- Author: Carmelo Montanez -->
    10  
    11  <xsl:template match="/">
    12    <out>
    13      <xsl:element name="test" use-attribute-sets="set1"/>
    14    </out>
    15  </xsl:template>
    16  
    17  <xsl:attribute-set name="set2" use-attribute-sets="set3">
    18    <xsl:attribute name="text-decoration">underline</xsl:attribute>
    19  </xsl:attribute-set>
    20    
    21  <xsl:attribute-set name="set1" use-attribute-sets="set2">
    22    <xsl:attribute name="color">black</xsl:attribute>
    23  </xsl:attribute-set>
    24  
    25  <xsl:attribute-set name="set3">
    26    <xsl:attribute name="font-size">14pt</xsl:attribute>
    27  </xsl:attribute-set>
    28  
    29  </xsl:stylesheet>