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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
