blob: 8a82d7ec6808f47e1204da86fa71a4abb9a24e41 [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: selecterr10 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 8 Repetition -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to use a number where a node-set is needed in for-each.-->
<!-- ExpectedException: XPATH: Can not convert #UNKNOWN to a NodeList -->
<!-- ExpectedException: Can not convert #NUMBER to a NodeList! -->
<xsl:template match="/">
<out>
<xsl:for-each select="4">
<xsl:value-of select="."/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>