|
Subject: Re: [xsl] Tokenize comma separated string in XSL From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 21 Mar 2007 12:19:37 +0100 |
Hi All,What version of XSLT are you using?
I have a comma-separated string like ABC,DEF,GHI which I want to
tokenize and return to a template which retrieves separately its
corresponding code from a XML input.
<xsl:for-each select="tokenize($your_input, ',')" >
<Description value="{.}" />
</xsl:for-each>The output should be:your output is not valid XML and as such is not (easily) possible with XSLT. I assume you meant something else?
<AllCodes>
<Code value = "A">
<Description="ABC">
Cheers, -- Abel Braaksma http://www.nuntia.nl
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Tokenize comma separated stri, Lalit.Chanchlani | Thread | RE: [xsl] Tokenize comma separated , Lalit.Chanchlani |
| [xsl] &amp;, Marco | Date | Re: [xsl] What's your visual metaph, bryan rasmussen |
| Month |