Re: [basex-talk] Dr. Mike Kay's proposals for XPath and XQuery 4.0

2020-11-16 Thread Marco Lettere
Couple of things directly out of my mind even if more library than core language oriented are YAML support and the new proposal for convenient HTTP client functions. I remember a proposal by you, Christian, together with Adam maybe? M. On 16/11/20 15:30, Loren Cahlander wrote: Please make

Re: [basex-talk] BaseX GUI and remote editing

2020-11-13 Thread Marco Lettere
Marco Lettere <mailto:m.lett...@gmail.com>> wrote: Hello all! We are in the slightly uncomfortable condition to do some remote coding. Means write XQ code that has to be kept on a server different from our PCs. We don't want to slow down our very agile development

[basex-talk] BaseX GUI and remote editing

2020-11-13 Thread Marco Lettere
Hello all! We are in the slightly uncomfortable condition to do some remote coding. Means write XQ code that has to be kept on a server different from our PCs. We don't want to slow down our very agile development workflow by passing everytime from a Git repo ... Has anyone here some

Re: [basex-talk] Paging results of an XQuery-Search

2020-09-25 Thread Marco Lettere
Xquery native windowing instructions despite a slightly complex syntax are extremely powerfull and you can rely on the optimizer being able to optimize where ever possible. M. https://www.w3.org/TR/xquery-30/#id-windows On 25/09/20 15:55, Omar Siam wrote: Perhaps you want to use

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-21 Thread Marco Lettere
On 20/09/20 22:42, Andreas Mixich wrote: Currently I get the error:   [XPTY0004] com.vladsch.flexmark.parser.Parser$Builder:build: Multiple functions with 1. Hi Andreas, this is because of Java distinguishes method signatures not only by number of parameters but also by type. You have to

Re: [basex-talk] missing web.xml from docker image

2020-09-15 Thread Marco Lettere
On 15/09/20 10:35, Andy Bunce wrote: ... as BaseX seems to run surprisingly well on ARM64 machines such as the Odroid N2 and Raspberry Pi 4. Absolutely! I have been running a demo/development site of a customer's web application (fully developed in BaseX) on my home Raspberry PI 3 for

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
@Marco: Do you know which conversions are provided by FasterXML: arbitrary XML → YAML, arbitrary YAML → XML, or both? If the underlying conversion rules are promising, we could include them a 'fasterxml' format in BaseX (similar to the 'jsonml' format). As far as I can understand from the

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
of existing (ideally bidirectional) mappings that would be appropriate for general use? Cheers Christian Marco Lettere mailto:m.lett...@gmail.com>> schrieb am Mi., 12. Aug. 2020, 12:04: Dear BaseX team, just out of curiosity, could you imagine what kind of effort it

[basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
Dear BaseX team, just out of curiosity, could you imagine what kind of effort it would be to provide YAML as another serialization method for BaseX in addition to XML, HTML, JSON, CSV? The datamodel seems pretty close to the JSON one so maybe a very similar transformation to XML could be

Re: [basex-talk] Transaction Support

2020-07-17 Thread Marco Lettere
ansactions Or is it possible to implement real transactions (START TRANS, do something, COMMIT trans) with that PUL or something? Reto *From:*BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] *On Behalf Of *Marco Lettere *Sent:* 16 July 2020 17:46 *To:* basex-talk@mailman.uni-k

Re: [basex-talk] Transaction Support

2020-07-16 Thread Marco Lettere
Hi Reto, AFAIK Basex is transactional in the sense that whenever you start a sequence of commands or an XQuery script, all the "updating operations" that modify the database are always stored in a PUL (a list of potential updates). Only when the script terminates all the operations on the DB

Re: [basex-talk] BaseX 9.4: The Summer Edition

2020-07-14 Thread Marco Lettere
Even in this strange 2020 Summertime can now definitely begin with the Summer edition which looks awesome!!! Thanks to all of you! Marco. Il mar 14 lug 2020, 13:40 Christian Grün ha scritto: > We are glad to give you Version 9.4 of BaseX, our XML framework, > database system and XQuery 3.1

Re: [basex-talk] Websites that use BaseX

2020-06-24 Thread Marco Lettere
Hi Jonathan, we as a company have used Nubisware for several "front-facing" applications. They are not exactly ecommerce but full blown enterprise applications with complex UIs and/or based on APIs. * A rating service (with dedicated UI) based on contract ontologies; * a system for remote

[basex-talk] distinct-values and type coercion

