N
Nicolas M
Hi, i've got a problem :
i want to iterate over a list of string created via tokenize(), but i
also want to fetch an attribute value of a node that as an attribute
with the value of my current list item :
<xsl:for-each select="tokenize(my_string)"> <xsl:variable
name="label" select="."/> <xsl:variable name="id"
select="//mynode[@label=$label]/@id"/>
<xsl:value-of select="$id"/>
</xsl:for-each>
But i've got an error form le latest version of SAXON :
"Cannot select a node here: the context item is an atomic value"
Something i did wrong ?
Thanks for your help
Nicolas
i want to iterate over a list of string created via tokenize(), but i
also want to fetch an attribute value of a node that as an attribute
with the value of my current list item :
<xsl:for-each select="tokenize(my_string)"> <xsl:variable
name="label" select="."/> <xsl:variable name="id"
select="//mynode[@label=$label]/@id"/>
<xsl:value-of select="$id"/>
</xsl:for-each>
But i've got an error form le latest version of SAXON :
"Cannot select a node here: the context item is an atomic value"
Something i did wrong ?
Thanks for your help
Nicolas