W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2002

Re: Splitting a stirng

From: Dave Pawson <DaveP@dpawson.freeserve.co.uk>
Date: Wed, 20 Mar 2002 18:29:50 -0800
Message-Id: <>
To: Brenda Bell <bbell@juicesoftware.com>, "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
At 11:02 20/03/2002 -0500, Brenda Bell wrote:

>I have an XML document with an element whose content is a string 
>containing "fields" delimited by semi-colons.  Example:
>I want to transform this element into something that looks like this:
>         <UNPACKEDINFO>
>                 <INFO1>123</INFO1>
>                 <INFO2>ABC</INFO2>
>                 <INFO3>0</INFO3>
>                 <INFO4>X</INFO4>
>         </UNPACKEDINFO>
>Can I do this with XSL?  I'm familiar with the substring functions and 
>while I've never used them, I've read the documentation on the param and 
>variable elements.

I'm lazy, I trust Saxon which clearly states my bias.

Try saxon:tokenise()

That will do what is needed here.

I just hope it gets into xslt 2.0.

Received on Wednesday, 20 March 2002 13:30:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:54 UTC