Questions tagged [exist-db]

eXist-db is an open-source database management system built using XML technology. It stores XML data according to the XML data model and features efficient, index-based XQuery processing.

EXist-db is a native XML Database. Resources are stored in a directory-like structure called collections. There are different ways to access the data: XML-RPC, REST, WebDAV, SOAP, XUpdate, XMLDB and so on.

EXist-db is released under the GNU LGPL.

536 questions
0
votes
1 answer

Xquery recursive query does not set variable

[edited with fuller example of success vs. error] In Xquery 3 (eXist 4.7) I am working with a public API (Zotero) that provides a bibliographic list using this GET request : https://api.zotero.org/groups/2304628/items?format=atom&content=tei&v=3 The…
jbrehr
  • 775
  • 6
  • 19
0
votes
2 answers

eXist-db - adding prologue to XML file in automatic file creation?

In eXist-db (4.7) I have a long TEI-XML file from which I am creating thousands of unique TEI-XML files. I am using a function like this: let $list := doc(concat($globalvar:URIdata,"list_collections.xml")) let $makefile := for $bib in…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

eXistDB - remove user ACE by index....how to get index?

In eXist 4.4 I am setting a user's rwx permission in XQuery using sm:add-user-ace(). I do not see a corollary 'remove-user-ace', so I assume I have to use sm:remove-ace($path as xs:anyURI, $index as xs:int). However this requires knowing the $index.…
jbrehr
  • 775
  • 6
  • 19
0
votes
3 answers

My xpath query fails to use the range index. What am I doing wrong?

I'm finding a related element through it's id, stored in a reference element's href, like so: let $item := ($doc//(map|question|theory|reading|glossgroup))[@id = $ref/@href] Reading ExistDB's documentation, I'm pretty sure a simple
Rein Baarsma
  • 1,466
  • 13
  • 22
0
votes
1 answer

How to maintain custom ACL in backup/restore of eXist-db

I am upgrading a database from eXist 2.2 to 4.5. I used the Java Admin Client to create a backup of the entire eXist 2.2 database. I have a fresh install of eXist 4.5 running. I moved the ZIP over and did a restore. When I navigate the databases…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
0
votes
1 answer

eXistDB HTML Templating files outside of current app

I’ve an eXistDB app set up with templating. Is it possible to make HTML Files outside of the app (in a different collection) use the same templating mechanisms to get the page header and styles and so on from my app? Thank you!
karkraeg
  • 445
  • 4
  • 18
0
votes
1 answer

XQuery Keyword Search Issue

I'm learning XQuery keyword search and display the results in website. And I found that have useful tutorial website step by step to develop a website. However, I got an error (Invalid qname text:match-count) after execute the code. Is it missing…
user11343272
  • 77
  • 1
  • 1
  • 9
0
votes
0 answers

How to delete xmlns="" tag from XQuery result?

I'm making an XQuery on a java code that generates a file extracting data from two different xml files from eXistDB, but when I generate the output xml it adds xmlns="" tag on every child element. This is the output xml that i'm getting:
Marc
  • 25
  • 9
0
votes
1 answer

Error using util:get-fragment-between in eXist-Db

I'm trying convert a xml document, organized in divisions and paragraph, with page break and line breaks as milestones into a xml document that wraps pages and lines in page and line elements. To do this I'm trying to use util:get-fragment-between.…
Jeff
  • 3,943
  • 8
  • 45
  • 68
0
votes
1 answer

Conditional combined indexes:When there are several decimal types of indexes, the desired results can not be queried

Use version:4.5.0 db/system/config/db/test/collection.xconf The code is as follows:
B.hl
  • 15
  • 3
0
votes
0 answers

Execution of xquery function in exist-db after pressing a button

Starting from the following HTML code, which generates 2 select boxes and a submit button I could not succeed to launch the app:series_por_canal AFTER pressing the search button. I have replaced the original xquery function by a simple "hello"…
Federico
  • 47
  • 4
0
votes
2 answers

eXist-db REST GET request for dynamic pdf - cannot read source file

(eXist 4.4, XQuery 3.1) I offer the user the ability to download PDF documents which are dynamically created at the moment of request. The request has two parameters: the document name (ie doc=MS609-0002.pdf) and the document language version (ie…
jbrehr
  • 775
  • 6
  • 19
0
votes
3 answers

using file:serialize to write files with eXist db

I'm trying to use the file:serialize function to write some content to a file using eXist-db. Here's the code I'm using, it's just a login and the call of the serialize function. someFunction just returns a node with some content. let $null :=…
rx1234
  • 1
0
votes
0 answers

XQuery subsequence treats list of documents as 'loop'

On my recently launched site I present documents, each of which has a distinct number between MS609-0001...MS609-3826. When I present a document, such as MS609-0003, a side bar should show the previous/next 5 documents in order, assuming a start…
jbrehr
  • 775
  • 6
  • 19
0
votes
2 answers

XQuery cardinality error on outputting results to text file

Using XQuery 3.1 (under eXistDB 4.4), I have a function which returns a serialized output of 710 delimited rows like…
jbrehr
  • 775
  • 6
  • 19