str:tokenize question

"Mitchell, Sara" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <36ABA0D7915D3248BE909B303B35F44505413865@DEN-EXM-03.corp.ebay.com>
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

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.