[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
JCS wrote:
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Separating multiple values in a string
Subject: Re: [xsl] Separating multiple values in a string From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Sat, 29 Nov 2003 17:53:27 +0100 |
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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Separating multiple values in, JCS | Thread | Re: [xsl] Separating multiple value, JCS |
[xsl] Separating multiple values in, JCS | Date | Re: [xsl] Re: Matching a first inst, Ben Trafford |
Month |