[exslt] str:tokenize question
by Sara Mitchell other posts by this author
Jun 14 2006 6:29AM messages near this date
[exslt] Namespace 'http://exslt.org/strings' does not contain any functions.
|
Re: [exslt] str:tokenize question
& XSLT I'm either missing something or having one of those days when I'm just
totally clueless. I've looked at the archives, the web site and this
problem for too long and I still don't understand it. I'm attempting to
use the EXSLT tokenize function in Xalan 2.7.0 but I am getting results
that don't make any sense to me.
With this usage:
<xsl:variable name="relative.path.tokens"
select="exc:node-set(strl:tokenize( '5:2' , ':' ))"/>
token 1: <xsl:value-of select="$relative.path.tokens[1]"/>
token 2: <xsl:value-of select="$relative.path.tokens[2]"/>
I thought that $relative.path.tokens would be a node set that looks like
this:
<token> 5</token>
<token> 2</token>
and I expected to get output like this:
token 1: 5
token 2: 2
What I get is:
token 1: 2
token 2:
What am I missing here?
Sara Mitchell
Thread:
Sara Mitchell
A. Pagaltzis
|