xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmars...@apache.org
Subject cvs commit: xml-xalan/test/tests/perf/sort sort-words1.xsl sort-numbers1.xsl
Date Tue, 26 Feb 2002 18:52:30 GMT
dmarston    02/02/26 10:52:30

  Added:       test/tests/perf/sort sort-words1.xsl sort-numbers1.xsl
  Log:
  Improved sorting tests that use centralized data
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/perf/sort/sort-words1.xsl
  
  Index: sort-words1.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: sort-words1 -->
    <!-- Creator: ? -->
    <!-- Purpose: performance test - sort the big list of words (has repeating values)
in a for-each -->
  
  <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  
  <xsl:template match="doc">
    <out>
      <xsl:for-each select="item">
        <xsl:sort lang="en-US"/>
        <xsl:copy-of select="."/><xsl:text>
  </xsl:text>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/perf/sort/sort-numbers1.xsl
  
  Index: sort-numbers1.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: sort-numbers1 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: performance test - sort the list of random numbers in a for-each -->
  
  <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  
  <xsl:template match="doc">
    <out>
      <xsl:for-each select="*">
        <xsl:sort data-type="number" select="."/>
        <xsl:copy-of select="."/><xsl:text>
  </xsl:text>
      </xsl:for-each>
    </out>
  </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


Mime
View raw message