xsl-list
[Top] [All Lists]

RE: Split string

2003-12-05 09:09:04
http://www.exslt.org/str/functions/tokenize/index.html


-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Ricardo
Saraiva
Sent: Friday, December 05, 2003 9:54 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Split string


Hello,

        How do I split a string into several strings by a given token?

        The example that follows shows what is supposed to be done:

The input:

<ToName>person1;person2</ToName>
<ToAddress>mail1;mail2</ToAddress>

Desired output:

<To>
  <Contact>
        <Name>person1</Name>
      <Address>mail1</Address>
  </Contact>
  <Contact>
        <Name>person2</Name>
      <Address>mail2</Address>
  </Contact>
</To>

Thanks in advance,

Ricardo Saraiva.



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


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



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