This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

xsl tokenize issue  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Tayaru
 
Sheriff
Posts: 23885
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!