xsl-list
[Top] [All Lists]

Re: Split string

2003-12-05 09:12:42
Hi Ricardo,

The FAQ has an answer here:

http://www.dpawson.co.uk/xsl/sect2/N7240.html#d8065e280

HtH,

/johnny :)


On 6/12/03 4:53 AM, "Ricardo Saraiva" 
<rss(_at_)dee(_dot_)fct(_dot_)unl(_dot_)pt> wrote:

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




-- 
"A critic is a person who goes onto the battlefield after the battle has
been fought and shoots the survivors."


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



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