2020-05-19 Thread Marco Lettere
Dear all, after installing Basex 9.3.3 one application of ours started failing in a particular functionality. We tracked it down to the following example code: let $in :=       Object/20383920-5bb1-4397-8b51-b752863acddf       let $s as xs:string* :=

Re: [basex-talk] BaseX 9.3.3: Query optimizations, Bug Fixes

2020-05-15 Thread Marco Lettere
Once more: THANKS! M. On 15/05/20 11:35, Christian Grün wrote: Dear users and supporters of BaseX, We have just released a new maintenance version of our XML framework, database and XQuery processor: http://basex.org Apart from minor bug fixes, and in preparation to BaseX 9.4, we have

Re: [basex-talk] Performance loss between version 9.2.4 and 9.3.2 when executing specific xQuery

2020-05-08 Thread Marco Lettere
And even more curiously, we are also working in this very same time on handling fetches from OAI-PMH sources! :-D M. On 08/05/20 13:37, Imsieke, Gerrit, le-tex wrote: Just saying that I find it sooo interesting to learn at which places and for which purposes BaseX is being employed. Have a

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-23 Thread Marco Lettere
oblem is here. I can access the full (unparsed) body, though (I can use that). Daniel -Ursprüngliche Nachricht- Von: Marco Lettere Gesendet: Mittwoch, 22. April 2020 14:24 An: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] A question about RESTXQ rest:form-param() Hi Dan

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Marco Lettere
s with GET but with POST I get an empty-sequence, I am not sure what the problem is here. I can access the full (unparsed) body, though (I can use that). Daniel -Ursprüngliche Nachricht- Von: Marco Lettere Gesendet: Mittwoch, 22. April 2020 14:24 An: basex-talk@mailman.uni-konstanz.de B

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Marco Lettere
Hi Daniel, another way is to use request:* functions [1] available for programmatic inspection of the request. Cheers, M. [1] https://docs.basex.org/wiki/Request_Module On 22/04/20 12:18, Zimmel, Daniel wrote: Hi Daniel, RTFM. Simply pass the body in %rest:POST("{$body}"). Sorry for

Re: [basex-talk] New Slack workspace for XML discussions: xmlcom.slack.com

2020-04-17 Thread Marco Lettere
Yeah! I'm in it! M. On 17/04/20 15:35, Christian Grün wrote: Dear XML aficionados, For interactive discussions on XML, XQuery and BaseX, feel free to join the new XML workspace on Slack: https://join.slack.com/t/xmlcom/shared_invite/zt-dkmwrygj-kdviJUKoXb7_ERdCoJSAfQ Thanks to Adam Retter

Re: [basex-talk] BaseX 9.3.2: Performance Tweaks, Bug Fixes

2020-03-10 Thread Marco Lettere
Currently we are not very used to good news ... So, thanks Christian for this one who definitely sounds like that! M. On 10/03/20 14:18, Christian Grün wrote: Dear all, We are glad to provide you with a new BaseX 9.3.2 maintenance release: http://basex.org In preparation to version

Re: [basex-talk] BaseX 9.3: The Winter Edition

2019-11-29 Thread Marco Lettere
Thank you all so much! The list of improvements is really impressive! Great job as usual. M. On 29/11/19 17:14, Christian Grün wrote: Hello to our loyal readers of our list, We are glad to announce version 9.3 of BaseX, our XML framework, database system and XQuery 3.1 processor:

Re: [basex-talk] file:list and symbolic links

2019-11-09 Thread Marco Lettere
children($dir) > return if (file:is-dir($child)) then ( > file:traverse($child) > ) else ( > $child > ) > }; > > Hope this helps, > Christian > > > On Wed, Nov 6, 2019 at 11:41 AM Marco Lettere wrote: > > > > De

[basex-talk] file:list and symbolic links

2019-11-06 Thread Marco Lettere
Dear all, what is the rationale behind the fact that file:list has been rewritten to not following symbolic links [1]? We had some jobs related code that relied on symlinks and stopped working after moving to new version of BaseX. Is there any work around? By using children or the new

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-09-26 Thread Marco Lettere
>> Hi Marco, >> >> I think that the bug fix (which is still on my todo list) will be made >> available with BaseX 9.3; so, for now, it’s probably better to choose >> the workaround. >> >> Cheers, >> Christian &g

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-09-26 Thread Marco Lettere
better to choose the workaround. Cheers, Christian On Sat, Aug 3, 2019 at 10:02 AM Marco Lettere wrote: Hi Christian, I'm currently preparing a deployment based on Docker for one of our customers. Here in Italy it's holiday time in August so I have a bit of time and I can coope with your

