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

URL rewriting for nested directories in eXist-db

I want to separate secure pages into a directory. The simplest scenario: home/ |-index.html |-controller.xql |-secure/ |-authentication-test.html +-security.html At the moment, everything works except escaping out of the secure…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
0 answers

How to set attribute namespace "xml:lang" in Java

I can easily add attribute namespace for xmlns:lc But how to set attribute namespace for xml:lang This is how i set xmlns:lc: Document doc = createEmptyDocument(); doc.normalizeDocument(); Element pubElement =…
slavov
  • 630
  • 7
  • 22
0
votes
1 answer

XQuery - Remove empty nodes using eXist-db

I am trying to remove all empty nodes in my XML. Here's what I have: This is some text More text
Stormdamage
  • 389
  • 1
  • 5
  • 16
0
votes
1 answer

Fetch element child elements in XQuery

I need to fetch the element child node using XQuery (i am using eXist-db).
Arun M R Nair
  • 653
  • 7
  • 30
0
votes
1 answer

XQuery transform string into a datetime (exist-db)

I am using XQuery 3.0 for exist-db, and am trying to make the string $value a dateTime object. This is what I've got, but it's not working: let $value := '"2001-10-18T08:47:00"' if ($key = 'start_time') then element { $key } {…
Stormdamage
  • 389
  • 1
  • 5
  • 16
0
votes
1 answer

How to zip binary files during function’s run in eXist-db and xQuery

I have no problems with producing pdfs and offering them as response:stream-binary files for download. However, I have problems if I try to zip produced pdfs and do the same with zip. It offers the zip result for download. The pdf is included but…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
1 answer

Images in XSL-FO in eXist-db

In my former question I have touched a broader problem of paths and their recognizing inside an eXist-db app. At the moment, I am not able to get images in to PDF files. I have tried 2 installations of eXist (2.2 and 3RC) and many possible…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
2 answers

How to share markup snippets amongst functions in eXist-db?

I wonder whether there is a way how to share html code snippets in eXist-db. I have two different (more expected later) functions returning the same big html form for different results. It is annoying to maintain the same code when I change…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
2 answers

eXist-db – paths in XSLT

I need to grab a couple of images and put them into pdf generated via Apache FOP. Outside of eXist, I have no problems. With eXist, the template does not work properly, there is no image in the output—maybe there is a problem with paths. The…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
1 answer

XQuery – passing a list of parameters

I can’t figure out a bit trivial thing! I need to automatize packing of ePubs from TEI XML. I know how to use compression but can’t pass list of arguments programmatically. The problem is I want to take a list made from a set of divs and pass it to…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
4 answers

Optimize slow query xquery

Right now the query takes around 2 minutes , before I made some changes it took 3:48m. The xml documents are taken from a web pages , due to it changes each 5m and gives information about the buses in real time. Could you help me to optimize this…
0
votes
1 answer

exception using templates in existDB

i am trying to pass a parameter to an app using existDB , my problem is while using the templates , it gives me this error : templates:NotFound No template function found for call app:getBusPorMatricula [at line 189, column 85, source:…
0
votes
1 answer

how can i use an xml stored in a web page using existDB?

I want to query an xml that is stored in a web page , the problem is that the xml is updated periodically each 5 minutes , it contains data from different bus in a city , here is the xml : enter link description here I am looking for it in the…
0
votes
2 answers

eXist-db (naming/renaming of collections and files)

I am very new to eXist-db. At the moment, everything goes well, the only one problem is I can’t name or rename collections and files. If I try to create new collection, it is created but is named undefined, no matter what I fill in the window during…
Honza Hejzl
  • 874
  • 8
  • 23
0
votes
2 answers

store an attribute value in a file without lost indentation- xquery 3.0

I wrote a xquery 3.0 function that stores in a file the content of an attribute. The problem is that one only line is formatted in the file; in other words if the tag where I get the attribute value is for example ...