JCS wrote:
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>
That's string tokenization. You can solve this using a recursive
template (pure XSLT), as described here:
http://www.dpawson.co.uk/xsl/sect2/N7240.html#d8065e280
or check whether your processor supports EXSLT
http://www.exslt.org/str/functions/tokenize/index.html
or has a proprietary extension function for this task.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list