Subject: RE: [xsl] how to split word into sequence of letters From: Robby Pelssers <Robby.Pelssers@xxxxxxx> Date: Fri, 17 Aug 2012 16:50:17 +0200 |
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: [xsl] 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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how to split word into se, Robby Pelssers | Thread | Re: [xsl] how to split word into se, Andrew Welch |
RE: [xsl] how to split word into se, Robby Pelssers | Date | Re: [xsl] how to split word into se, Andrew Welch |
Month |