XPath 2.0 position() function and SaxonB 9.1.0.3
Posted: Sat Dec 27, 2008 7:21 am
Hi,
I'm getting odd results when I use the position() function within an XSLT 2.0 stylesheet and the SaxonB 9.1.0.3 transformer.
Given a simple XML document such as the following
and an XSLT template:
I expect to see an ordered list of numbers starting with 1. However, the transformation prints out the numbered sequence 2, 4, 6... (text nodes perhaps?) This does not occur with the SaxonSA transformer or with XPath 2.0 and XPath 2.0 SA searches.
I understand that this is most likely an issue with the transformer and not with Oxygen XML, but I thought I'd give this a try anyway.
I'm getting odd results when I use the position() function within an XSLT 2.0 stylesheet and the SaxonB 9.1.0.3 transformer.
Given a simple XML document such as the following
Code: Select all
<xml ...>
<table>
<table-row>
...
</table-row>
<table-row>
...
</table-row>
...
</table>
Code: Select all
<xsl:template match="/table/table-row">
<xsl:value-of select="position()"/>
</xsl:template>
I understand that this is most likely an issue with the transformer and not with Oxygen XML, but I thought I'd give this a try anyway.