[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] how to split word into sequence of letters


Subject: RE: [xsl] how to split word into sequence of letters
From: Robby Pelssers <Robby.Pelssers@xxxxxxx>
Date: Fri, 17 Aug 2012 17:12:34 +0200

Yeah... that's called borrowing solutions from another spec ;-)

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

> Your solution does reassemble the string and a count on that expression
would result in 1.
>
> So I guess you meant sth like:

ah yeah that's what i meant but what is this odd syntax:

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

;)




--
Andrew Welch
http://andrewjwelch.com


Current Thread