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

eXistDB run xQuery in background?

Is there any way to call a xQuery Script stored in eXist which for instance uses transform:transform on a large number of files and let it run in the Background? Right now, I can call my script via the Browser and it will take several minutes -…
karkraeg
  • 445
  • 4
  • 18
0
votes
1 answer

Insert into ExistDB using Java

I'm having issues inserting a new node into exist-db using Java. If I run this Xquery from eXide it will run fine and will insert the new department: update insert < DEP_ROW >< DEPT_NO >1< /DEPT_NO >< DNOMBRE >A< /DNOMBRE >< LOC >A< /LOC >< /DEP_ROW…
0
votes
1 answer

eXist-db getting query string from HTTP request

On my website (driven by eXist-db 4.4) I have a search page: http://localhost:8081/exist/apps/deheresi/search This contains a simple form that submits a search request like: http://localhost:8081/exist/apps/deheresi/search?keyword=someword The…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

eXist-db Lucene / KWIC output - linking to URL for document that produced a $hit

In eXist-DB 4.4 I have managed to deploy a simple Lucern query with KWIC output as a table. I have a collection of tei:xml documents which looks like this sample: [...]
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

XSLT - Saxon malformed URL unknown protocol: xmldb

In eXist 4.4/XQuery 3.1 I perform an XSL 2.0 transformation using transform:transform(). In the transformation I pass a parameter into the XSL transformation for Saxon to use to access information in the database.
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

XPATH 2.0 collection() with "?select=" (in eXist-db / XQuery)

Using XPath 2.0 in eXist 4.4 and XQuery. I have a series of documents in eXist-db directory /db/apps/deheresi/data which I want to retrieve with collection(), but using a wildcard or predicate to filter specifically-named documents. For example, I'd…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

eXist-DB / XQuery StringValue cannot be cast to AnyURIValue (using compression:zip)

In eXist 4.4/XQuery 3.1, I am building a function to compress a number of xml files into a zip using compression:zip. I have one function which collects all the URIs for the documents to be compressed, schedule:get-document-uris-for-zip(xmlid as…
jbrehr
  • 775
  • 6
  • 19
0
votes
0 answers

eXist-db HTML output 'stalling' after a few lines

In eXist-DB 4.4 I'm facing a problem I don't know how to continue diagnosing after exhausting a variety of debugging options for several hours. Source files in the edit at bottom. I know it's a longshot, but I'm hoping someone might have come across…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

XQuery - optimizing inefficient query strategy (in eXist-db)

Environment: eXist-DB 4.4 / Xquery 3.1 I have hundreds of tei:xml documents in which are encoded named entities persName and placeName. The documents are in collection("db/fooapp/data") Each instance of persName and placeName has an attribute…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

calling XQuery from XSLT, building XSLT dynamically in XQuery?

Environment: eXist-db 4.2.1 , XQuery 3.1, XSLT 2.0 I am required to perform an XSLT transformation within eXist-DB using XQuery. At one point the XSLT needs to search across hundreds of documents for matches on a node attribute value. Calling…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

eXist-db / XSLT / Saxon collection() slow as molasses (or errors out with memory limit)

Coming from this question, I managed one entirely unsatisfactory solution for accessing an eXist-DB collection() from an XSLT 2.0 document loaded from within an eXist-db/Xquery transformation function: The XSLT file declares a variable : …
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

Dynamically show previous/next div with XQuery - recursion?

knowing community, I want to achieve the following in short: I have a XML-file with listed pizzas inside of it (it is a kind of test file). My page has a select menu from which a user choses one pizza and the pizza size, which is then both displayed…
dmnk.h
  • 25
  • 5
0
votes
0 answers

eXist - loading XSLT collection() - Exception thrown by URIResolver

Environment: eXist-db 4.2.1 , XQuery 3.1, XSLT 2.0 In eXist-db I am loading an XSLT file which includes a reference to a collection in eXist (in order to perform a search on documents found there, using a key). This reference seems to throw an error…
jbrehr
  • 775
  • 6
  • 19
0
votes
0 answers

eXist-db XQuery - XSLT transformation produces no result despite valid files and no errors

EDIT: solved - incorrect path to the XML document. I'll leave this embarrassing question up in the hope that it may help others. Environment: eXist-db 4.2.1 , XQuery 3.1, XSLT 2.0 I am building a webpage from a number of templates in eXist-DB, the…
jbrehr
  • 775
  • 6
  • 19
0
votes
2 answers

XQUERY: optimizing a query that touches large collections

I have the following XQUERY running in ExistDB (against XML documents that follow the TEI schema): xquery version "3.1"; declare namespace tei="http://www.tei-c.org/ns/1.0"; let $data-collection := "/db/apps/deheresi/resources/documents" let…
jbrehr
  • 775
  • 6
  • 19