You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/06/15 18:11:33 UTC

cvs commit: xml-xalan/test/tests/conf/attribset attribset39.xsl attribset21.xsl attribset26.xml attribset26.xsl attribset27.xml attribset27.xsl attribset29.xml attribset29.xsl attribset30.xml attribset30.xsl attribset31.xml attribset31.xsl attribset33.xml attribset33.xsl attribset34.xml attribset34.xsl attribset39.xml attribset21.xml

dmarston    01/06/15 09:11:32

  Added:       test/tests/conf/attribset attribset39.xsl attribset21.xsl
                        attribset26.xml attribset26.xsl attribset27.xml
                        attribset27.xsl attribset29.xml attribset29.xsl
                        attribset30.xml attribset30.xsl attribset31.xml
                        attribset31.xsl attribset33.xml attribset33.xsl
                        attribset34.xml attribset34.xsl attribset39.xml
                        attribset21.xml
  Log:
  Test cases that we have been holding for release,
  including tests written at NIST
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/attribset/attribset39.xsl
  
  Index: attribset39.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset39 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test use of leading underscore in names. -->
  
  <xsl:attribute-set name="_a_set">
    <xsl:attribute name="_a_color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:template match="/">
    <out>
      <test xsl:use-attribute-sets="_a_set" />
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset21.xsl
  
  Index: attribset21.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset21 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 -->
    <!-- Purpose: Use xsl:copy with a single attribute set. -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree002 in NIST suite -->
  
  <xsl:template match="test">
    <out>
      <xsl:copy use-attribute-sets="set1"/>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="format">bold</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset26.xml
  
  Index: attribset26.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset26.xsl
  
  Index: attribset26.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset26 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Paragraph: 3 -->
    <!-- Purpose: Use xsl:copy with multiple attribute sets that inherit,
      but have conflicts. -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree004 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="doc">
    <xsl:copy use-attribute-sets="set1"/>
  </xsl:template>
  
  <xsl:attribute-set name="set1" use-attribute-sets="set2">
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set2" use-attribute-sets="set3">
    <xsl:attribute name="color">blue</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set3">
    <xsl:attribute name="color">green</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset27.xml
  
  Index: attribset27.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset27.xsl
  
  Index: attribset27.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset27 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Purpose: Use xsl:copy with multiple attribute sets with conflicting set name,
      then reset one attribute with xsl:attribute. -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree004 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:copy use-attribute-sets="set1">
        <xsl:attribute name="text-decoration">none</xsl:attribute>
      </xsl:copy>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="text-decoration">underline</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="font-size">14pt</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset29.xml
  
  Index: attribset29.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset29.xsl
  
  Index: attribset29.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset29 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Purpose: Use xsl:copy with multiple attribute sets in "merge" scenario. -->
    <!-- Author: Carmelo Montanez --><!-- simplified from ResultTree004 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:copy use-attribute-sets="set1"/>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="text-decoration">underline</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="font-size">14pt</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset30.xml
  
  Index: attribset30.xml
  ===================================================================
  <?xml version="1.0"?> <doc>
    <test>a</test>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset30.xsl
  
  Index: attribset30.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: attribset30 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 7.1.4 -->
  <!-- Purpose: Set attributes of an element created with xsl:element from single attribute set. -->
  <!-- Author: Carmelo Montanez --><!-- ResultTree007 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:element name="test1" use-attribute-sets="set1"/>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="format">bold</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset31.xml
  
  Index: attribset31.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset31.xsl
  
  Index: attribset31.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset31 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Purpose: Use xsl:element with multiple attribute sets with conflicting names
      (merge scenario), plus local override with xsl:attribute. -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree008 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:element name="element1" use-attribute-sets="set1">
        <xsl:attribute name="text-decoration">none</xsl:attribute>
      </xsl:element>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="text-decoration">underline</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set1">
    <xsl:attribute name="font-size">14pt</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset33.xml
  
  Index: attribset33.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset33.xsl
  
  Index: attribset33.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset33 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Purpose: Use xsl:element with multiple attribute sets that inherit. -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree005 in NIST suite -->
  
  <xsl:template match="/">
    <out>
      <xsl:element name="test" use-attribute-sets="set1"/>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set1" use-attribute-sets="set2">
    <xsl:attribute name="color">black</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set2" use-attribute-sets="set3">
    <xsl:attribute name="text-decoration">underline</xsl:attribute>
  </xsl:attribute-set>
  
  <xsl:attribute-set name="set3">
    <xsl:attribute name="font-size">14pt</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset34.xml
  
  Index: attribset34.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset34.xsl
  
  Index: attribset34.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribset34 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.4 Named Attribute Sets -->
    <!-- Paragraph: 3 -->
    <!-- Author: Carmelo Montanez --><!-- ResultTree006 in NIST suite -->
    <!-- Purpose: Use xsl:element with multiple attribute sets that 
         inherit, but have overlapping attributes. -->
  
  <xsl:template match="/">
    <out>
      <xsl:element name="element1" use-attribute-sets="set1"/>
    </out>
  </xsl:template>
  
  <xsl:attribute-set name="set2" use-attribute-sets="set3">
    <xsl:attribute name="color">blue</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="color">green</xsl:attribute>
  </xsl:attribute-set>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset39.xml
  
  Index: attribset39.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribset/attribset21.xml
  
  Index: attribset21.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
   <test>a</test>
  </doc>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org