Hello,
I have a question regarding the usage of the ft:mark() function.
Database content:
Some text text search text some more text
XQuery:
{
let $search := 'search'
for $match at $pos in //*[text() contains text {$search}]
let $match_parent := $match/..
return
() contains text { $search }])
}
}
Best,
Christian
On Mon, Aug 13, 2018 at 7:09 AM Johannes Bauer
mailto:johannes.ba...@tanner.de>> wrote:
Hello,
I have a question regarding the usage of the ft:mark() function.
Database content:
Some tex
Hello,
I've a question to the response-header() function of the web module.
In my RESTXQ function I try to return a response with HTTP Status 404:
module namespace basex ='basex';
declare %rest:GET %rest:path("/db/{$db}/doc/{$doc}")
%rest:produces("application/xml")
%output:method("xml")
responsive at all times.
Greetings from Lindau,
Max Gärber
Am Di., 19. Feb. 2019 um 14:53 Uhr schrieb Johannes Bauer
:
Hi,
I need some input on how best to implement an updating database operation.
I use BaseX within a Web Application and have RESTXQ service endpoints.
One such service collects
Hi,
I need some input on how best to implement an updating database operation.
I use BaseX within a Web Application and have RESTXQ service endpoints.
One such service collects information from multiple databases and
creates a new document (with the collected infos) in another database.
The
Hello,
we have a BaseX web application with RESTXQ services. I was doing some
load tests to see how it behaves in high load scenarios.
Some tests did throw IllegalStateExceptions somewhere in the Saxon XSLT
code (see stacktrace below).
We use a XSLT stylesheet to transform the XML response
Hello BaseX Team,
I'm trying to implement a RESTXQ service that uses JWT tokens for
authorization and authentication.
For this purpose I use a permission check annotated function that
validates the token and returns a 401 response if the token is invalid
or missing.
declare
Hi again,
I've another question about the %perm:allow annotation. Is it possible
to use multiple instances of this annotation?
My expectation would be that any of the listed roles is allowed to call
the function. For example:
declare %rest:GET
%rest:path("/multi")
%perm:allow("role1")
].
Best,
Christian
[1] http://files.basex.org/releases/latest/
On Wed, Jan 30, 2019 at 9:16 AM Johannes Bauer wrote:
Hello BaseX Team,
I'm trying to implement a RESTXQ service that uses JWT tokens for authorization
and authentication.
For this purpose I use a permission check annotated function
Hi,
this may seem like a dumb question, but how can I add & replace a number
of documents in a database?
I have a directory with some files that I want to import. Some of the
documents may already exist in the database.
If I use the db:replace('db', '', '/path/to/my/files') function it
contains only XML documents):
let $root := '/path/to/your/files/'
for $path in file:list($root, true())
return db:replace('your-db', $path, $root || $path)
Hope this helps,
Christian
On Thu, Apr 11, 2019 at 9:13 AM Johannes Bauer wrote:
Hi,
this may seem like a dumb question
ath/to/your/files/'
for $path in file:list($root, true())
return db:replace('your-db', $path, $root || $path)
Hope this helps,
Christian
On Thu, Apr 11, 2019 at 9:13 AM Johannes Bauer wrote:
Hi,
this may seem like a dumb question, but how can I add & replace a number
of do
Hi Luan,
try this:
declare namespace java = "java:java.lang.String";
let $string := 'Format string: %1$d - %2$s'
let $i := 1
let $j := 'text'
let $args := ($i, $j)
return java:format($string, $args)
Best regards
Johannes
Am 23.04.2019 um 06:29 schrieb Luan Bui:
Hello all,
How can I
Hi,
I'm trying to deactivate the escaping of characters for JSON serialization.
It does not work with this:
let $json := http://www.w3.org/2005/xpath-functions;>
http://some.url/path/to/somewhere
return json:serialize($json, map {'format' : 'basic', 'escape': 'no'})
Output:
{
Am 27.02.2020 um 08:25 schrieb Johannes Bauer:
Am 27.02.2020 um 08:15 schrieb Martin Honnen:
Am 27.02.2020 um 07:49 schrieb Johannes Bauer:
I'm trying to deactivate the escaping of characters for JSON
serialization.
It does not work with this:
let $json := http://www.w3.org/2005/xpath
yes, Martins solution works as expected. But in my opinion there are
used too many conversions
xml -> json string -> map/array -> serialized json
There are no technical problems with the escaped slashes. There just was
a complaint, that the results are not good readable (we are using a json
Hi,
I can't find the BaseX libs of version 9.3.x in the Central Maven Repo,
only in http://files.basex.org/maven.
Is this still planned or will future versions only be available on
basex.org?
Regards
Johannes
Hi,
we have a rather strange and hard to track problem with corrupted databases.
Our setup is:
* Docker container with a Tomcat that hosts BaseX with some custom
RESTXQ services
* BaseX 9.2.4
* Java 14
* Docker runs on a Linux VM
Workflow
* Create database with RESTXQ service call
*
Hi,
I cannot find the latest BaseX release on Docker Hub (only the 9.5 branch).
Is this still planned?
Thank you.
Best Regards
Johannes
Hi,
I want to use the attribute index to access attribute nodes.
The following calls in the DBA web interface are working as expected:
db:attribute('db', ('6LE007573', '6DC007573'), 'book')
db:attribute('db', ('6LE007573', '6DC007573'))
They return the attribute nodes with the given values.
01.12.2021 um 14:17 schrieb Johannes Bauer:
Hi,
I want to use the attribute index to access attribute nodes.
The following calls in the DBA web interface are working as expected:
db:attribute('db', ('6LE007573', '6DC007573'), 'book')
db:attribute('db', ('6LE007573', '6DC007573'))
They return
Hello,
when I use the db:attribute-range function with the attribute name
filter I always get all attributes:
db:attribute-range("db", "1", "1000", "id")
I would expect that it only returns the "id" attributes.
It seems the attribute name does not matter at all. The results are
always the
:06 AM Johannes Bauer
wrote:
Hi all,
we have two Linux server VMs where our BaseX application is running
- Integration
- Production
The used database is about 5 GB including a fulltext index and is
identical on both systems.
The production VM is more potent in all
Hi all,
we have two Linux server VMs where our BaseX application is running
- Integration
- Production
The used database is about 5 GB including a fulltext index and is
identical on both systems.
The production VM is more potent in all aspects (CPU, RAM, Disk IO, ...).
Dispite all of that
Hi, I have another question regarding fulltext search performance with
wildcards. Our fulltext index is rather big with 1.3 GB and about
500.000 entries. When I use the following search where there are no
matches: *ft:search('db', 'CT020/.*/P', map{'wildcards':true()})* it
takes about 10
nes,
The transformation caused an exception, and the resulting error string
could not be properly interpreted. Feel free to try the latest
snapshot [1].
Best,
Christian
[1] https://files.basex.org/releases/latest/
On Fri, Apr 14, 2023 at 9:46 AM Johannes Bauer wrote:
Hi,
what Saxon version is suppor
Hi,
what Saxon version is supported by BaseX10?
I previously used Saxon 10 and updated to version 12. Since then my XSLT
stylesheet does not work anymore.
The same error happens with Saxon 11.
If I execute the stylesheet with standalone Saxon 11 or 12 it is working
fine.
Best regards
Hi,
we've recently updated BaseX from 10.5 to 10.6 and it seems there was
some change in the namespace declaration behavior.
Example:
declare function local:list() as element()+
{
(
1,
2,
3
)
};
declare function local:to-json() as element()
{
28 matches
Mail list logo