exist-db

Does eXist-db compression:zip function add XML declaration

ⅰ亾dé卋堺 提交于 2019-12-20 03:47:05
问题 I have an XQuery function to convert a group of XML files to HTML and Zip them. It runs a trasform on each file to create <entry> elements. Starting with that function: declare function xport:make-sources( $path as xs:string) as item()* { for $article in collection(xmldb:encode-uri($path)) let $docnum := $article/article/div[@class = 'content']/@doc/string() return <entry name="{concat($docnum,'.html')}" type='text' method='store'> {transform:transform($article, doc("/db/EIDO/data/edit/xsl

HTML form submit giving 400 bad request

拜拜、爱过 提交于 2019-12-14 03:57:41
问题 I'm submitting a HTML form to REST(eXist db) web service using POST method.A normal submission is giving 400 bad request Here is my HTML code <html> <script type="text/javascript"> /* function createXMLHttpRequest() { if( typeof XMLHttpRequest == "undefined" ) XMLHttpRequest = function() { try { return new ActiveXObject("Msxml2.XMLHTTP.6.0") } catch(e) {} try { return new ActiveXObject("Msxml2.XMLHTTP.3.0") } catch(e) {} try { return new ActiveXObject("Msxml2.XMLHTTP") } catch(e) {} try {

Massive differences in speed with virtually identical XQuery (exist-db) interogations

感情迁移 提交于 2019-12-13 00:38:13
问题 I've been porting an SQL database over to exist over the last few weeks, and while I so far managed to get over all previous hindrances, I've now run into something for which neither the official documentation, searching online, nor common sense was able to help. In short, I have a pretty big collection (about 90k entries, spread over 20 files), with most individual entries looking something like this (this is a massive simplification so I can get the point across): <document> <document_id

Commercial FO processors in eXist-db

青春壹個敷衍的年華 提交于 2019-12-12 02:49:29
问题 For my project, I would like to test XEP and AH Formatter. I like FOP but in some cases it really fails (floats, crop marks, pdf/x standards, etc.) and I need to know some alternatives. XEP With XEP I am very close. I have copied all jars into $EXIST_HOME/lib/user and changed the adapter in $EXIST_HOME/conf.xml . Besides, I have uploaded the xep.xml config file into the database. Testing XQuery: xquery version "3.0"; declare namespace fo = "http://46.28.111.241:8081/exist/db/apps/bunny

Images in XSL-FO in eXist-db

怎甘沉沦 提交于 2019-12-12 02:38:12
问题 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 scenarios. Of course, I have tested those pictures are reachable through the browser. In the source file, I have tried: 1. <graphic url="img/tealover.jpg"/> 2. <graphic url="/db/apps/karolinum-apps/data/mono/2015080/img/tealover.jpg"/> 3. <graphic url="http

Problems attempting to embed exist-db

孤街浪徒 提交于 2019-12-11 16:06:00
问题 I am trying to use exist-db in my application, so to test embedding it, i followed the guide specified on the eXist-db webppage http://www.exist-db.org/exist/apps/doc/deployment.xml. For the code in question itself: import org.xmldb.api.DatabaseManager; import org.xmldb.api.base.Collection; import org.xmldb.api.base.Database; import org.exist.xmldb.DatabaseInstanceManager; public class TestDB { public static void main(String args[]) throws Exception { // initialize driver Class cl = Class

How to authenticate exist-db users in RESTXQ

三世轮回 提交于 2019-12-11 14:35:43
问题 (complete rephrase - since no answer): I am developing an exist-db application with user authentication and RESTXQ. My users log in via the login:set-user function from the login module. Here a snippet from the controller: import module namespace login="http://exist-db.org/xquery/login" at "resource:org/exist/xquery/modules/persistentlogin/login.xql"; declare variable $local:login_domain := "org.exist-db.superApp"; declare variable $local:user := $local:login_domain || '.user'; let $logout :=

eXist-db serialize is expand-xincludes=no ignored?

陌路散爱 提交于 2019-12-11 11:36:24
问题 In eXist-db 4.4, Xquery 3.1, I am compressing a number of XML files to a .zip in a directory. The compression process uses serialize() . The XML files have some large xincludes which according to the documentation are automatically processed in serializing. I have attempted to 'turn off' the xinclude serialization in two places in the code ( prologue declare and map ), but the serializer is still outputting all xincludes: declare option exist:serialize "expand-xincludes=no"; declare function

How to add CSV data to already available XML using XQuery file used in eXist Database

一世执手 提交于 2019-12-11 08:38:49
问题 I am working on eXist database, I am have a new Idea that I have to implement XML file using XQuery . I want to convert CSV file to XML which is already in the database collection. And this XML file contains only necessary tags and information. And this converted data will be saved into XML in eXist Database. XML like this: its name is 'createXML.xml' <?xml version="1.0" encoding="UTF-8"?> <records> // All the Records from CSV file want to put here..... between Records tags </records> now the

How do I create bar-charts in SVG from my XML using XQuery and/or XSLT in eXist-db

元气小坏坏 提交于 2019-12-11 01:58:49
问题 I can't find any existing solutions because I do not think that anybody else has used eXist-db to do this yet. Does anybody know how to draw bar charts using SVG from eXist-db? Firstly date: DTD: <?xml version="1.0" encoding="utf-8"?> <!ELEMENT akweny (akwen+)> <!ELEMENT akwen (nazwa, typ, powierzchnia, akweny?)> <!ELEMENT nazwa (#PCDATA)> <!ELEMENT typ (#PCDATA)> <!ELEMENT powierzchnia (#PCDATA)> And XML for example: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE akweny SYSTEM "akweny.dtd"