[basex-talk] Question ft:mark()

2018-08-12 Thread Johannes Bauer
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

Re: [basex-talk] Question ft:mark()

2018-08-13 Thread Johannes Bauer
() 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

[basex-talk] web:response-header()

2019-01-09 Thread Johannes Bauer
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")

Re: [basex-talk] read/write database locks

2019-02-21 Thread Johannes Bauer
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

[basex-talk] read/write database locks

2019-02-19 Thread 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 information from multiple databases and creates a new document (with the collected infos) in another database. The

[basex-talk] IllegalStateException from XsltTransformer

2019-03-22 Thread Johannes Bauer
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

[basex-talk] WWW-Authenticate header

2019-01-30 Thread Johannes Bauer
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

[basex-talk] %perm:allow annotation

2019-01-30 Thread Johannes Bauer
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")

Re: [basex-talk] WWW-Authenticate header

2019-02-04 Thread Johannes Bauer
]. 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

[basex-talk] Add & replace documents

2019-04-11 Thread Johannes Bauer
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

Re: [basex-talk] Add & replace documents

2019-04-11 Thread Johannes Bauer
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

Re: [basex-talk] Add & replace documents

2019-04-11 Thread Johannes Bauer
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

Re: [basex-talk] Java binding - variable arguments

2019-04-22 Thread Johannes Bauer
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

[basex-talk] Deactivate JSON escape

2020-02-26 Thread Johannes Bauer
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: {

Re: [basex-talk] Deactivate JSON escape

2020-02-26 Thread Johannes Bauer
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

Re: [basex-talk] Deactivate JSON escape

2020-02-27 Thread Johannes Bauer
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

[basex-talk] 9.3 in Maven Central?

2020-05-07 Thread Johannes Bauer
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

[basex-talk] Corrupt database after update

2020-07-16 Thread Johannes Bauer
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 *

[basex-talk] 9.6 on Docker Hub

2021-09-21 Thread Johannes Bauer
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

[basex-talk] Attribute index

2021-12-01 Thread 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 the attribute nodes with the given values.

Re: [basex-talk] Attribute index

2021-12-01 Thread Johannes Bauer
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

[basex-talk] attribute-range()

2022-03-28 Thread Johannes Bauer
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

Re: [basex-talk] Server Performance

2022-11-30 Thread Johannes Bauer
: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

[basex-talk] Server Performance

2022-11-23 Thread Johannes Bauer
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

[basex-talk] Fulltext search with wildcards

2022-11-23 Thread Johannes Bauer
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

Re: [basex-talk] Supported Saxon Version

2023-04-17 Thread Johannes Bauer
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

[basex-talk] Supported Saxon Version

2023-04-14 Thread Johannes Bauer
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

[basex-talk] Empty namespace declarations

2023-05-23 Thread Johannes Bauer
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() {