dmarston 00/12/15 14:38:49
Added: test/tests/conf/position/err positionerr05.xsl
positionerr01.xsl positionerr02.xml
positionerr02.xsl positionerr03.xml
positionerr03.xsl positionerr04.xml
positionerr04.xsl positionerr05.xml
positionerr01.xml
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/position/err/positionerr05.xsl
Index: positionerr05.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: POSerr05 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions -->
<!-- Purpose: last() should not have any arguments. -->
<!-- ExpectedException: zero arguments expected -->
<xsl:template match="doc">
<out>
<xsl:value-of select="position()=last(a)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/position/err/positionerr01.xsl
Index: positionerr01.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: POSerr01 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions -->
<!-- Purpose: Last should not have any arguments. -->
<!-- ExpectedException: zero arguments expected -->
<xsl:template match="doc">
<out>
Last is h: <xsl:value-of select="*[last(*,2)]"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/position/err/positionerr02.xml
Index: positionerr02.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a test="true">a</a>
<a>b</a>
<a test="false">c</a>
<a test="true">d</a>
<a>e</a>
<a test="false">f</a>
<a test="true">g</a>
<a test="false">h</a>
</doc>
1.1 xml-xalan/test/tests/conf/position/err/positionerr02.xsl
Index: positionerr02.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: POSerr02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions -->
<!-- Purpose: position() should not have any arguments. -->
<!-- ExpectedException: zero arguments expected -->
<xsl:template match="doc">
<out>
<xsl:value-of select="position(b)=1"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/position/err/positionerr03.xml
Index: positionerr03.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a test="true">a</a>
<a>b</a>
<a test="false">c</a>
<a test="true">d</a>
<a>e</a>
<a test="false">f</a>
<a test="true">g</a>
<a test="false">h</a>
</doc>
1.1 xml-xalan/test/tests/conf/position/err/positionerr03.xsl
Index: positionerr03.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: POSerr03 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions -->
<!-- Purpose: Test too few arguments to count(). -->
<!-- ExpectedException: The count function should take one argument -->
<xsl:template match="doc">
<out>
<xsl:value-of select="count()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/position/err/positionerr04.xml
Index: positionerr04.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a test="true">a</a>
<a>b</a>
<a test="false">c</a>
<a test="true">d</a>
<a>e</a>
<a test="false">f</a>
<a test="true">g</a>
<a test="false">h</a>
</doc>
1.1 xml-xalan/test/tests/conf/position/err/positionerr04.xsl
Index: positionerr04.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: POSerr04 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions -->
<!-- Purpose: Test too few arguments to count(). -->
<!-- ExpectedException: The count function should take one argument -->
<xsl:template match="doc">
<out>
<xsl:value-of select="count(*,4)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/position/err/positionerr05.xml
Index: positionerr05.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a test="true">a</a>
<a>b</a>
<a test="false">c</a>
<a test="true">d</a>
<a>e</a>
<a test="false">f</a>
<a test="true">g</a>
<a test="false">h</a>
</doc>
1.1 xml-xalan/test/tests/conf/position/err/positionerr01.xml
Index: positionerr01.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a test="true">a</a>
<a>b</a>
<a test="false">c</a>
<a test="true">d</a>
<a>e</a>
<a test="false">f</a>
<a test="true">g</a>
<a test="false">h</a>
</doc>