Re: [basex-talk] Calling the sort function with two arguments

2017-03-22 Thread Christian Grün
Hi Martin, The bug has been fixed in the latest snapshot [1]. Best, Christian [1] http://files.basex.org/releases/latest/ On Wed, Mar 22, 2017 at 4:27 PM, Christian Grün wrote: > Martin, > > Thanks for the hint, looks like a little bug (that has actually been > caused by the redefinition of t

[basex-talk] Calling the sort function with two arguments

2017-03-22 Thread Martin Honnen
According to https://www.w3.org/TR/xpath-functions-31/#func-sort the sort function allows one or two or three arguments, however when doing sort((5, 3, 4, 1), default-collation()) in BaseX 8.6.2 I get an error java.lang.ArrayIndexOutOfBoundsException: 2 at org.basex.query.func.fn.FnS

Re: [basex-talk] Calling the sort function with two arguments

2017-03-22 Thread Christian Grün
Martin, Thanks for the hint, looks like a little bug (that has actually been caused by the redefinition of this function). Until this has been fixed, the two following alternatives should do the job: fn:sort((5, 3, 4, 1)) fn:sort((5, 3, 4, 1), default-collation(), function($e) { $e }) Best,

[basex-talk] BaseX Client for Erlang

2017-03-22 Thread Christian Grün
Dear all, Zachary Dean has written an Erlang client binding for BaseX: https://github.com/zadean/basexerl Thanks, Zachary! I have just added the Erlang binding to our Wiki [1]. As a result, we now have 18 different client bindings for BaseX. All the best everyone, Christian [1] http://docs.