[basex-talk] Suggestion for concurrency of RestXQ

2019-09-17 Thread Marco Lettere
Dear all, on one of our applications based on RestXQ services running on 9.0.2 we experience a strange behaviour related to concurrency. It is a stateless service running on a server with http-local set to true. So no database access. We removed all accesses to sessions and the code doesn't

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-08-03 Thread Marco Lettere
bug issue. We’ll have a look at this soon. – Christian [1] https://github.com/BaseXdb/basex/issues/1711 On Sat, Jul 27, 2019 at 4:02 PM Marco Lettere wrote: Thanks Christian, I haven't been able to reproduce the bug with your SSCE. Nevertheless I spent some time in tracing the operations

Re: [basex-talk] Forcing download of JSON doc

2019-08-01 Thread Marco Lettere
oaded file are an escaped string rather than a serialized JSON object: e.g., "{\n  \"key\": \"value\"\n}" Is there a way to produce a properly serialized JSON file for download? -- Tim A. Thompson Discovery Metadata Librarian Yale University Library On Thu, Aug 1, 2019

Re: [basex-talk] Forcing download of JSON doc

2019-08-01 Thread Marco Lettere
Hi Tim, downloading from a browser when posting a form is usually a bit tricky. For me it always ended up with the creation of an artificial element with an href crafted from the form parameters and with an attribute download="filename.ext" added to it. Anyway you could try with returning a

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-07-27 Thread Marco Lettere
users.xml file in the data directory. [1] https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg11459.html [2] https://github.com/BaseXdb/basex/issues/1662 On Fri, Jul 26, 2019 at 4:29 PM Marco Lettere wrote: Hi all, starting with 9.2.1 we experience a strange error with a

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-07-26 Thread Marco Lettere
JSESSIONID=2g5ep7mzq0ah1ktre4b398hfc - Host: localhost:8984 _ RESPONSE HTTP/1.1 200 [2] https://github.com/BaseXdb/basex/blob/f7a5492c46d55e1c1f58df24b8ed9567c176e8c1/basex-core/src/main/java/org/basex/build/Builder.java On 26/07/19 16:29, Marco Lettere wrote: Hi all, starting wit

[basex-talk] Database corrupted on updating with RestXQ

2019-07-26 Thread Marco Lettere
Hi all, starting with 9.2.1 we experience a strange error with a RESTXQ API  of ours that we have been using for years. The typical pattern is lookup a document update it and store it back. We have done this milions of time and also all the tests work neatly. But when using it from inside

Re: [basex-talk] Quickest way to parse a DomSource

2019-07-22 Thread Marco Lettere
et $source := bpmndom:getDomSource($document) (:DOMSource API to get underlying Document Node :) let $doc := source:getNode($source) (:Now this Xpath expression works :) return $doc//*:userTask Cheers, Marco. On 22/07/19 12:53, Martin Honnen wrote: Am 22.07.2019 um 11:32 schrieb Marco Lettere: I have

[basex-talk] Quickest way to parse a DomSource

2019-07-22 Thread Marco Lettere
Hi all, I'm currently working on the usage of BaseX Xquery scripts inside a BPMN engine. I have to access portions of the XML representation of the BPMN file by binding the engine's API. The closest that I can get to a standard XML representation is currently a

Re: [basex-talk] PATCH verb in RestXQ implementation

2019-07-17 Thread Marco Lettere
Hi Daniel, I'm pretty sure that PATCH is supported in recent versions of BaseX. Even if I don't remember exactly when it started since it's not traced in the Changelog of the documentation page for RestXQ. From the docs at [1]: The HTTP method annotations are equivalent to allHTTP request

[basex-talk] [ANN.] JSR223 wrapper

2019-07-05 Thread Marco Lettere
jar from [2]. Of course every 2 cents of feedback will be warmly appreciated. Enjoy, Marco. [1] https://github.com/nubisware/basexjsr223 [2] https://github.com/nubisware/basexjsr223/releases/download/v0.1/BaseXJSR223.jar On 11/06/19 13:00, Marco Lettere wrote: Hi all, is anyone on the list

[basex-talk] JS223 wrapper

2019-06-11 Thread Marco Lettere
Hi all, is anyone on the list aware of a JS223 compliant wrapper for BaseX in order to include XQuery scripting "seamlessly" into scriptable applications? Thanks. Marco.

Re: [basex-talk] Update of arbitrarily selected elements?

