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/09/19 19:25:07 UTC

cvs commit: xml-xalan/test/tests/conf/axes axes112.xsl axes01.xsl

dmarston    01/09/19 10:25:07

  Modified:    test/tests/conf/axes axes112.xsl axes01.xsl
  Log:
  Improve comments
  
  Revision  Changes    Path
  1.3       +5 -5      xml-xalan/test/tests/conf/axes/axes112.xsl
  
  Index: axes112.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/axes/axes112.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- axes112.xsl	2001/06/21 19:40:06	1.2
  +++ axes112.xsl	2001/09/19 17:25:07	1.3
  @@ -1,19 +1,19 @@
  -<?xml version="1.0"?> 
  +<?xml version="1.0"?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   
     <!-- FileName: axes112 -->
     <!-- Document: http://www.w3.org/TR/xpath -->
     <!-- DocVersion: 19991116 -->
     <!-- Section: 2.2 -->
  -  <!-- Purpose: Tests apply-templates starting with a attribute axes followed
  +  <!-- Purpose: Tests apply-templates starting with a attribute axis followed
          by additional relative-location-path steps. -->
  -  <!-- Author: Paul Dick -->
  +  <!-- Creator: Paul Dick -->
   
   <xsl:template match="/">
     <out>
       <xsl:for-each select="//center">
         <xsl:apply-templates select="@*/following::text()"/>
  -	</xsl:for-each>
  +    </xsl:for-each>
     </out>
   </xsl:template>
   
  @@ -21,4 +21,4 @@
     <xsl:text> #text</xsl:text>
   </xsl:template>
   
  -</xsl:stylesheet>
  +</xsl:stylesheet>
  \ No newline at end of file
  
  
  
  1.2       +12 -7     xml-xalan/test/tests/conf/axes/axes01.xsl
  
  Index: axes01.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/axes/axes01.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- axes01.xsl	2000/12/16 01:06:20	1.1
  +++ axes01.xsl	2001/09/19 17:25:07	1.2
  @@ -6,18 +6,23 @@
     <!-- Document: http://www.w3.org/TR/xpath -->
     <!-- DocVersion: 19991116 -->
     <!-- Section: 2.2 -->
  -  <!-- Purpose: Test for 'ancestor::*' Axis Identifier. -->
  +  <!-- Purpose: Traverse the ancestor::* axis -->
  +  <!-- Elaboration: First, jump to the center (via for-each so that we don't have interfering
  +    templates, which is less of a problem for ancestor than other axes), then apply-templates
  +    on all members of the axis under test. Also, demonstrate the statement in XSLT 5.4 that
  +    "The selected set of nodes is processed in document order, unless a sorting specification
  +    is present." -->
   
   <xsl:template match="/">
  -      <out>
  -        <xsl:for-each select="//center">
  -          <xsl:apply-templates select="ancestor::*"/>
  -        </xsl:for-each>
  -      </out>
  +  <out>
  +    <xsl:for-each select="//center">
  +      <xsl:apply-templates select="ancestor::*"/>
  +    </xsl:for-each>
  +  </out>
   </xsl:template>
   
   <xsl:template match="*">
  -   <xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
  +  <xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
   </xsl:template>
   
   </xsl:stylesheet>
  
  
  

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