RE: [xsl] Split string

Subject: RE: [xsl] Split string
From: "Craig Kattner" <CKattner@xxxxxxxxxxxxxx>
Date: Fri, 5 Dec 2003 10:09:04 -0600
http://www.exslt.org/str/functions/tokenize/index.html


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ricardo
Saraiva
Sent: Friday, December 05, 2003 9:54 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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


Current Thread