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
2
votes
1 answer

Xquery nested map:merge from xml produces error "expected single value for key, got 0"

In Xquery 3.1 I am trying to transform an XML document into a nested map. My xml document $keyworddoc has this structure : évêque bishop
jbrehr
  • 775
  • 6
  • 19
2
votes
1 answer

processing an XSL-FO file with FOP in eXist-db exits with "permission denied" (only on Linux)

I'll start by stating the context this question is based on: I'm running eXist-4.7.1 in a Tomcat container, and am trying to specify fonts in a configuration file for a PDF transformation using FOP (eXist-4.7.1 ships with FOP version 2.3). The good…
rvdb
  • 399
  • 6
  • 17
2
votes
1 answer

Xquery the function parse-xml() produces an error on &?

As XML content in an HTTP POST request, I receive the following which I process in Xquery 3.1 (eXist-db 5.2):

The is a description with a line break<br/>and another linebreak<br/>and here is an…

jbrehr
  • 775
  • 6
  • 19
2
votes
2 answers

Wrap XML tags (insert around existing xml data) in xquery for eXist

Can anyone please help me with this xquery for eXist database. I have the following xml structure I'm trying to get the following structure
SDS
  • 21
  • 1
2
votes
2 answers

how to query eXist using XPath?

I decided to use eXist as a database for an application that I am writing in Perl and I am experimenting with it. The problem is that I have stored a .xml document with the following structure
user690182
  • 269
  • 1
  • 8
  • 20
2
votes
1 answer

How to find a file by document ID in exist-db?

We were running a backup and consistency check on a database. In the _lost_and_found we find one file and a _contents_xml This file is named for us "cover.xml" It obviously somehow became corrupt as the export XML is like this (no tags, and text…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
2
votes
3 answers

Cannot complie xquery : err:XPST0003 the ':=' notation is no longer accepted in map expression

I'm trying eXist-db replication with ActiveMQ. When I configure for the consumer instance, it needs to execute a XQuery like this to register JMS receiver: xquery version "3.0"; import module namespace…
ktcl
  • 365
  • 6
  • 23
2
votes
1 answer

XQuery syntax to declare a namespace: [XPST0081] No namespace declared for 'text:p'

What is the syntax to declare a namespace for Libre Office, and what specific namespace needs to be declared? thufir@dur:~/fods/flwor$ thufir@dur:~/fods/flwor$ basex text.xq Stopped at /home/thufir/fods/flwor/text.xq, 3/14: [XPST0081] No namespace…
Thufir
  • 8,216
  • 28
  • 125
  • 273
2
votes
2 answers

xquery: How to transform multiple files the same way but do sth special to one file

this is my transformation for making every file in a directory into a carousel (bootstrap), I need, however, for the first file (Folio001.xml), the class "active" to be added to the last line of the code declare function app:XMLtoHTML-forAll…
user9813195
2
votes
1 answer

Configure eXist - LDAP security manager

I am trying to configure eXist to LDAP to authenticate users and I have checked out the documentation at eXist LDAP Security. Turns out the default configuration only supports three settings: security.ldap.connection.url (The connection URL of the…
Thomas
  • 237
  • 1
  • 4
  • 9
2
votes
1 answer

using authenticated session/user for REST API in eXist-db

I have a public website running from an eXist app. I am now developing an interface for logged in users to edit certain documents through HTML forms and AJAX. I've set up a module in eXist to receive AJAX POST requests through the eXist REST…
jbrehr
  • 775
  • 6
  • 19
2
votes
1 answer

Store xquery result as json

I'm using eXist-db 4.7.0 and i want to store the result of a XQuery as JSON. Currently, i've got a XQuery that returns JSON using the serialisation options: xquery version "3.1"; declare namespace output =…
tohuwawohu
  • 13,268
  • 4
  • 42
  • 61
2
votes
1 answer

eXist-DB recommended practice for storing user info (beyond user/pword)?

(eXist 4.4) I am working on creating a user setup page to allow an admin to create site users. I want to store info beyond user name/pword/permissions (for example email, language preference, etc). The question is where to store user info beyond…
jbrehr
  • 775
  • 6
  • 19
2
votes
2 answers

Is there a more efficient XQuery here for deletion?

I have a large eXist-db database in which I am implementing some functions to manage the data inside. The pertinent information here is: There are 2000 customers. Each customer has access to 400 documents. Now each document has 20 languages. So I…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
2
votes
2 answers

eXist XQuery wrap variable in CDATA

I was wondering if it is possible to wrap the contents of a variable (that might contain messy html) into a cdata section. I am using XQuery with eXist and I just can't seem to get it working. I tried In…