As David suggests, I suspect you are displaying the result
using xsl:value-of. In XSLT 1.0 (or 2.0 with backwards compatibility enabled)
this only displays the first node in the selected node-set, in 2.0 it displays
all of them. If you only want the first, use <xsl:value-of
select="(EXPR)"/> (or select backwards compatibility using
Misspoke the problem.
Tested the scenario above and I'm getting 2 results for XALAN as
Actual problem: The data I'm using is:
and the XPath I'm using is: //command/@label
In XALAN, I get the result "one". In SAXON I get the result "one
Yet with XALAN the count(//command) is two. So the extra step
for the @label is where the two implementations diverge.
How do I get the first command in the