[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|