in the attached stylesheet, I do an xsl:for-each on a
set of strings. Success in accessing the context node
then seems to depend on wether I assign its string
value to a variable first (lines 42-45):
42: <xsl:value-of select="."/>
43: <xsl:value-of select="count($TopicSelections<span>[@value=string(.)]</span>)"/>
44: <xsl:variable name="v" select="string(.)"/>
45: <xsl:value-of select="count($TopicSelections<span>[@value=$v]</span>)"/>
The output of lines 43 and 45 should not differ, but
they do. Only line 45 works.
I attached the stylesheet, an input file, and my result
Please enlighten me about the conversion of atomic
values, sequences and trees that should cause this
behaviour if it is no bug.
BTW: I use saxonB.8-7