[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Separating multiple values in a string


Subject: [xsl] Separating multiple values in a string
From: JCS <subscriber@xxxxxxxxxxxxx>
Date: Sun, 30 Nov 2003 04:22:05 +1300

Hello everyone,

I'm trying to separate three values into elements using the string function.
I'm not quite sure how to do this with XSLT.

So if I have:

<element>happy/moon/beam</element>

I transform it to:

<element_1>happy</element_1>
<element_2>moon</element_2>
<element_3>beam</element_3>

The strings will have random amounts of separated data so I'm not quite sure
how to loop through the template and separate the elements.

Perhaps someone could point me in the right direction.

TiA,

/johnny :) 








-- 
"You'll see it when you believe it." 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread