dmarston    00/12/15 18:12:20

  Added:       test/tests/conf/boolean/err booleanerr14.xsl
                        booleanerr01.xsl booleanerr02.xml booleanerr02.xsl
                        booleanerr03.xml booleanerr03.xsl booleanerr04.xml
                        booleanerr04.xsl booleanerr05.xml booleanerr05.xsl
                        booleanerr06.xml booleanerr06.xsl booleanerr07.xml
                        booleanerr07.xsl booleanerr08.xml booleanerr08.xsl
                        booleanerr09.xml booleanerr09.xsl booleanerr10.xml
                        booleanerr10.xsl booleanerr11.xml booleanerr11.xsl
                        booleanerr12.xml booleanerr12.xsl booleanerr13.xml
                        booleanerr13.xsl booleanerr14.xml booleanerr01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr14.xsl
  
  Index: booleanerr14.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr14 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Give lang() function too many arguments -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out><xsl:apply-templates select="doc/p"/></out>
  </xsl:template>
  
  <xsl:template match="p">
    <xsl:value-of select="lang('en','us')"/><xsl:text>, </xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr01.xsl
  
  Index: booleanerr01.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr01 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "not". -->
    <!-- ExpectedException: XSL Warning: Could not find function: nt -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="nt(true())"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr02.xml
  
  Index: booleanerr02.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr02.xsl
  
  Index: booleanerr02.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr02 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "true" in not. -->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="not(troo())"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr03.xml
  
  Index: booleanerr03.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr03.xsl
  
  Index: booleanerr03.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr03 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "true" in and. -->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="troo() and (2 = 2)"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr04.xml
  
  Index: booleanerr04.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr04.xsl
  
  Index: booleanerr04.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr04 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "true" in or. -->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="troo() or (2 = 2)"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr05.xml
  
  Index: booleanerr05.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr05.xsl
  
  Index: booleanerr05.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr05 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "true" in = relation. 
-->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="2 = troo()"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr06.xml
  
  Index: booleanerr06.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr06.xsl
  
  Index: booleanerr06.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr06 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test of invalid function that resembles "true" in boolean(). 
-->
    <!-- ExpectedException: XSL Warning: Could not find function: troo -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="boolean(troo())"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr07.xml
  
  Index: booleanerr07.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr07.xsl
  
  Index: booleanerr07.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr07 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of true() with an argument. -->
    <!-- ExpectedException: expected zero arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="true(doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr08.xml
  
  Index: booleanerr08.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr08.xsl
  
  Index: booleanerr08.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr08 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of false() with an argument. -->
    <!-- ExpectedException: expected zero arguments -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="false(doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr09.xml
  
  Index: booleanerr09.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr09.xsl
  
  Index: booleanerr09.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr09 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of not() with no argument. -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="not()"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr10.xml
  
  Index: booleanerr10.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr10.xsl
  
  Index: booleanerr10.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr10 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of not() with too many arguments. -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="not(false(),doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr11.xml
  
  Index: booleanerr11.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr11.xsl
  
  Index: booleanerr11.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr11 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of boolean() with no argument. -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="boolean()"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr12.xml
  
  Index: booleanerr12.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr12.xsl
  
  Index: booleanerr12.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr12 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.3 -->
    <!-- Purpose: Test of boolean() with too many arguments. -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="boolean(false(),doc)"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr13.xml
  
  Index: booleanerr13.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <p xml:lang="en"/>
    <p xml:lang="EN"/>
    <p xml:lang="en-gb"/>
    <p xml:lang="EN-GB"/>
    <p xml:lang="TH"/>
    <p/>
    <span xml:lang="en">
      <p/>
    </span>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr13.xsl
  
  Index: booleanerr13.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: BOOLerr13 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Give lang() function too few arguments -->
    <!-- ExpectedException: expected one argument -->
  
  <xsl:template match="/">
    <out><xsl:apply-templates select="doc/p"/></out>
  </xsl:template>
  
  <xsl:template match="p">
    <xsl:value-of select="lang()"/><xsl:text>, </xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr14.xml
  
  Index: booleanerr14.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <p xml:lang="en"/>
    <p xml:lang="EN"/>
    <p xml:lang="en-gb"/>
    <p xml:lang="EN-GB"/>
    <p xml:lang="TH"/>
    <p/>
    <span xml:lang="en">
      <p/>
    </span>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/boolean/err/booleanerr01.xml
  
  Index: booleanerr01.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  

Reply via email to