[xslt] extension functions returning node-sets



Which is the correct syntax for retrieving the second node from an extension
returning a node-set?  This behavior appears to have changed in recent
versions of libx*.

Given:
<xsl:variable name="test" select="str:tokenize('bob smith')"/>
Is it
1)
<xsl:value-of select="$test[2]"/>

or

2)
<xsl:value-of select="$test/token[2]"/>

I thought it was number 2, but number 1 is the only one that works.  I seem
to remeber two as working before in libx*

Thoughts?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]