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 HTML array input

I am new to XQuery 3.0 and trying to write a project. I am sending a post request containing song[] input element. However, when I try to use request:get-parameter('song[]', ''), it gives me a result as below: Value 1 Value 2 Value 3 Anyone knows…
yenerunver
  • 416
  • 1
  • 5
  • 26
2
votes
1 answer

Improve performance of query with range indexes in eXist-db

Reading the docs http://exist-db.org/exist/apps/doc/indexing.xml I'm finding difficult to understand how and if I can improve the performances of a 'read' query (with 2 parameters: a string and an integer). Do eXist-db have a default structural…
alfredopacino
  • 2,979
  • 9
  • 42
  • 68
2
votes
1 answer

How to modify an in-memory document in eXist-db?

I would like to know how to modify an in-memory copy of original document stored in the DB. I am very happy with the update extension, which allows me to search/replace through text nodes and change them permanently. However, this behavior is not…
Honza Hejzl
  • 874
  • 8
  • 23
2
votes
1 answer

How to stop eXist-db safely on a distant linux server with its own IP?

During fast prototyping I don’t care about consistency and safety of the database (I use only test files). However, I would like to know the best practices for later use. At the moment, I can’t figure out how to stop eXist with the bin/shutdown.sh…
Honza Hejzl
  • 874
  • 8
  • 23
2
votes
1 answer

How to get the difference between two versions in exist-db

I am trying to use exist-db for versioning purpose. Is there any way to list the differences? I enabled versioning in exist-db and uploaded an json file and made some changes to the file. Now there are two versions of files available under versions.…
nessy hamsa
  • 185
  • 1
  • 12
2
votes
2 answers

Parsing xml file with xpath and xquery using eXist-db

