xsl-list
[Top] [All Lists]

Separating multiple values in a string

2003-11-29 08:22:05
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



<Prev in Thread] Current Thread [Next in Thread>