[basex-talk] thesaurus URILiteral vs node

2021-05-26 Thread Liam R. E. Quin
What would be involved in extending BaseX's full text to allow a thesaurus to be supplied as a node instead of a URI? I want to construct one on the fly, and using file:write() seems excessive. Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information

Re: [basex-talk] Running XQuery Update via apply Ant task

2021-05-26 Thread Zimmel, Daniel
hmm to answer myself, seems I can also change the query to prepare for multiple document-nodes input, something like this: for $node in /* return for $f in $node return insert node B as first into $f With writeback enabled, all the files get updated from the commandline. Is this the way to go

[basex-talk] Running XQuery Update via apply Ant task

2021-05-26 Thread Zimmel, Daniel
Hi, is there anyone using BaseX in an Apache Ant scenario? I have the following target for XQuery Updating some files (no database access), but I am too dumb to make an apply task that reads every file in a fileset. Usually you place the where you need it to be in your external command, but

Re: [basex-talk] BUG node comparison

2021-05-26 Thread ydyxeb
Thank you very much Christian! (my mistake for confusing equality and inequality in consideration of your previous response) Kind regards Jan -Original Message- From: Christian Grün Sent: Wednesday, May 26, 2021 13:28 To: ydy...@post.cz Cc: BaseX Subject: Re: [basex-talk] BUG node

Re: [basex-talk] BUG node comparison

2021-05-26 Thread Christian Grün
Hi Jan, > However, I still don't understand, why the -w parameter should do the trick. > I would expect the parsing is done once on the document load and $rootElement > variable is just holding a document's node. Then string value of either > $rootElement and parent::* should be identical for

Re: [basex-talk] BUG node comparison

2021-05-26 Thread ydyxeb
Hi Christian, thank you for the deep explanation. I've just got to use XQuery recently; my knowledge is primarily based on XPath 1.0 acquired 15y ago. I understand the underlying string value comparison of nodes/node sets. Even though performance was not my goal, thank you for the suggestion

Re: [basex-talk] BUG node comparison

2021-05-26 Thread Christian Grün
Hi Jan, Thanks for your feedback to the mailing list. Your query will return the expected paths if you call BaseX as follows: basex.bat -w -i datafile.xml queryfile.xq A short explanation: By default, BaseX ignores whitespaces when parsing XML documents. By specifying -w, whitespace chopping

Re: [basex-talk] BUG node comparison

2021-05-26 Thread Martin Honnen
Am 26.05.2021 um 11:03 schrieb ydy...@post.cz: Dear BaseX, according to github instructions I’m sending a bug report via email: Using BaseX 9.5.1, cmd-line “basex.bat -i datafile.xml queryfile.xq” leads to no result at all. I’m convinced there should be result equivalent to the one of the

[basex-talk] BUG node comparison

2021-05-26 Thread ydyxeb
Dear BaseX, according to github instructions I’m sending a bug report via email: Using BaseX 9.5.1, cmd-line “basex.bat -i datafile.xml queryfile.xq” leads to no result at all. I’m convinced there should be result equivalent to the one of the online xquery tester