ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved