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/conferr/sorterr sorterr11.xsl sorterr11.xml sorterr11.dx
Date Wed, 22 May 2002 17:29:21 GMT
dmarston    02/05/22 10:29:21

  Added:       test/tests/conferr/sorterr sorterr11.xsl sorterr11.xml
                        sorterr11.dx
  Log:
  Test inspired by Bugzilla#6981
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conferr/sorterr/sorterr11.xsl
  
  Index: sorterr11.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: SORTerr11 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 10 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: If the select-expression in a sort isn't useful, should throw good error.
-->
  
  <xsl:template match="doc">
    <out>
      <xsl:for-each select="num">
        <xsl:sort select="document('sorterr11.dx')"/>
        <xsl:value-of select="."/><xsl:text> </xsl:text>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conferr/sorterr/sorterr11.xml
  
  Index: sorterr11.xml
  ===================================================================
  <?xml version="1.0"?> 

<!-- Test for xsl:sort -->
  <doc>
    <num>99</num>
    <num>3</num>
    <num>100</num>
    <num>40</num>
    <num>69</num>
    <num>82</num>
    <num>1</num>
    <num>0</num>
    <num>803.23</num>
    <num>803.05</num>
    <num>803.33333333</num>
    <num>803.33333332</num>
    <num>23</num>
    <num>1001001001</num>
    <num>0008</num>
    <num>5</num>
    <num>04</num>
    <num>002</num>
    <num>666</num>
    <num>777</num>
    <num>Hello</num>
    <num>617-939-5938</num>
    <num>-13</num>
    <num>-47</num>
  </doc>
  
  
  
  
  1.1                  xml-xalan/test/tests/conferr/sorterr/sorterr11.dx
  
  Index: sorterr11.dx
  ===================================================================
  <?xml version="1.0"?> 

<!-- Test for xsl:sort -->
  <doc>
    <num>99</num>
    <num>3</num>
    <num>100</num>
    <num>40</num>
    <num>69</num>
    <num>82</num>
    <num>1</num>
    <num>0</num>
    <num>803.23</num>
    <num>803.05</num>
    <num>803.33333333</num>
    <num>803.33333332</num>
    <num>23</num>
    <num>1001001001</num>
    <num>0008</num>
    <num>5</num>
    <num>04</num>
    <num>002</num>
    <num>666</num>
    <num>777</num>
    <num>Hello</num>
    <num>617-939-5938</num>
    <num>-13</num>
    <num>-47</num>
  </doc>
  
  
  
  

---------------------------------------------------------------------
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