Hmmm, I can't think of a way to exactly do this.  But for any given character, 
you can use > or < in a Boolean statement to figure out if a character is 
before or after.  For example:

xquery version "1.0-ml";

declare default collation "http://marklogic.com/collation/en/S1/AS/T00BB";;

"z" > "Z"

=> false

If you are clever, you can probably do some sort of binary search to narrow 
down the next character in a few handfuls of comparisons.

-Danny

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Tim Finney
Sent: Thursday, April 26, 2012 11:29 AM
To: [email protected]
Subject: [MarkLogic Dev General] Next character according to a collation

Hi,

I would like to know how to determine the next character according to a
particular collation. E.g., what comes immediately after "z" in
collation http://marklogic.com/collation/en/S1/AS/T00BB ?

Tim Finney


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to