Details
-
Bug
-
Status: Resolved
-
Resolution: Incomplete
-
1.3.x
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
11629
Description
Given the following input XML :
<?xml version="1.0"?>
<list>
<item/>
<item/>
<item/>
<item/>
</list>
and the following XSLT
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="item">
Item <xsl:value-of select="position()"/>
</xsl:template>
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
The output is
<html>
<body>
Item 2
Item 4
Item 6
Item 8
</body>
</html>
It should be 1,2,3,4