[xsl] Split string

Subject: [xsl] Split string
From: "Ricardo Saraiva" <rss@xxxxxxxxxxxxxx>
Date: Fri, 5 Dec 2003 15:53:59 -0000
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


Current Thread