Re: [basex-talk] Queuing order for db:add

2023-04-11 Thread Marco Lettere
Hi Christian, sorry for not being clear enough. I was just wondering whether I can rely on insertion order being kept when I perform a corresponding db:get("db", "a.xml"). In other words given your slightly modified example: for $i in 1 to 100 return db:add('db', , 'a.xml') Will

Re: [basex-talk] Queuing order for db:add

2023-04-11 Thread Christian Grün
Hi Marco, > Does db:add multiple resources to the same path guarantee sorting based > on insertion time? Sorry for the late reply, but I’m not sure if I understand your question. It’s correct, it’s possible to add multiple resources to the same path, e.g. as follows: for $i in 1 to 100 return

[basex-talk] Fwd: FW: java binding passing variables

2023-04-11 Thread Burkhard Quessel
*Subject:* java binding passing variables I am trying to use xquery to transform Tibetan which is presented in Roman script to Unicode, i.e. into original Tibetan script. For this I use existing java code from here:

Re: [basex-talk] Fwd: FW: java binding passing variables

2023-04-11 Thread Andy Bunce
Hi Burkhard, The thing about the warn argument is that it can be updated by the Java call. So I think you will need to pass in a suitable Java object. For this case I tried an ArrayList import module namespace bdrc = "io.bdrc.ewtsconverter.EwtsConverter"; let $warn:=Q{java.util.ArrayList}new()

Re: [basex-talk] Queuing order for db:add

2023-04-11 Thread Christian Grün
> I was just wondering whether I can rely on insertion order being kept > when I perform a corresponding db:get("db", "a.xml"). Thanks. Yes, you can!