[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Tokenize comma separated string in XSL

Subject: Re: Tokenize comma separated string in XSL
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 21 Mar 2007 12:52:08 +0100
Re:  Tokenize comma separated string in XSL
Lalit.Chanchlani@xxxxxxxxxxxxxxxxxx wrote:
I am using XSLT 1.0 In the XSL I get the comma separated string
ABC,DEF,GHI as a parameter which is set by a Java program.


The output XML should be:

<AllCodes>
   <Code value = "A">
      <Description="ABC"/>

<snip />

This is almost a 100% copy of your original post, without any changes to your output XML (which still is *not* XML!). D-R-Y, it is not needed, we all read your previous posts.


Did you read my original reply? I suggested for XSLT 1 that you go for any of the many string-tokenize methods, like recursive applying a named template with substring-before/after etc. There are many suggestions in the FAQ. A general solution is here: http://www.exslt.org/str/functions/tokenize/index.html (go to XSLT Template link).

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.