This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Split variables
- Subject: Re: Split variables
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 14 Nov 2000 15:23:59 GMT
- CC: xsl-list at mulberrytech dot com
- References: <3B6E1008F9EBD111AF380020AF88FF9E065DC2@hercules>
- Reply-To: xsl-list at mulberrytech dot com
> I've got a variable that contains following string:
> 123,abc,456,def,
if you know you want to split on 3's then you can use
substring($var,1,3)
substring($var,4,6)
etc,
otherwise you need to repeatedly use substring-before() and
substring-after to split things up on the commas.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list