499 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
48
views
Should the Result area in BaseX GUI 11.6 render the output from an XQuery Update?
I'm running XQuery Update from script in BaseX GUI 11.6. I've created a database and set WRITEBACK to TRUE, and the file updates as expected--i.e., when I open the input file from my file system, the ...
1
vote
0
answers
31
views
BaseX 11.9: "Key does not exist" error when deleting document using db:delete
I’m using BaseX 11.9, and my database contains about 10 GB of XML documents.
The URIs look like this:
/mono/content/b-97807xxxx/b-97807xxxx_b-97807xxxx/content/latest/97807xxxx_txt_xml.xml
/mono/...
4
votes
2
answers
79
views
Fetching XML document from BaseX database by read-only-user
I'm running a BaseX HTTP-Server where a read-only user is used for database queries.
Now I have the following document getDoc.xml to retrieve content of an XML file in the database:
<query>
<...
leu's user avatar
- 2,123
0
votes
1
answer
39
views
Command for deleting a file from db executes successfully, but nothing happens
I have a database that I created from files on disk. Now I want to delete one file. I issue the command in a XQuery in the GUI editor as follows:
db:delete('ngram', 'ngram/ngram-buckets.xml')
The '...
0
votes
0
answers
26
views
How to restrict file permissions for BaseX DBs on Linux?
I'm running a BaseX DB server on Linux, using a dedicated (unprivileged) system user who owns the BaseX directory subtree as well as the BaseX processes. To create a database, I'm using the ...
1
vote
1
answer
107
views
Why does BaseX XQuery result format change when I wrap the results in a new element?
I'm building up an XQuery piece by piece in the BaseX editor (my first XQuery attempt). At the last step, the result format changed and I don't understand why. I am really having a hard time with ...
0
votes
2
answers
118
views
Is "deep lookup operator" for map implemented in any XQJ processor?
https://qt4cg.org/specifications/xquery-40/xquery-40.html#id-deep-lookup educates about deep lookup operator for maps and arrays. Although BaseX and Saxon XQJ processors implement this Xquery 4.0 (...
0
votes
1
answer
55
views
XQUERY Counting & Unique Values
Working in BaseX, I'm trying to list the number of publishers in an xml database that contains a bookstore and how many books there are for each publisher. So I have the below xquery:
let $publisher:= ...
user avatar
user24847422
0
votes
1
answer
66
views
Convert HTML strings in JSON input to XML nodes
I'm trying to parse a json file with BaseX 10.7 thanks to the json:parse function.
My file presents some values with html characters, for example like this in "text" value:
"order&...
0
votes
1
answer
76
views
Run xquery on updated xml file
Im new to BaseX so I apologize if my question sounds silly.
I was looking for a tool where I can simply run xquery on an xml with ease so I found your tool basex which seems very powerful and probably ...
1
vote
2
answers
107
views
XQuery "except" expression is not producing a desired result
I am using BaseX latest version 11.0 beta.
I am trying to remove Texas cities in the /root/base/r sequence by using /root/remove/r sequence.
The goal is to use XQuery except expression.
Here is my ...
0
votes
1
answer
95
views
Location of CSS files for web applications
I'm new to BaseX and attempting to set up a simple web application. Looking at DBA as an example, I can see that there is a file webapp/dba/static/style.css which is referenced in HTML as <link rel=...
1
vote
1
answer
89
views
How to include HTML5 DOCTYPE in HTTP response
When using BaseX for developing a web application, I'd like to return HTML and include the DOCTYPE that is typical for HTML5, namely <!DOCTYPE html> I've noticed that if I set up a RESTXQ ...
0
votes
1
answer
130
views
namespace prefix not declared basex
I'm trying to use a module that I have imported into Basex database engine.
The module can be found here : https://git.unistra.fr/estrades/heimdall
I have done what they said to import the module in ...
-1
votes
1
answer
93
views
Issue with BaseX XQuery content:unable to add an attribute, and I don't know how to add tags, just know how to add values
PS- Please tell admins to enable more usability to review code indentation, the task was too rough, had to use a link and it forces a format when code formats are several ones, and i had to remove ...