2019-06-03 Thread Marco Lettere
Yes. In addition, if you don't have IDs in place and elements are all in the same container, you could maybe use their position. Or a combination of an XPAT selector for the contianer root and then a sequence of positions for the elements to be updated. M. On 03/06/19 09:46, Michael Seiferle

Re: [basex-talk] Optimizer and JSON/XML response

2019-05-17 Thread Marco Lettere
"_"+str(q)))     outf.write(qout) [B] template query stored in template.txt declare   %rest:path("test/{path}")   %rest:GET function _:f{path}() {{    "{path}" }}; Cheers, Christian [1] http://docs.basex.org/wiki/Options#PARSERESTXQ On Thu, May 16, 2019 at

Re: [basex-talk] Optimizer and JSON/XML response

2019-05-16 Thread Marco Lettere
of the mail it looks like an issue in the RESTXQ parser/compiler rather than an optimizer issue... M. On 16/05/19 13:27, Marco Lettere wrote: Hello everyone, we came accross an inconsistency which we are not able to find an explanation for and giving up after having spent on it the whole morning

[basex-talk] Optimizer and JSON/XML response

2019-05-16 Thread Marco Lettere
Hello everyone, we came accross an inconsistency which we are not able to find an explanation for and giving up after having spent on it the whole morning... From a restxq we call an external REST service (InfluxDB) like shown in [1]. This usually works as expected returning a response

Re: [basex-talk] BaseX 9.2: The Spring Edition

2019-04-17 Thread Marco Lettere
Yes, great question. We were asking this ourselves too. M. On 17/04/19 11:33, Andy Bunce wrote: I am not clear what is meant by: > - no need to import basex-api modules anymore! Does this just mean all modules listed at http://docs.basex.org/wiki/Module_Library are statically bound? /Andy

Re: [basex-talk] BaseX 9.2: The Spring Edition

2019-04-17 Thread Marco Lettere
Thanks! Great work as usual! M. On 16/04/19 16:10, Christian Grün wrote: Dear all, We are more than pleased to announce version 9.2 of BaseX, our XML framework, database system and XQuery 3.1 processor: http://basex.org/ This time, we have put a special focus on performance improvements:

Re: [basex-talk] concurrent performance issues?

2019-04-08 Thread Marco Lettere
Hi Michael, there has been a lot of discussion related to this issue. The most significant result that has alway clearly emerged and that Christian is always evangelizing us about is that beeing DB -access strictly serial, querying in paralllel is causing only trouble unless the data is

Re: [basex-talk] Hitting the Tail Recursion wall

2019-04-02 Thread Marco Lettere
ment = "") then $out   else if($segment = "..") then $out[position() lt count($out)]   else ($out, $segment)     })   return string-join($pathsequence, "/") }; local:topath("/a/b/c/../../../g") On 01/04/19 22:02, Andreas Mixich wrote: Marco Lettere wrote on

Re: [basex-talk] Hitting the Tail Recursion wall

2019-04-01 Thread Marco Lettere
Hi Andreas, I don't know whether I correctly understood you use-case but what about going with hof functions [1]? Maybe your code could turn to something as simple as declare function local:topath($path){   let $pathseg := tokenize($path, "/")   return     fold-left($pathseg, (),

Re: [basex-talk] Quick Windows issue: Invalid reply on port 1984, works fine on port 8984

2019-03-29 Thread Marco Lettere
Hi Jim, I think port 1984 is not meant to be connected to over HTTP. It's a pure socket connection that ships BaseX internal client-server protocol. When you connect to that port you probably have to use the Python client API in order to get your BaseX COMMANDS (not HTTP requests) serialized

Re: [basex-talk] Serialization issue with HTTP response

2019-03-08 Thread Marco Lettere
://files.basex.org/releases/latest/ On Tue, Jan 15, 2019 at 11:35 AM Marco Lettere wrote: Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: application/problem+json; charset=utf-8. I wrote this RestXQ [1] to mock it. Just copy

Re: [basex-talk] Serialization issue with HTTP response

2019-03-06 Thread Marco Lettere
://expath.github.io/expath-cg/specs/http-client-2). On Tue, Jan 15, 2019 at 11:35 AM Marco Lettere wrote: Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: application/problem+json; charset=utf-8. I wrote this RestXQ [1] to mock

Re: [basex-talk] RESTXQ and regexp

