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

RE: how to split word into sequence of letters

Subject: RE: how to split word into sequence of letters
From: Robby Pelssers <Robby.Pelssers@xxxxxxx>
Date: Fri, 17 Aug 2012 16:50:17 +0200
RE:  how to split word into sequence of letters
Little error actually in your solution.

Your solution does reassemble the string and a count on that expression would
result in 1.

So I guess you meant sth like:

declare function local:split($string as xs:string) as xs:string* {
    for $codepoint in string-to-codepoints($string) return
codepoints-to-string($codepoint)
};

Thx for the pointer though !!
Robby

-----Original Message-----
From: Robby Pelssers [mailto:Robby.Pelssers@xxxxxxx]
Sent: Friday, August 17, 2012 4:41 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  how to split word into sequence of letters

Wow...didn't see that coming.. code points ;-)

But reason enough to check it out !!

Je vous en remercie.
Robby

-----Original Message-----
From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
Sent: Friday, August 17, 2012 4:38 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  how to split word into sequence of letters

> Probably the stupidest question since a while but what would be the
preferred way to split a word into a sequence of letters  ;-)

codepoints-to-string(string-to-codepoints('abcde'))


--
Andrew Welch
http://andrewjwelch.com

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.