dmarston    00/12/15 13:54:50

  Added:       test/tests/conf/string/err stringerr19.xsl stringerr01.xsl
                        stringerr02.xml stringerr02.xsl stringerr03.xml
                        stringerr03.xsl stringerr04.xml stringerr04.xsl
                        stringerr05.xml stringerr05.xsl stringerr06.xml
                        stringerr06.xsl stringerr07.xml stringerr07.xsl
                        stringerr08.xml stringerr08.xsl stringerr09.xml
                        stringerr09.xsl stringerr10.xml stringerr10.xsl
                        stringerr11.xml stringerr11.xsl stringerr12.xml
                        stringerr12.xsl stringerr13.xml stringerr13.xsl
                        stringerr14.xml stringerr14.xsl stringerr15.xml
                        stringerr15.xsl stringerr16.xml stringerr16.xsl
                        stringerr17.xml stringerr17.xsl stringerr18.xml
                        stringerr18.xsl stringerr19.xml stringerr01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr19.xsl
  
  Index: stringerr19.xsl
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STR105 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Special case of concat() with one argument.
         Strictly speaking, this should fail just like STRerr14. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:value-of select="concat(/*)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr01.xsl
  
  Index: stringerr01.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr01 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 -->
    <!-- Purpose: Test of invalid function that resembles "true" with string(). 
-->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="string(troo())"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr02.xml
  
  Index: stringerr02.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr02.xsl
  
  Index: stringerr02.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr02 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 -->
    <!-- Purpose: Test of invalid function that resembles "true" with 
string-length(). -->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="string-length(troo())"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr03.xml
  
  Index: stringerr03.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc> 
    <a>       This          is a       normalized          string.</a>    
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr03.xsl
  
  Index: stringerr03.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr03 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'normalize-space()' function with too many arguments 
-->
    <!-- ExpectedException: normalize-space() has too many arguments -->
  
  <xsl:template match="/doc">
    <out>
      <xsl:value-of select="normalize-space(a,'&#9;&#10;&#13; ab    cd  ')"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr04.xml
  
  Index: stringerr04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr04.xsl
  
  Index: stringerr04.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr04 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'contains()' with one argument -->
    <!-- ExpectedException: contains() requires two arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="contains('ENCYCLOPEDIA')"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr05.xml
  
  Index: stringerr05.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr05.xsl
  
  Index: stringerr05.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr05 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'contains()' with too many arguments -->
    <!-- ExpectedException: contains() has too many arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="contains('ENCYCLOPEDIA','LOPE',doc)"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr06.xml
  
  Index: stringerr06.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr06.xsl
  
  Index: stringerr06.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr06 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'starts-with()' with one argument -->
    <!-- ExpectedException: starts-with() requires two arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="starts-with('ENCYCLOPEDIA')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr07.xml
  
  Index: stringerr07.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr07.xsl
  
  Index: stringerr07.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr07 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'starts-with()' with too many arguments -->
    <!-- ExpectedException: starts-with() has too many arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="starts-with('ENCYCLOPEDIA','LOPE',doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr08.xml
  
  Index: stringerr08.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr08.xsl
  
  Index: stringerr08.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr08 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring-before()' with one argument -->
    <!-- ExpectedException: substring-before() requires two arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring-before('ENCYCLOPEDIA')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr09.xml
  
  Index: stringerr09.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr09.xsl
  
  Index: stringerr09.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr09 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring-before()' with too many arguments -->
    <!-- ExpectedException: substring-before() has too many arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring-before('ENCYCLOPEDIA','LOPE',doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr10.xml
  
  Index: stringerr10.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr10.xsl
  
  Index: stringerr10.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr10 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring-after()' with one argument -->
    <!-- ExpectedException: substring-after() requires two arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring-after('ENCYCLOPEDIA')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr11.xml
  
  Index: stringerr11.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr11.xsl
  
  Index: stringerr11.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr11 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring-after()' with too many arguments -->
    <!-- ExpectedException: substring-after() has too many arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring-after('ENCYCLOPEDIA','LOPE',doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr12.xml
  
  Index: stringerr12.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr12.xsl
  
  Index: stringerr12.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr12 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring()' with one argument -->
    <!-- ExpectedException: substring() requires 2-3 arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring('ENCYCLOPEDIA')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr13.xml
  
  Index: stringerr13.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr13.xsl
  
  Index: stringerr13.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr13 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'substring()' with too many arguments -->
    <!-- ExpectedException: substring() has too many arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="substring('ENCYCLOPEDIA',4,5,2)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr14.xml
  
  Index: stringerr14.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr14.xsl
  
  Index: stringerr14.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr14 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'concat()' with one argument -->
    <!-- ExpectedException: concat() requires two or more arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="concat('x')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr15.xml
  
  Index: stringerr15.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr15.xsl
  
  Index: stringerr15.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr15 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'string-length()' with too many arguments -->
    <!-- ExpectedException: string-length() has too many arguments. -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="string-length('ENCYCLOPEDIA','PEDI')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr16.xml
  
  Index: stringerr16.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr16.xsl
  
  Index: stringerr16.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr16 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'translate()' with 2 arguments -->
    <!-- ExpectedException: The translate() function takes three arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="translate('bar','abc')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr17.xml
  
  Index: stringerr17.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc attr="slamwich">ENCYCLOPEDIA</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr17.xsl
  
  Index: stringerr17.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr17 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'translate()' with too many arguments -->
    <!-- ExpectedException: The translate() function takes three arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="translate('bar','abc','ABC','output')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr18.xml
  
  Index: stringerr18.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr18.xsl
  
  Index: stringerr18.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: STRerr18 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.2 String Functions  -->
    <!-- Purpose: Test of 'string()' with too many arguments -->
    <!-- ExpectedException: string() has too many arguments. -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="string(22,44)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr19.xml
  
  Index: stringerr19.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <doc>
  <a>a</a>
  <b>b</b>
  <c>c</c>
  <d>d</d>
  <e attr="whatsup">what's up</e>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/string/err/stringerr01.xml
  
  Index: stringerr01.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  

Reply via email to