2019-02-25 Thread Marco Lettere
t; stated in the docs is not holding here. It rather looks as if BaseX is considering only the more generic one to match. Regards, Marco. On 23/02/19 23:33, Liam R. E. Quin wrote: On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote: (: Matches anything followed by /input :) declare %rest

Re: [basex-talk] BaseX-Talk Digest, Vol 110, Issue 29

2019-02-25 Thread Marco Lettere
an reach the person managing the list at basex-talk-ow...@mailman.uni-konstanz.de <mailto:basex-talk-ow...@mailman.uni-konstanz.de> When replying, please edit your Subject line so it is more speci

[basex-talk] RESTXQ and regexp

2019-02-22 Thread Marco Lettere
Hello all, according to the docs this should be possible: (: Matches all paths with "app" as first, a number as second, and "order" as third segment :) declare %rest:path("app/{$code=[0-9]+}/order")   function page:order($full-path) { ... }; (: Matches all other all paths starting with

Re: [basex-talk] Global lock = false and parallel update processes to different DBs

2019-02-06 Thread Marco Lettere
Hi France, I recall once I've been successful in generating xquery strings by patching the database name into it and then processing it with xquery:eval. Might this be anche approach for you? M. Il giorno mer 6 feb 2019, 09:12 France Baril ha scritto: > Irsh, we have 52 languages and all our

Re: [basex-talk] BaseX/GUI v9.1.2 memory use

2019-01-23 Thread Marco Lettere
Same for us over here. The ability to follow symlinks is a very powerful feature that we use to externalize folders (data, restxq for instance). So please don't remove it altogether! M. On 22/01/19 23:50, Graydon Saunders wrote: I've been handling updates by making data/ a symbolic link to a

Re: [basex-talk] Documentation suggestion

2019-01-17 Thread Marco Lettere
One more ... the signature of hmac function at [1] looks messed up... [1] http://docs.basex.org/wiki/Cryptographic_Module#crypto:hmac On 16/01/19 16:42, Christian Grün wrote: I had one but lost it like 99% of my account credentials ... :-( Sorry to hear that. – I’ll be happy to enable another

Re: [basex-talk] Documentation suggestion

2019-01-16 Thread Marco Lettere
Thanks. I had one but lost it like 99% of my account credentials ... :-( M. On 16/01/19 16:25, Christian Grün wrote: Hi Marco, I suggest to add an explicit statement of which is the default value of the combine option of map:merge. Done. If you are interested, feel free to get a little

Re: [basex-talk] Serialization issue with HTTP response

2019-01-16 Thread Marco Lettere
at 11:35 AM Marco Lettere wrote: Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: application/problem+json; charset=utf-8. I wrote this RestXQ [1] to mock it. Just copy it into restxq.xqm... When I call it like [2] I get [XPTY0004

[basex-talk] Documentation suggestion

2019-01-15 Thread Marco Lettere
Hi Christian, I suggest to add an explicit statement of which is the default value of the combine option of map:merge. Currently the only reference is in the Change notes at the bottom of the page. Thanks! Marco.

[basex-talk] Serialization issue with HTTP response

2019-01-15 Thread Marco Lettere
Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: /*application/problem+json; charset=utf-8*/. I wrote this RestXQ [1] to mock it. Just copy it into restxq.xqm... When I call it like [2] I get /*[XPTY0004] Cannot convert

Re: [basex-talk] BaseX 9.1.1

2018-12-14 Thread Marco Lettere
Yeah! A Christmas edition! Thank you all for this! M. On 14/12/18 11:31, Christian Grün wrote: Hi all, we are glad to provide you with version 9.1.1 of BaseX! It’s actually more than just a maintenance release: XQuery: - Comprehensive rewritings of positional predicates and functions -

Re: [basex-talk] restxq

2018-11-09 Thread Marco Lettere
It looks like your basexhttp server is pointing to a different directory than the one you expect. This might happen from time to time depending on type of installation env variables and things like that. M. On 09/11/18 13:30, Christian Grün wrote: …difficult to tell. Could you please provide

Re: [basex-talk] BaseX 9.1: The Autumn Edition

2018-10-31 Thread Marco Lettere
CHEERS! M. On 31/10/18 17:34, Christian Grün wrote: Dear XML and XQuery aficionados, It’s been exactly 5 months ago when BaseX 9 was released, and we are happy to announce version 9.1 of our XML framework, database system and XQuery 3.1 processor! The latest release is online:

Re: [basex-talk] Sir, when basex 9.1, please ;-)

2018-10-23 Thread Marco Lettere
Yes Christian, it works with ws:emit() and I also understand the point now. This embedded support for websockets allows us to reduce our code base in some use cases by several hundreds lines of code. Not speaking about dependency management and configuration tricks to be documented. Great job!

Re: [basex-talk] Sir, when basex 9.1, please ;-)

2018-10-22 Thread Marco Lettere
Hi, I'm just hijacking Maximilian's email here to post the following test I wanted to do for experimenting with BaseX and Websockets. I wrote the code at [1] with the intent to open a RESTXQ entrypoint that receives a JSON via POST and the broadcastst it to all connecte WS clients. I might be

Re: [basex-talk] Tomcat & services

2018-10-15 Thread Marco Lettere
able to define an external database directory for Tomcat? Or would you indeed like to have servlet-specific databases removod if On Mon, Oct 15, 2018 at 5:47 PM Marco Lettere <mailto:m.lett...@gmail.com>> wrote: Ok, actually on my personal PC jobs are correctly listed also

Re: [basex-talk] Tomcat & services

2018-10-15 Thread Marco Lettere
Ok, actually on my personal PC jobs are correctly listed also with basexhttp (need to investigate why on my colleagues PC this doesn't work). Back to the more important issue... I put the following jobs.xml[1] file in the data folder and get [2] as first lines of log in dba after reboot. I put

Re: [basex-talk] Tomcat & services

2018-10-15 Thread Marco Lettere
Hi Christian, thank you as usual for your attention. With standalone I mean basexhttp which is what we usually do. This time we have requirement for running inside tomcat... The jobs.xml file looks like: if (db:exists('onedb')) then () else db:create('ondedb') but we have also tried with:

[basex-talk] Tomcat & services

2018-10-10 Thread Marco Lettere
Dear all, has anyone experience with exploiting the persistent jobs (services) feature under Tomcat? We have installed services with the proper jobs.xml file. When running jobs:services() in the DBA after startup, we get the services listed. Nevertheless none of the XQuery scripts inside

Re: [basex-talk] Output `out:format` function question

2018-10-08 Thread Marco Lettere
On 08/10/2018 02:39, Bridger Dyson-Smith wrote: out:format("%06d", 256, 367) -> 000256 (: the second item() is ignored :) Hi Dyson, as far as I understand regarding this example the number of handled items depends on the format string. out:format("%06d %06d", 256, 367) would probably

Re: [basex-talk] BaseX GUI repo install shortcut

2018-09-25 Thread Marco Lettere
O commands. If you prefer to edit the files outside the repository, you could type the REPO INSTALL command into the input bar on top of the GUI and execute it every time after you’ve updated your files. Hope this helps, Christian On Tue, Sep 4, 2018 at 12:47 PM Marco Lettere wrote: Hi Chris

Re: [basex-talk] BaseX GUI repo install shortcut

2018-09-25 Thread Marco Lettere
, you could type the REPO INSTALL command into the input bar on top of the GUI and execute it every time after you’ve updated your files. Hope this helps, Christian On Tue, Sep 4, 2018 at 12:47 PM Marco Lettere wrote: Hi Christian et al, I'm not aware of any shortcut (keyboard, flag or any

[basex-talk] Tomcat and UserPrincipal

2018-09-20 Thread Marco Lettere
Hi all, when deploying a BaseX RestXQ module as a Tomcat webapp in a container that uses embedded realm based authentication is there any way to retrieve the login name after being redirected to the protected page? I remember back in J2EE times there was a dedicated method getUserPrincipal.

Re: [basex-talk] web:response-header & Set-Cookie

2018-09-18 Thread Marco Lettere
Hi Bogdan, I assume the last map is for options only. All headers should go into the second map. Try with: return (     web:response-header(   map { 'media-type': web:content-type($path) },   map { 'Cache-Control': 'max-age=3600,public', 'Set-Cookie': 'JSESSIONID=' || session:id()

[basex-talk] BaseX GUI repo install shortcut

2018-09-04 Thread Marco Lettere
Hi Christian et al, I'm not aware of any shortcut (keyboard, flag or any) for speeding up the reinstallation of a REPO module once the XQ file is being updated when working in the GUI. At the moment I always reinstall from the preference menu but when developing in continuous it's a bit

Re: [basex-talk] [XQUERY] Filter and paging with window clause

2018-08-28 Thread Marco Lettere
:path($doc) } ) ... Sorting is a blocking operator, though: All documents will need to be checked first in order to tell which one will be the smallest or largest hit. Best, Christian On Tue, Aug 28, 2018 at 4:01 PM Marco Lettere wrote: and what if, a pervert I know, would like to have the

Re: [basex-talk] [XQUERY] Filter and paging with window clause

2018-08-28 Thread Marco Lettere
: for tumbling window $w in db:open("adatabase")[every $f in $filters satisfies $f(.)] start $first at $s when ($s = 1 + ($page - 1) * $count) end $last at $e when $e - $s = $count - 1 return $w Cheers, Christian On Tue, Aug 28, 2018 at 3:27 PM Marco Lettere wrote

Re: [basex-talk] [XQUERY] Filter and paging with window clause

2018-08-28 Thread Marco Lettere
satisfies $f(.)] start $first at $s when ($s = 1 + ($page - 1) * $count) end $last at $e when $e - $s = $count - 1 return $w Cheers, Christian On Tue, Aug 28, 2018 at 3:27 PM Marco Lettere wrote: Oh, yes. Thank you Martin. That is obviously a good point. The input is a database wi

Re: [basex-talk] [XQUERY] Filter and paging with window clause

2018-08-28 Thread Marco Lettere
art $first at $s when ($s = 1 + ($page - 1) * $count)     end $last at $e when $e - $s = $count - 1     return $w Regards, Marco. On 28/08/2018 14:19, Martin Honnen wrote: On 28.08.2018 11:04, Marco Lettere wrote: here's a question related to XQuery, sorry for being slightly off-topic. I'm

[basex-talk] [XQUERY] Filter and paging with window clause

2018-08-28 Thread Marco Lettere
Hi all, here's a question related to XQuery, sorry for being slightly off-topic. I'm struggling to find a way to combine the windowing clause and FLOWR in order to get a paged result of a subset of items which respect a given filter. Of course I'm able to get this by first applying the

Re: [basex-talk] IETF Date in If-Modified-Since header

2018-05-29 Thread Marco Lettere
-header-annotation [2] https://github.com/exquery/exquery/issues [3] http://docs.basex.org/wiki/Request_Module#request:header On Tue, May 29, 2018 at 1:49 PM, Marco Lettere <mailto:m.lett...@gmail.com>> wrote: Hello all, need to use the If-Modified-Since header in one o

[basex-talk] IETF Date in If-Modified-Since header

2018-05-29 Thread Marco Lettere
Hello all, need to use the If-Modified-Since header in one of my APIs. The format requested is the IETF date format: If-Modified-Since: Wed, 21 Oct 2015 07:28:00 GMT as explained in [1]. If I pass the header as prescribed to a restxq made like: declare   %rest:path("config")  

[basex-talk] Documentation inquiries

2018-05-16 Thread Marco Lettere
Hi all, investigating the new features tagged 9.x, I discovered a lot of great stuff. I have teo smaller questions ... I'd like to know whether the new "-c flag" for the Basex Http Server in [1] means that one can request a script of commands to be executed once at startup of the server. Is

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread Marco Lettere
On 20/04/2018 15:49, Christian Grün wrote: Hi Omar, Thank you (and everyone else) for sharing your experiences. * BaseX in comparison to exist-db turned out to be particularly bad at hosting multiple XQuery based applications like RestXQ endpoint in one instance. Definitely true; BaseX was

Re: [basex-talk] Validation Module: validate:xsd-report( ) improvement

2018-04-19 Thread Marco Lettere
Hi Yitzhak, maybe, by slightly rewriting your code,  you could remove the unwnated attribute and serialize your output to a file and view it from a text editor? let $xml := 'd:\Temp\CDW\HOME\id4879_BO201801_HomeSubscriberMovementFact.xml' let $xsd :=

Re: [basex-talk] Multipart and charset

2018-04-16 Thread Marco Lettere
, Marco Lettere <m.lett...@gmail.com> wrote: Hi everyone, when parsing a multipart response we are getting from a server we need to integrate with basex raises the exception [1]. By forcing the mediatype (with override-media-type attribute) to text/plain we've been able to see that part

[basex-talk] Multipart and charset

2018-04-05 Thread Marco Lettere
Hi everyone, when parsing a multipart response we are getting from a server we need to integrate with basex raises the exception [1]. By forcing the mediatype (with override-media-type attribute) to text/plain we've been able to see that parts look something like [2]. Our suspect was that

Re: [basex-talk] BaseX 9.0: The Spring Edition!

2018-03-26 Thread Marco Lettere
Thank you all very much for this great tool! I'm eagerly looking forward to use the new version and the new site layout looks amazing. Well done! M. On 23/03/2018 21:32, Christian Grün wrote: Dear BaseX aficionados, We are very happy to announce the release of BaseX 9.0! The new version of

[basex-talk] Uncomprehensible (at least to me) behaviour with external bindings

2018-03-21 Thread Marco Lettere
Hi all, trying to understand why we get the exception [2] running the code [1] in a Java app, I stumbled upon a strange behaviour of the GUI. I rewrote the query to: xquery:eval(" declare variable $_dep as xs:long* external; $_dep[2] * $_dep[2]", map{ "_dep" : (1,2,3)}) obtaining the

[basex-talk] 9.0?

2018-01-29 Thread Marco Lettere
Hi Christian & team, since XML Prague 18 is approaching I remembered that there used to be this wonderful habit of releasing a new BaseX version for the event :-). I am wondering whether there are any timing plans for the 9.0 release. In particular we are eager to test the new features [1]

Re: [basex-talk] BaseX Sharding with ActiveMQ & Docker

2018-01-05 Thread Marco Lettere
Hi James, as to my experience the approach works. I've tried to use N Slaves BaseX (DB only) instances coordinated by one Master BaseX including HTTP server. On the latter I implemented a RestXQ [1] receiving a HTTP request which was then turned into a XQuery and executed on the different

Re: [basex-talk] TLS 1.2

2017-12-18 Thread Marco Lettere
Great! Thanks to you! M. On 18/12/2017 20:18, Christian Grün wrote: Thanks, Marco. Your pull request has been merged, and the documentation has been updated [1]. Cheers, Christian [1] http://docs.basex.org/wiki/Options#IGNOREHOSTNAME On Mon, Dec 18, 2017 at 10:44 AM, Marco Lettere <m.l

Re: [basex-talk] TLS 1.2

2017-12-18 Thread Marco Lettere
Hi Christian, I've filed a pull request [1] to the github repo. I've tested it with our use case and it works fine. Check it out and let me know. Regards, Marco. [1] https://github.com/BaseXdb/basex/pull/1533 On 17/12/2017 22:58, Christian Grün wrote: Hi Marco, Thanks for reporting all the

Re: [basex-talk] TLS 1.2

2017-12-13 Thread Marco Lettere
our »success story«, Christian On Mon, Dec 11, 2017 at 9:37 PM, Marco Lettere <m.lett...@gmail.com> wrote: Hi again, your words put me on the right way. My doubt was how to pass the information to the http module send-request functon. After some investigation I've found out that it may be done by s

Re: [basex-talk] TLS 1.2

2017-12-11 Thread Marco Lettere
Hi again, your words put me on the right way. My doubt was how to pass the information to the http module send-request functon. After some investigation I've found out that it may be done by setting some env variables through -D in the startup scripts pointing to server and client certificates

Re: [basex-talk] TLS 1.2

2017-12-11 Thread Marco Lettere
Hi Christian, currently not too much since I first have to get used to the protocol details of Mutual TLS1.2 authentication [1]. I have a PKCS12 file containing both server and client certificates/keys (which are required for mutual auth) and I'm really not sure how all this info relataed to

[basex-talk] TLS 1.2

2017-12-07 Thread Marco Lettere
Hi list, I need to perform an integration with a service that talks HTTP over TLS 1.2. I have the mutual certificates and all the rest. My idea was to do as less as possible (mostly handshaking) in Java and then use the Java call the code from inside XQuery where all the rest happens.

[basex-talk] Documentation typo

2017-11-20 Thread Marco Lettere
Hi all, I think there is a typo in the documentation on the map:merge function [1]. The Summary states the possibility to use "use-combine" as a value for duplicates option but it should be 'combine' only. Regards, M. [1] http://docs.basex.org/wiki/Map_Module#map:merge

Re: [basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Marco Lettere
L'), 'Wrong format: ' > || $str) > }; > > local:parse-decimal('123.45e-300') > > [1] https://en.wikipedia.org/wiki/Exponentiation_by_squaring > > Am Mittwoch, 01. November 2017 13:21 CET, Marco Lettere < > m.lett...@gmail.com> schrieb: > > Thanks Kristian, > > un

Re: [basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Marco Lettere
ad of xs:decimal to be able to use the 'e' or 'E' as the exponent separator. Br, Kristian K1. nov 2017 13:18 kirjutas kuupäeval Marco Lettere < m.lett...@gmail.com>: > > Hi all, > > I thought of asking this in parallel of hacking my own parsing procedure > ... > > Is there a nat

  1   2   3   >