dmarston 00/12/15 17:24:01
Added: test/tests/conf/math/err matherr14.xsl matherr01.xsl
matherr02.xml matherr02.xsl matherr03.xml
matherr03.xsl matherr04.xml matherr04.xsl
matherr05.xml matherr05.xsl matherr06.xml
matherr06.xsl matherr07.xml matherr07.xsl
matherr08.xml matherr08.xsl matherr09.xml
matherr09.xsl matherr10.xml matherr10.xsl
matherr11.xml matherr11.xsl matherr12.xml
matherr12.xsl matherr13.xml matherr13.xsl
matherr14.xml matherr01.xml
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/math/err/matherr14.xsl
Index: matherr14.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr14 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of round() with zero arguments. -->
<!-- ExpectedException: one argument expected -->
<xsl:template match="/">
<out>
<xsl:value-of select="round()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr01.xsl
Index: matherr01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr01 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.5 -->
<!-- Purpose: Test reaction to obsolete 'quo' operator. -->
<!-- ExpectedException: Old syntax: quo(...) is no longer defined in XPath
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="6 quo 4"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr02.xml
Index: matherr02.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr02.xsl
Index: matherr02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.5 -->
<!-- Purpose: Test of invalid function that resembles "true" with unary
minus. -->
<!-- ExpectedException: XSL Warning: Could not find function: troo -->
<xsl:template match="/">
<out>
<xsl:value-of select="-troo()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr03.xml
Index: matherr03.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr03.xsl
Index: matherr03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr03 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.5 -->
<!-- Purpose: Test of invalid function that resembles "true" with number().
-->
<!-- ExpectedException: XSL Warning: Could not find function: troo -->
<xsl:template match="/">
<out>
<xsl:value-of select="number(troo())"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr04.xml
Index: matherr04.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr04.xsl
Index: matherr04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.5 -->
<!-- Purpose: Test of invalid function that resembles "true" with
multiplication. -->
<!-- ExpectedException: XSL Warning: Could not find function: troo -->
<xsl:template match="/">
<out>
<xsl:value-of select="5 * troo()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr05.xml
Index: matherr05.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr05.xsl
Index: matherr05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr05 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.5 -->
<!-- Purpose: Test of invalid function that resembles "true" with div. -->
<!-- ExpectedException: XSL Warning: Could not find function: troo -->
<xsl:template match="/">
<out>
<xsl:value-of select="12 div troo()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr06.xml
Index: matherr06.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr06.xsl
Index: matherr06.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr06 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of number() with too many arguments. -->
<!-- ExpectedException: number() has too many arguments. -->
<xsl:template match="/">
<out>
<xsl:value-of select="number(8,doc)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr07.xml
Index: matherr07.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr07.xsl
Index: matherr07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr07 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of sum() with too many arguments. -->
<!-- ExpectedException: sum() has too many arguments. -->
<xsl:template match="/">
<out>
<xsl:value-of select="sum(doc,8)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr08.xml
Index: matherr08.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr08.xsl
Index: matherr08.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr08 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of sum() with zero arguments. -->
<!-- ExpectedException: one argument expected -->
<xsl:template match="/">
<out>
<xsl:value-of select="sum()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr09.xml
Index: matherr09.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr09.xsl
Index: matherr09.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr09 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of floor() with too many arguments. -->
<!-- ExpectedException: floor() has too many arguments. -->
<xsl:template match="/">
<out>
<xsl:value-of select="floor(8,7)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr10.xml
Index: matherr10.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr10.xsl
Index: matherr10.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr10 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of floor() with zero arguments. -->
<!-- ExpectedException: one argument expected -->
<xsl:template match="/">
<out>
<xsl:value-of select="floor()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr11.xml
Index: matherr11.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr11.xsl
Index: matherr11.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr11 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of ceiling() with too many arguments. -->
<!-- ExpectedException: ceiling() has too many arguments. -->
<xsl:template match="/">
<out>
<xsl:value-of select="ceiling(8,7)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr12.xml
Index: matherr12.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr12.xsl
Index: matherr12.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr12 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of ceiling() with zero arguments. -->
<!-- ExpectedException: one argument expected -->
<xsl:template match="/">
<out>
<xsl:value-of select="ceiling()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr13.xml
Index: matherr13.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr13.xsl
Index: matherr13.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: MATHerr13 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.4 -->
<!-- Purpose: Test of round() with too many arguments. -->
<!-- ExpectedException: round() has too many arguments. -->
<xsl:template match="/">
<out>
<xsl:value-of select="round(8,7)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/math/err/matherr14.xml
Index: matherr14.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/math/err/matherr01.xml
Index: matherr01.xml
===================================================================
<?xml version="1.0"?>
<doc>
<mod attrib="2">3</mod>
</doc>