dmarston    02/01/30 11:25:35

  Added:       test/tests/conf/axes axes124.xsl axes123.xsl axes124.xml
                        axes123.xml
  Log:
  Be ready for issues suggested by #6021 (.. step)
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/axes/axes124.xsl
  
  Index: axes124.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: axes123 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.2 -->
    <!-- Purpose: Tests apply-templates from a comment using parent axis. -->
    <!-- Creator: David Marston -->
  
  <xsl:template match="/">
    <out>
      <xsl:for-each select="//center/comment()">
        <xsl:apply-templates select=".."/>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  <xsl:template match="comment()">
    <xsl:value-of select="."/>
  </xsl:template>
  
  <xsl:template match="text()"/><!-- suppress whitespace-only nodes -->
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes123.xsl
  
  Index: axes123.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: axes123 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.2 -->
    <!-- Purpose: Tests apply-templates from an attribute using parent axis. -->
    <!-- This is a twist on axes96, where the context node is an element. -->
    <!-- Creator: David Marston -->
  
  <xsl:template match="/">
    <out>
      <xsl:for-each select="//center/@center-attr-1">
        <xsl:apply-templates select="../.."/>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:value-of select="name(.)"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes124.xml
  
  Index: axes124.xml
  ===================================================================
  <?xml version="1.0"?>
  <far-north> Level-1
    <north-north-west1/>
    <north-north-west2/>
    <north>
       <near-north>
          <far-west/>
          <west/>
          <near-west/>
          <center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
             <!--Center Comment-->
             <near-south-west/>
             <near-south>
                <south>
                   <far-south/>
                </south>
             </near-south>
             <near-south-east/>
          </center>
          <near-east/>
          <east/>
          <far-east/>
       </near-north>
    </north>
    <north-north-east1/>
    <north-north-east2/>
  </far-north>
  
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes123.xml
  
  Index: axes123.xml
  ===================================================================
  <?xml version="1.0"?>
  <far-north> Level-1
    <north-north-west1/>
    <north-north-west2/>
    <north>
       <near-north>
          <far-west/>
          <west/>
          <near-west/>
          <center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
             <near-south-west/>
             <near-south>
                <south>
                   <far-south/>
                </south>
             </near-south>
             <near-south-east/>
          </center>
          <near-east/>
          <east/>
          <far-east/>
       </near-north>
    </north>
    <north-north-east1/>
    <north-north-east2/>
  </far-north>
  
  
  

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

Reply via email to