I need to fetch the element from the following XML using XQuery (I'm using eXist-db). <?xml-stylesheet href="shakes.xsl" type="text/xsl"?> <!--!DOCTYPE PLAY PUBLIC "-//PLAY//EN" "play.dtd"--> <ClinicalDocument xmlns="urn:hl7-org:v3"> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 08 '16 at 05:23">asked Feb 08 '16 at 05:23</time> <a href="../../users/3868502/arun-m-r-nair" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3868502.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Arun M R Nair" /> </a> <div class="s-user-card--info"> <a href="../../users/3868502/arun-m-r-nair" class="s-user-card--link">Arun M R Nair</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">653</li> <li class="s-award-bling s-award-bling__silver" title="7 silver badges">7</li> <li class="s-award-bling s-award-bling__bronze" title="30 bronze badges">30</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-33271787"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/33271787/calling-an-xquery-function-from-xforms" class="question-hyperlink">Calling an XQuery function from XForms</a></h3> <div class="excerpt">I'd like to call an XQuery function that I have written from XForms. I know how to execute a request to an XQuery document: <xf:submission resource="/exist/rest/apps/Main/modules/import.xql"/> But what if I'd like to call a specific function in the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/xforms" class="post-tag grid--cell" title="show questions tagged 'xforms'" rel="tag">xforms</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 22 '15 at 01:05">asked Oct 22 '15 at 01:05</time> <a href="../../users/5141750/zepperik" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5141750.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="zepperik" /> </a> <div class="s-user-card--info"> <a href="../../users/5141750/zepperik" class="s-user-card--link">zepperik</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">77</li> <li class="s-award-bling s-award-bling__bronze" title="9 bronze badges">9</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30313656"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30313656/how-do-i-pass-xquery-through-exist-db-s-rest-api" class="question-hyperlink">How do I pass xquery through eXist-db's REST api?</a></h3> <div class="excerpt">I understand how to use Xpath http://localhost:8080/exist/rest/db/movies?_query=//movie[title=%22Spider-Man%22]/node() But how to pass an xquery query? I keep reading everywhere that the REST api is for both xpath and xquery but I can't get my…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/rest" class="post-tag grid--cell" title="show questions tagged 'rest'" rel="tag">rest</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 18 '15 at 22:16">asked May 18 '15 at 22:16</time> <a href="../../users/1618292/alex9311" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1618292.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="alex9311" /> </a> <div class="s-user-card--info"> <a href="../../users/1618292/alex9311" class="s-user-card--link">alex9311</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,230</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="18 silver badge">18</li> <li class="s-award-bling s-award-bling__bronze" title="42 bronze badge">42</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-29872850"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/29872850/exist-db-query-not-using-index" class="question-hyperlink">eXist-db query not using index</a></h3> <div class="excerpt">I'm presently using eXist-db 2.2 on Windows 7, with 1.3gb of RAM allocated for Java. I've been trying to optimize an XQuery: xquery version "3.0"; let $phrase := "flight" let $nbsp := " " let $containing :=…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 26 '15 at 02:00">asked Apr 26 '15 at 02:00</time> <a href="../../users/4797091/soler" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4797091.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="soler" /> </a> <div class="s-user-card--info"> <a href="../../users/4797091/soler" class="s-user-card--link">soler</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">112</li> <li class="s-award-bling s-award-bling__bronze" title="9 bronze badges">9</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2858224"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2858224/how-to-pass-an-xpath-into-an-xquery-function-declaration" class="question-hyperlink">How to pass an xpath into an xquery function declaration</a></h3> <div class="excerpt">I use Apache Tomcat's Exist DB as an XML database and am trying to construct a sequence by passing the following xpath, defined in FLWOR's 'let' clause: $xpath := $root/second/third into a locally defined function declaration, like so: declare…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 18 '10 at 14:35">asked May 18 '10 at 14:35</time> <a href="../../users/264497/topmulch" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/264497.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="topmulch" /> </a> <div class="s-user-card--info"> <a href="../../users/264497/topmulch" class="s-user-card--link">topmulch</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">240</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="15 bronze badges">15</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-27582943"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/27582943/insert-into-database-xquery-and-exist-db" class="question-hyperlink">insert into database - xquery and exist db</a></h3> <div class="excerpt">I just started using eXist and tried to insert data into an xml file. So far, I did this in .xql file: declare function app:save($node as node(), $model as map(*), $name as xs :string?, $author as xs :string?, $isbn as xs :integer?, $date as xs…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 20 '14 at 18:10">asked Dec 20 '14 at 18:10</time> <a href="../../users/3450161/deckardc" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3450161.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="deckardc" /> </a> <div class="s-user-card--info"> <a href="../../users/3450161/deckardc" class="s-user-card--link">deckardc</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">29</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="10 bronze badges">10</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-27569872"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/27569872/exist-db-restxq-trigger-services-deleted-but-still-active" class="question-hyperlink">exist-db restxq trigger : Services deleted but still active</a></h3> <div class="excerpt">I have issues with the RESTXQ implementation in exist-db. I think it might be the RestXQTrigger which is not working correctly. The problem: I deleted (via the Dashboard) a collection including RESTXQ services inside several .xqm files. However, the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/rest" class="post-tag grid--cell" title="show questions tagged 'rest'" rel="tag">rest</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> <a href="../../questions/tagged/xquery-3.0" class="post-tag grid--cell" title="show questions tagged 'xquery-3.0'" rel="tag">xquery-3.0</a> <a href="../../questions/tagged/restxq" class="post-tag grid--cell" title="show questions tagged 'restxq'" rel="tag">restxq</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 19 '14 at 16:16">asked Dec 19 '14 at 16:16</time> <a href="../../users/1709539/eric-s" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1709539.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Eric S" /> </a> <div class="s-user-card--info"> <a href="../../users/1709539/eric-s" class="s-user-card--link">Eric S</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">452</li> <li class="s-award-bling s-award-bling__silver" title="4 silver badges">4</li> <li class="s-award-bling s-award-bling__bronze" title="10 bronze badges">10</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-27514804"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/27514804/call-web-service-from-xquery" class="question-hyperlink">Call Web Service from xquery</a></h3> <div class="excerpt">is it possible to call a Web Service from within an XQuery expression like you can do with User defined Table Functions in SQL? The only thing i found for this is an extension for XQuery1.0 called a Web Services Facility. Is there a more…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/web-services" class="post-tag grid--cell" title="show questions tagged 'web-services'" rel="tag">web-services</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 16 '14 at 22:05">asked Dec 16 '14 at 22:05</time> <a href="../../users/4259125/sakal" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4259125.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="sakal" /> </a> <div class="s-user-card--info"> <a href="../../users/4259125/sakal" class="s-user-card--link">sakal</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">275</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badges">5</li> <li class="s-award-bling s-award-bling__bronze" title="17 bronze badges">17</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-24991142"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/24991142/xquery-and-empty-html-tags" class="question-hyperlink">XQuery and empty HTML tags</a></h3> <div class="excerpt">I'm learning XQuery and tried a moderate complex example. The query itself works, but I'm failing to add the HTML the way I want. The following example works (in eXist-db XQuery engine) for $current_value in…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 28 '14 at 08:25">asked Jul 28 '14 at 08:25</time> <a href="../../users/2710714/cis" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2710714.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="cis" /> </a> <div class="s-user-card--info"> <a href="../../users/2710714/cis" class="s-user-card--link">cis</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,259</li> <li class="s-award-bling s-award-bling__silver" title="15 silver badges">15</li> <li class="s-award-bling s-award-bling__bronze" title="48 bronze badges">48</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-24510063"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/24510063/xquery-chaining-xslt-transformations" class="question-hyperlink">XQuery chaining XSLT transformations</a></h3> <div class="excerpt">I am trying to transform an XML document through a series of XSL stylesheets transformations in eXist. I want to up-convert it from pubs2 to pubs9. (I need to chain the result document of one transformation into the next transformation) I have tried…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/exist-db" class="post-tag grid--cell" title="show questions tagged 'exist-db'" rel="tag">exist-db</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 01 '14 at 12:16">asked Jul 01 '14 at 12:16</time> <a href="../../users/3793808/user3793808" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3793808.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user3793808" /> </a> <div class="s-user-card--info"> <a href="../../users/3793808/user3793808" class="s-user-card--link">user3793808</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">23</li> <li class="s-award-bling s-award-bling__bronze" title="2 bronze badges">2</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=5" rel="prev" title="Go to page 5">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=35" rel="" title="Go to page 35">35</a> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=36" rel="" title="Go to page 36">36</a> <a class="s-pagination--item" href="../../questions/tagged/exist-db_page=7" rel="next" title="Go to page 7"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>