[basex-talk] how to start and configure Jetty?

2020-06-21 Thread Nicholas
I don't quite understand what it means for Jetty to be "embedded" in or with BaseX, but presumably there's a configuration? I see: |DEBUG =falseDBPATH =/home/nicholas/basex/data LOGPATH =.logs REPOPATH =/home/nicholas/basex/repo LANG =EnglishLANGKEYS =falseFAIRLOCK =falseCACHETIM

[basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Hi, How do I rename all the "record" nodes in a database?  I'm trying: for $x in db:open("bccdc_covid19") return return rename node $x//record as "baz" but this gives back Stopped at ., 1/13: [XPDY0002] bc.rename.xq: no context value bound. or [XPST0003] Unexpected end of query:

Re: [basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Pardon, this indeed works: for $x in db:open("bccdc_covid19") return rename node $x//baz as "foo" but only for the first node baz -- how can I rename all of the nodes?  Or match an Xpath? It's CSV data, so the general layout (?) is csv/record/entry and instead of "record" I'd want that

[basex-talk] Load xml files to BaseX in a loop

2013-02-09 Thread Nicholas OR Rita Stevens
I am new at BaseX so please pardon the newbie question. I am trying to run an xquery script to load a set of xml files in a directory into to BaseX 7.5. If I run replace.xq, shown below, it fails with Out of Main Memory declare %updating function local:upd($path,$file) {

[basex-talk] Java Exception:insertion at beginning of populated table

2013-04-09 Thread Nicholas OR Rita Stevens
Via a python client, I am looping through a set of 600 xml files and issuing REPLACE commands to store them in my BaseX db. All was well until I reached file #364, at which point the program crashed with Java.lang.RuntimeException: insertion at beginning of populated table. I am using BaseX 7.7