tests/misc/error-code/error-code-082.xsl
changeset 895 c964d5bbd00e
parent 894 0fc26a1f66f4
child 896 b99b90a57a1c
equal deleted inserted replaced
894:0fc26a1f66f4 895:c964d5bbd00e
     1 <?xml version="1.0"?> 
       
     2 
       
     3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
       
     4 
       
     5 <!-- Error: reference to unknown xsl:attribute-set -->
       
     6 <?spec xslt#errors?><?error XTSE0710?>
       
     7 
       
     8   <xsl:attribute-set name="aset1" use-attribute-sets="aset2">
       
     9     <xsl:attribute name="one">1</xsl:attribute>
       
    10     <xsl:attribute name="two">2</xsl:attribute>
       
    11   </xsl:attribute-set>
       
    12 
       
    13   <xsl:attribute-set name="aset2">
       
    14     <xsl:attribute name="three">3</xsl:attribute>
       
    15     <xsl:attribute name="four">4</xsl:attribute>
       
    16   </xsl:attribute-set>
       
    17 
       
    18   <xsl:template match="doc">
       
    19     <out>
       
    20       <xsl:copy use-attribute-sets="aset1 aset2 aset3"/>
       
    21       <xsl:message>Error not detected!</xsl:message>
       
    22     </out>
       
    23   </xsl:template>
       
    24 
       
    25 </xsl:stylesheet>