W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2008

RE: String tokenizing in XSL

From: Michael Kay <mhk@mhk.me.uk>
Date: Fri, 4 Apr 2008 22:15:34 +0800
To: "'priby'" <princy.mat@gmail.com>, <xsl-editors@w3.org>
Message-ID: <028901c8965e$a0e789c0$e4f9a8c0@turtle>

The xsl-editors list is provided for comments on the XSLT 1.0 and XPath 1.0
specification, not for getting coding advice. (And str:tokenize() isn't even
part of those specifications, it is a third-party extension.) You are better
off asking on the xsl-list at mulberrytech.com.

XPath 2.0 has a function tokenize() which would appear to meet your needs.

Michael Kay

> I am trying tokenize a string in XSL using str:tokenize. I 
> want the delimiter to be taken as a combination of charactes. 
> That is the tokenizing should occur only if combination of 
> characters exist. (It should not tokenize if any of the 
> characters in the delimiter is present individually)
> For egs:
> When I use str:tokenize('A%^B~^C%^D~^','~^') , I should get 
> the output as A%^B and C%^D.
> Is it possible with str:tokenize? IF not is there any other 
> function to do this.
> Thanks in advance..
> priby
> --
> View this message in context: 
> http://www.nabble.com/String-tokenizing-in-XSL-tp16489194p1648
> 9194.html
> Sent from the w3.org - xsl-editors mailing list archive at Nabble.com.
Received on Friday, 4 April 2008 14:18:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:25 UTC