dmarston    01/07/26 14:05:41

  Added:       test/tests/conf/axes axes115.xsl axes114.xsl axes115.xml
                        axes114.xml
  Log:
  More tests of reverse axes.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/axes/axes115.xsl
  
  Index: axes115.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: AXES115 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.3 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for preceding-sibling::foo[1] vs. 
(preceding-sibling::foo)[1], similar
       to the treatment of preceding:: in the first NOTE in section 3.3 -->
  
  <xsl:template match="/">
    <out>
      <xsl:for-each select="//baz">
        <xsl:value-of select="preceding-sibling::foo[1]/@att1"/><xsl:text>, 
</xsl:text>
        <xsl:value-of select="(preceding-sibling::foo)[1]/@att1"/>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes114.xsl
  
  Index: axes114.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: AXES114 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.3 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for preceding::foo[1] vs. (preceding::foo)[1], as 
discussed in
       the first NOTE in section 3.3 -->
  
  <xsl:template match="/">
    <out>
      <xsl:for-each select="//baz">
        <xsl:value-of select="preceding::foo[1]/@att1"/><xsl:text>, </xsl:text>
        <xsl:value-of select="(preceding::foo)[1]/@att1"/>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes115.xml
  
  Index: axes115.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <foo att1="c"/>
    <foo att1="b"/>
    <foo att1="a"/>
    <baz/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/axes/axes114.xml
  
  Index: axes114.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <foo att1="c">
       <foo att1="b">
          <foo att1="a"/>
       </foo>
    </foo>
    <baz/>
  </doc>
  
  

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

Reply via email to