wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes xsl tokenize issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl tokenize issue" Watch "xsl tokenize issue" New topic

xsl tokenize issue

Tayaramma Talluri

Joined: Aug 20, 2007
Posts: 2
I need to parse a string of pattern, a|b|c|d|e..
I am trying to parse it using tokenize function in xsl.
but, the following exception is given:

javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Could not find function: tokenize
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:984)

Let me know if you have any idea.
Also let me know, if there is any other way of parsing the string in xsl.
and what are the includes and version required.

Thanks in Advance
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

The tokenize function belongs to XSLT 2.0, you cannot use it in the XSLT 1.0 product you are using. If you want to use it, and other XSLT 2.0 functions, you will need to use a transformer that supports XSLT 2.0. Saxon is one, and there may be others.

Or if you want to stick with the transformer you are using now, just google for "xsl tokenize". When I did that I got at least four web pages explaining how to do it.
[ August 20, 2007: Message edited by: Paul Clapham ]
I agree. Here's the link: http://aspose.com/file-tools
subject: xsl tokenize issue
Similar Threads
Tokenize a string using xslt
Problem parsing UTF-8 encoded XML file
tokenize function in XSL
translate function
String Tokenizer