Implementations are required to recognize Unicode Collation Algorithm URIs, and there is a fallback mechanism for use if the implementation of a particular collation is inexact:
file:///Users/mike/GitHub/mhk/qtspecs/build/www/xpath-functions-40/Overview.html#uca-collations
So if you specify collation = "http://www.w3.org/2013/collation/UCA?lang=se;fallback=yes"
then every implementation is guaranteed to recognise the collation URI and there's a good chance you'll get something that is suitable for sorting Swedish. If you use fallback=no then you will either get the precise Swedish collation defined by Unicode, or an error.
Michael Kay
> On 15 Mar 2024, at 15:58, Dimitre Novatchev <dnovatchev@gmail.com> wrote:
>
>
>
> On Fri, Mar 15, 2024 at 8:53 AM Christian Grün <cg@basex.org <mailto:cg@basex.org>> wrote:
>> > I have a question to Michael Kay, Christian Gruen and other implementors:
>> > Where can one find a list of all collation names and get the full sorted list of characters for each collation?
>>
>> Collations are vendor-specific. See the following link to get more detalis on BaseX:
>>
>> https://docs.basex.org/wiki/Full-Text#Collations
>
>
> Hmm... this doesn't sound good for writing portable and vendor-agnostic code.
>
> Why not have at least a small set of standardized collation names and features? Seems that could be a good and useful job for the CG?
>
> Thanks,
> Dimitre
>