You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/08/03 21:34:41 UTC
cvs commit: xml-xalan/test/tests/conf/select/err selecterr19.xsl selecterr17.xsl selecterr18.xml selecterr18.xsl selecterr19.xml selecterr17.xml
dmarston 01/08/03 12:34:41
Added: test/tests/conf/select/err selecterr19.xsl selecterr17.xsl
selecterr18.xml selecterr18.xsl selecterr19.xml
selecterr17.xml
Log:
New error cases for bad // formulations
Revision Changes Path
1.1 xml-xalan/test/tests/conf/select/err/selecterr19.xsl
Index: selecterr19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: selecterr19 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to put '//' at end of path. -->
<!-- ExpectedException: Abbreviation '//' must be followed by a step expression -->
<xsl:template match="doc">
<out>
<xsl:for-each select="foo">
<xsl:value-of select="item//"/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/err/selecterr17.xsl
Index: selecterr17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: selecterr17 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to follow '//' by a predicate, without node-test. -->
<!-- ExpectedException: Found '[' without node test -->
<xsl:template match="doc">
<out>
<xsl:for-each select="foo">
<xsl:value-of select="item//[@type='x']"/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/err/selecterr18.xml
Index: selecterr18.xml
===================================================================
<?xml version="1.0"?>
<doc>
<foo name="x">
<item type="z">a</item>
<item type="c">
<subitem>OK</subitem>
</item>
<item type="x">c</item>
</foo>
</doc>
1.1 xml-xalan/test/tests/conf/select/err/selecterr18.xsl
Index: selecterr18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: selecterr18 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to select a '//' without a following node-test. -->
<!-- ExpectedException: Abbreviation '//' must be followed by a step expression -->
<xsl:template match="doc">
<out>
<xsl:for-each select="//subitem">
<xsl:value-of select="//"/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/err/selecterr19.xml
Index: selecterr19.xml
===================================================================
<?xml version="1.0"?>
<doc>
<foo name="x">
<item type="z">a</item>
<item type="c">
<subitem>OK</subitem>
</item>
<item type="x">c</item>
</foo>
</doc>
1.1 xml-xalan/test/tests/conf/select/err/selecterr17.xml
Index: selecterr17.xml
===================================================================
<?xml version="1.0"?>
<doc>
<foo name="x">
<item type="z">a</item>
<item type="c">
<subitem>OK</subitem>
</item>
<item type="x">c</item>
</foo>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org