amiro       01/06/14 14:04:37

  Added:       test/tests/conf/attribset attribset41.xml attribset41.xsl
  Log:
  Obtained from: Morten Jorgensen
  Submitted by: Tom Amiro
  Reviewed by: Dave Marston
  New test by Morten on attribute sets to test that if
  two attribute set elements have the same name and they call in other
  attribute sets the attributes are combined
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/attribset/attribset41.xml
  
  Index: attribset41.xml
  ===================================================================
  <?xml version="1.0"?> 
  
  <doc>
    <foo>a</foo>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset41.xsl
  
  Index: attribset41.xsl
  ===================================================================
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
  <xsl:output indent="yes"/>
  
    <!-- FileName: attribset41 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Creator: Morten Jorgensen -->
    <!-- Purpose: Test inheritance of attribute sets. A literal result element
                  is referring an attribute set that is defined by two separate
                  <xsl:attribute-set.../> elements with the same name. Both
                  these elements have a use-attribute-sets attribute, which
                  means that we have a single attribute set that inherits from
                  two other attribute sets. -->
  
  <xsl:template match="/">
    <out xsl:use-attribute-sets="child">
      <xsl:attribute name="location">Wonderland</xsl:attribute>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="child" use-attribute-sets="rabbit">
    <xsl:attribute name="follow">yellowbrickroad</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="child" use-attribute-sets="alice">
    <xsl:attribute name="wife">thumbelina</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="rabbit">
    <xsl:attribute name="rabbithole">deep</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="alice">
    <xsl:attribute name="Alice">intoxicated</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to