[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: breaking string into substrings or arrays

Subject: RE: breaking string into substrings or arrays
From: "Ross, Douglas" <DRoss@xxxxxxxxxx>
Date: Tue, 19 Apr 2005 11:06:07 -0400
breaking string
If you search http://www.mulberrytech.com/xsl/xsl-list for tokenize, you
should be able to find examples of Michael's suggestions.

Douglas Ross
Developer, HTML UI Framework
Kronos
www.kronos.com


-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Tuesday, April 19, 2005 11:03 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  breaking string into substrings or arrays

In XSLT 1.0 you have a choice:

(a) write a recursive template that bites off one token each time it's
called using substring-before

(b) use a tokenize() function from a library such as EXSLT
(www.exslt.org).

In 2.0 use the built-in tokenize() function, or xsl:analyze-string.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Rahil's Yahoo Mail [mailto:qamar_rahil@xxxxxxxxxxx]
> Sent: 19 April 2005 15:57
> To: XSL List
> Subject:  breaking string into substrings or arrays
>
> Hi
>
> Is it possible to break up a text() node which contains a
> string for e.g.
>
> <Value>[Alpha, Beta, Gamma]</Value>
>
> into
>
> <Value>Alpha</Value>
> <Value>Beta</Value>
> <Value>Gamma</Value>
>
> ?
> Is there any equivalent for arrays in XPath to break a long string as
> above based on a token such as comma (,) ?
>
> Regards
> Rahil

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.