Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Furst, Thomas
Yes and no. It was mentioned to me earlier today when posting on SO. I know some XQuery, but not so much as I do XSLT. This current output is not the final transformation, there is quite a bit more to go, this was just early test and ran into this issue. I am open to ideas on how to do this

Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Christian Grün
Your query might be much slicker and more efficient if you wrote it completely in XQuery. Did you think about that? Furst, Thomas schrieb am Do., 21. Mai 2020, 17:22: > I have a large XML file stored in BaseX that I need to split up into > smaller, modular documents. I have created an XSL

Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Imsieke, Gerrit, le-tex
Alternatively, apply your stylesheet using xslt:transform-text() instead of xslt:transform(). On 21.05.2020 18:33, Imsieke, Gerrit, le-tex wrote: Hi Tom, The problem is most probably that your XSLT doesn’t create a *primary* output. It just writes something to another result-document.

Re: [basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Imsieke, Gerrit, le-tex
Hi Tom, The problem is most probably that your XSLT doesn’t create a *primary* output. It just writes something to another result-document. However, the interface for invoking an XSLT expects some result document. So if you just create a element next to and then discard it, it should just

[basex-talk] BaseX XSLT fails after returning first result

2020-05-21 Thread Furst, Thomas
I have a large XML file stored in BaseX that I need to split up into smaller, modular documents. I have created an XSL file to do so: http://www.w3.org/1999/XSL/Transform; xmlns:xs="http://www.w3.org/2001/XMLSchema; exclude-result-prefixes="xs" version="2.0">

Re: [basex-talk] patterns

2020-05-21 Thread Ветошкин Владимир
Hi, Кристиан,Ok. Thank you for another way.I decided to leave "user:grant('000590',('write'),('000590-*_settings'))"There will be no overlap in database names.  21.05.2020, 16:59, "Christian Grün" :Hi Владимир,Database patterns are restricted to the glob syntax (see [1]). You cancreate multiple

Re: [basex-talk] patterns

2020-05-21 Thread Christian Grün
Hi Владимир, Database patterns are restricted to the glob syntax (see [1]). You can create multiple patterns… for $n in 10 to 999 return user:grant('000590', 'write', '000590-' || $n || '_settings') …but you should do some performance tests before going live with that. Best, Кристиан [1]

[basex-talk] patterns

2020-05-21 Thread Ветошкин Владимир
Hi, basex team! How can I use regex in patterns? Or that's impossible?For example,user:grant('000590',('write'),('000590-\d{2,3}_settings'))Or only so:user:grant('000590',('write'),('000590-*_settings'))

Re: [basex-talk] util:item - java.lang.NullPointerException

2020-05-21 Thread Sebastian Guerrero
Thank you very much, Christian. I confirm that it's working now. [1] Bests regards, Sebastian [1] https://imgur.com/NjUqqvF On Thu, May 21, 2020 at 5:06 AM Christian Grün wrote: > …fixed [1]. Thanks for the easily reproducible test case and the kudos. > > [1]

Re: [basex-talk] util:item - java.lang.NullPointerException

2020-05-21 Thread Christian Grün
…fixed [1]. Thanks for the easily reproducible test case and the kudos. [1] http://files.basex.org/releases/latest/ On Thu, May 21, 2020 at 1:04 AM Sebastian Guerrero wrote: > > Hi BaseX team! > > I have a database with a text-index for a node named "serial-number" with > 2,164,980