Re: [basex-talk] How to configure org.basex.path

2024-02-03 Thread Marc Coenegracht
to consider ModSecurity (maybe you already did). ModSecurity easily fends off 90-95% of attacks in the default config, even more if you spend some time on it. best, Marc On Tue, 30 Jan 2024, Pierre-Yves Jallud wrote: > Hi Marc, > > well, containers is still obscure for me and I kn

Re: [basex-talk] How to configure org.basex.path

2024-01-26 Thread Marc Coenegracht
scenario with multiple BaseX instances. regards, Marc On Fri, 26 Jan 2024, Pierre-Yves Jallud wrote: > Hälløw Christian, > > many thanks for your answer! I finaly came to this solution yesterday > afternoon and I was answering to my question when you send your answer. I > fir

[basex-talk] RESTXQ Custom Multipart Response

2023-10-29 Thread Jean-Marc ANSEL
Hello, I'm trying to do a custom multipart response with basex RESTXQ module. The Custom Response paragraph of https://docs.basex.org/wiki/RESTXQ  indicates : Custom responses can be generated in XQuery by returning an |rest:response| element, an |http:response| child node that matches the

Re: [basex-talk] Error messages in Basex 9.7.x

2022-08-14 Thread Marc Coenegracht
Thanks for the quick response Christian. I'll switch off debugging then, excellent solution. best, Marc On Sun, 14 Aug 2022, Christian Grün wrote: > Hi Marc, > > Thanks for your feedback. If debugging is enabled, the returned error > output can safely be ignored. The debugging mo

[basex-talk] Error messages in Basex 9.7.x

2022-08-14 Thread Marc Coenegracht
he only reason I noticed the errors is because I made the foolish decision to set debugging to true ... :) I tested versions 9.7 and 9.7.3 on multiple Debian 11 boxes with openjdk 11.0.16, and version 9.7 in an older Debian 9 box with openjdk 11.0.6, results are identical. Best, Marc

Re: [basex-talk] xquery:eval and permissions [updated]

2022-08-08 Thread Marc Balston
Wow, that was quick!That gives me another reason to upgrade to BaseX 10! Many thanksMarc M. Balston M: +44 7786 263 906 On Monday, 8 August 2022 at 16:15:16 BST, Christian Grün wrote: > I’ll have some more thought on that, as we currently don’t have any > functions that have dynamic

Re: [basex-talk] xquery:eval and permissions [updated]

2022-08-08 Thread Marc Balston
BST, Christian Grün wrote: Hi Marc, The invocation of xquery:eval requires admin privilegues; but if you are an admin user, you can decide under which permissions this query will be executed. If you want to evaluate an XPath expression with a limited user and the REST API, it should

Re: [basex-talk] Incompatibility with Tomcat 10

2022-04-05 Thread Marc Balston
, 2022 at 6:47 PM Christian Grün wrote: > > Hi Marc, > > Thanks for testing and the StackOverflow links. > > I think you’ve already discovered the weak spot, which is also > documented in the Tomcat Migration Guide [1]: The javax.servlet > packages are not available in Tomcat 1

Re: [basex-talk] Incompatibility with Tomcat 10

2022-04-04 Thread Marc Balston
Grün wrote: Hi Marc, I remember there were problem with a past release of BaseX and Tomcat. Which version of BaseX are you using? Best, Christian On Sun, Apr 3, 2022 at 10:45 PM Marc Balston wrote: > > Hello, > > I've been successfully running BaseX on Amazon AWS usin

Re: [basex-talk] GUI syntax highlighting

2022-03-23 Thread Marc Coenegracht
Thank you Christian, from a happy night coder. Best, Marc On Wed, 23 Mar 2022, Christian Grün wrote: > Fixed [1]; thanks for the observation. > All the best, Christian > > [1] https://files.basex.org/releases/latest/ > > > > > The syntax highlighting doesn't ch

[basex-talk] GUI syntax highlighting

2022-03-22 Thread marc
theme. This occurs in Linux, all kinds of distro's, both Debian and Fedora based. Open JDK 11.0.6. In BaseX GUI 8.6.x all is fine, running under the same conditions. Regards, Marc

[basex-talk] Log4j vulnerability CVE-2021-44228

2021-12-13 Thread Marc Coenegracht
Does Basex (9.x or 8.x) use Log4j in any of its components? If not, should one still worry about the JRE? Regards, Marc

Re: [basex-talk] Coding help

2019-08-08 Thread Marc
but XPath, it can be done like that. If the collection is to big you can do more than one pass with the file selector (files started by a, next b, etc) Marc Le 06/08/2019 à 18:12, Majewski, Steven Dennis (sdm7g) a écrit : Creating a bunch of temporary databases that you’re going to delete

Re: [basex-talk] comment()

2019-08-08 Thread Marc
Thanks you very much. I use very often the comment() with XSLT, and I confuse it with the "comment" literal of XQuery ! Marc Le 07/08/2019 à 19:22, Majewski, Steven Dennis (sdm7g) a écrit : Also literal work just like other literal XML, as there is a different syntax for

[basex-talk] comment()

2019-08-07 Thread Marc
( $r,$j) } or (who is more what I want to do) { let $r := random:integer(100) + 1 for $j in (/*)[$r] return (comment("$r"),$j) } I don't find any example on how to use the comment function. Anyone have example about that use? Thanks Marc

[basex-talk] Transaction management in BaseX 8.6.4

2018-08-08 Thread Marc Coenegracht
or with the BaseX server instance? Of course it is possible to update the databases instead, but this process is a lot simpler and probably faster too. All operations are executed running xquery scripts with REST using the BaseX http server. Marc

Re: [basex-talk] Maven repo 9.0

2018-03-27 Thread Marc van Grootel
Hi Dirk, Yes, it is synced to Maven Central now. The net.xqj:basex-xqj:9.0 dependency still requires adding the http://files.basex.org/maven repo though as it cannot be found on MC. Thanks, --Marc On Tue, Mar 27, 2018 at 5:12 PM, Kirsten, Dirk <dirk.kirs...@senacor.com> wrote: > Hi

[basex-talk] Maven repo 9.0

2018-03-27 Thread Marc van Grootel
9.0 available from org.basex:basex-api:9.0 Maven coordinates? --Marc

Re: [basex-talk] proc:system ?

2017-10-13 Thread jean-marc Mercier
Andy, Thank you for your answer. Indeed, the length of my parameters are now much more than the Windows limit. I guess that creating a temporary file, then passing the name of the file as parameters should solve the issue. Cheers, Jean-Marc 2017-10-13 10:42 GMT+02:00 Andy Bunce <bunc

[basex-talk] proc:system ?

2017-10-12 Thread jean-marc Mercier
\Jiheme\scientifique\recherche\CoDeFi\CoDeFi\CoDeFi.exe": CreateProcess error=206, Nom de fichier ou extension trop long " Is there a way to bypass this ? Thank you for your answer, Cheers, Jean-Marc

Re: [basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
Christian, Yes absolutely. Thx for your answer. Cheers, Jean-Marc 2017-10-09 18:00 GMT+02:00 Christian Grün <christian.gr...@gmail.com>: > > Yes. But my question is : why did the BaseX compiler ran the query let > $idd > > := $elt[d]/@id ? > > The query is val

Re: [basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
Hello Christian, Yes. But my question is : why did the BaseX compiler ran the query let $idd := $elt[d]/@id ? Shouldn't it raise a compilation error ? 2017-10-09 17:49 GMT+02:00 Christian Grün <christian.gr...@gmail.com>: > Dear Jean-Marc, > > > let $idd := $elt[d]/@id >

[basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
ce missing the second "yolo", because the correct query is : let $idd := $elt[$d]/@id) However I can't figure out why the BaseX compiler ran this query ? Shouldn't it refused the compilation and point out this error ? Cheers, Jean-Marc

Re: [basex-talk] map behavior ?

2017-09-26 Thread jean-marc Mercier
Dear Jean-Marc, > > Welcome back! > > Maps in XQuery are simple key/value pairs; neither keys nor values > will be arranged in a specific order. > > If you want to sort map by keys before outputting them, you can sort > them in a second step: > > let $map := m

[basex-talk] map behavior ?

2017-09-26 Thread jean-marc Mercier
Hello BaseX team, It has been a while since I last wrote to this mailing list ! Happy to report again :) I have a strange behavior concerning map, it doesn't seem to sort as I expected. Is there any explanation ? let $map as map(xs:double,xs:string) := map:merge(( map:entry(xs:double(0.1),

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Marc van Grootel
, --Marc On Wed, Jun 21, 2017 at 9:36 AM, Imsieke, Gerrit, le-tex <gerrit.imsi...@le-tex.de> wrote: > Hi Dharmendra, > > The function validate:rng() seems to only accept a Relax NG *XML syntax* > document as its 2nd argument. You can convert the rnc file to rng using > trang a

Re: [basex-talk] Create Options are deleted from .basex config file

2017-06-05 Thread Marc Coenegracht
Apparently that was the mistake. Thank you! Marc On Mon, 5 Jun 2017, Christian Grün wrote: Did you differentiate between global and local options [1]? Cheers, Christian [1] http://docs.basex.org/wiki/Options Am 05.06.2017 5:39 nachm. schrieb <m...@crosseyed.nl>: Options ma

[basex-talk] Create Options are deleted from .basex config file

2017-06-05 Thread marc
') Basex 8.5.3 on Linux Regards, Marc

Re: [basex-talk] Exit a for-loop?

2017-02-27 Thread Marc van Grootel
Hi Joseph, Maybe hof:until [1] and hof:take-while [2]? [1] http://docs.basex.org/wiki/Higher-Order_Functions_Module#hof:until [2] http://docs.basex.org/wiki/Higher-Order_Functions_Module#hof:take-while --Marc > On 27 feb. 2017, at 19:25, Dirk Kirsten <d...@basex.org> wrote: > &g

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Marc van Grootel
in Manchester in the UK. If your are interested in knowing more about this opportunity then reply to me in private. --Marc

Re: [basex-talk] fn:doc weirdness with imported files

2017-01-11 Thread Marc van Grootel
is was on 8.5.3 and 8.4.2 (btw on 8.4.2 step 4 returned "foo/foo.xml" (without leading slash). Thanks for the info on "database" nodes as, indeed, the description in the docs threw me off a little. Cheers, --Marc On Tue, Jan 10, 2017 at 5:45 PM, Christian Grün <christia

Re: [basex-talk] fn:doc weirdness with imported files

2017-01-10 Thread Marc van Grootel
F:/tmp/afile.xml' exists as a file. Even with no database open or existing and never having imported this file. It doesn't depend on the format of the path and same result with 'F:\tmp\afile.xml', 'file:///F:/tmp/afile.xml'. --Marc On Tue, Jan 10, 2017 at 3:17 PM, Marc van Grootel <marc

[basex-talk] fn:doc weirdness with imported files

2017-01-10 Thread Marc van Grootel
get a database node from the latter and return a node-id for example. When the foo.xml is moved to another filesystem directory then this doesn't happen so it appears as if this happens only when I try to read the file from the original import location. Shouldn't these two situations have the same result? Cheers, --Marc

Re: [basex-talk] How to save Table views as spreadsheet

2016-12-21 Thread Marc van Grootel
Hi Constantine, Instead of with POI do it with standard XQuery and XSLT. Here's the gist (pun intended) of it https://gist.github.com/xokomola/59a590a423b86bb3ea809c1b03706c4b Haven't checked it for correctness but gives you an idea how it works. --Marc On Wed, Dec 14, 2016 at 9:15 AM, Hondros

Re: [basex-talk] map:merge new semantics for 8.6

2016-10-31 Thread Marc van Grootel
Thanks Christian, I feared as much ;-( I understand the reasoning (processing efficiency and compatibility with parse-json) but find it unfortunate that backwards compatibility wasn't part of the reasoning as maps and map:merge are not exactly new. --Marc On Mon, Oct 31, 2016 at 1:50 PM

[basex-talk] map:merge new semantics for 8.6

2016-10-31 Thread Marc van Grootel
e-last). Cheers, --Marc

Re: [basex-talk] bug (?) in fn:serialize

2016-09-09 Thread Marc van Grootel
happily returns Somebody wants to write that book on XML/XSLT/XQuery and whitespace? Title suggestion: "Whitespace matters" --Marc

Re: [basex-talk] bug (?) in fn:serialize

2016-09-09 Thread Marc van Grootel
Hmm first I thought not a bug and that the fix would be to do serialize( ) but to my surprise this results in (with CHOP = false) That doesn't seem right. Whereas serialize() does what you expect. --Marc

Re: [basex-talk] csv:parse in the age of XQuery 3.1

2016-09-08 Thread Marc van Grootel
to XML to the very end. And if too large I would probably also chunk it before storing the end result. Intuitively I would think that dealing with CSV as maps/arrays should be much faster and less memory intensive. --Marc

Re: [basex-talk] file:write - check, if path is existing

2016-05-20 Thread Marc
Hi Günter, in the file: you have the is-file function. Does'nt it do the job? Marc Le 19/05/2016 à 21:25, Günter Dunz-Wolff a écrit : Hi all, for the command file:write($path, distinct-values($list)) I have to check, if $path is existing (for example let $path := ´users/xxx/xxx/etc’. How

Re: [basex-talk] Basex on maven central

2016-05-13 Thread Marc van Grootel
, --Marc On Thu, May 12, 2016 at 5:45 PM, Lance Java <lance.j...@googlemail.com> wrote: > It seems that maven central is not up to date with the latest basex version. > I see here that there's only version 7.3.1 whereas on the basex website the > latest version is 8.4.4 > > ht

Re: [basex-talk] Function must not be updating error in 8.4.3 (not in 8.4.2)

2016-04-26 Thread Marc van Grootel
but as far as this issue goes it seems to be gone now. Thanks, --Marc On Fri, Apr 22, 2016 at 3:36 PM, Marc van Grootel <marc.van.groo...@gmail.com> wrote: > Checked with this new snapshot. It's still occurring. > Will do some more digging on monday. > > Thanks, > --Marc > >

[basex-talk] Function must not be updating error in 8.4.3 (not in 8.4.2)

2016-04-22 Thread Marc van Grootel
(but they are not in the active code path). That's all I can offer at the moment. I'm happy to do some more digging later but I wanted to post this just in case it gives someone a hunch and it's only introduced since 8.4.2. Also tried 8.4.4-SNAPSHOT and there it's broken too. Cheers, --Marc

Re: [basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
Hi Hans-Jürgen, Yes, that's what I am looking for. Will read that paper. Thanks, --Marc On Tue, Apr 5, 2016 at 5:22 PM, Hans-Juergen Rennau <hren...@yahoo.de> wrote: > Hi Marc, > > like you, I find the integration of XQuery results into other languages a > most interesting

Re: [basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
ian.gr...@gmail.com> wrote: > Hi Marc, > >> Is it right that the current XQJ driver for BaseX doesn't support >> XQuery 3 syntax? Everytime I try to use a query that includes some of >> the newer features it barks at me with Invalid XQuery syntax, syntax >> does n

[basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
would be interested to hear what the best way would be to get a client to deal with query responses as native (client-side) types (including hashmaps and arrays) instead of strings. Would it be better to focus on using BaseXClient and forget about XQJ? Cheers, --Marc

Re: [basex-talk] Setting base-dir for xquery:eval

2016-02-19 Thread Marc van Grootel
night's sleep in between. Of course I'll share what I have. I am creating it to better provide testable documentation and examples for Origami (I'm still working on it but work has kinda taken over the last few months). Cheers, --Marc On Fri, Feb 19, 2016 at 9:51 AM, Christian Grün <christian

Re: [basex-talk] Setting base-dir for xquery:eval

2016-02-18 Thread Marc van Grootel
Yes, exactly what I was after. Thanks and good night :) --Marc > On 18 feb. 2016, at 23:38, Christian Grün <christian.gr...@gmail.com> wrote: > > Hi Marc, > >> when running xquery:eval with a string it will try to resolve paths >> relative to the code modul

[basex-talk] Setting base-dir for xquery:eval

2016-02-18 Thread Marc van Grootel
someone has a better idea. --Marc

Re: [basex-talk] get and extract .gz files from web

2016-01-27 Thread Marc van Grootel
this could be a bug or at least a good improvement to make as the docs say gzip archives can be created. Christian, you think we should file an issue for this? --Marc On Tue, Jan 26, 2016 at 9:51 PM, Andy Bunce <bunce.a...@gmail.com> wrote: > Hi Marco, > > I get the same. Thi

[basex-talk] get and extract .gz files from web

2016-01-26 Thread Marc van Grootel
to extract. Is there a way to do the extraction of .gz encoded files without having to shell out to some kind of unzipper? Cheers, --Marc

Re: [basex-talk] get and extract .gz files from web

2016-01-26 Thread Marc van Grootel
, Jan 26, 2016 at 3:13 PM, Marc van Grootel <marc.van.groo...@gmail.com> wrote: > Hi, > > I hoped that I could use archive module to also extract gzipped files. > I need to fetch/sync large XML from a web service that has the option > of getting files with gzip encoding (to be n

Re: [basex-talk] Embedding BaseX in Clojure web app, pointers needed

2016-01-19 Thread Marc van Grootel
Yes, Clojure has very good Java interop. I lean towards embedding too as it gives much more control over BaseX and I want it to become an integral part of the webapp. On Tue, Jan 19, 2016 at 10:49 AM, Dirk Kirsten <d...@basex.org> wrote: > Hello Marc, > > I have no idea ho

Re: [basex-talk] xquery:eval bug?

2016-01-19 Thread Marc van Grootel
ustom built test harness (tests are evaluated via xquery:eval). --Marc On Mon, Jan 18, 2016 at 1:51 PM, Christian Grün <christian.gr...@gmail.com> wrote: > Hi Marc, hi Andy, > > Confirmed, it seems to be the MIXUPDATES option. Once again, I noticed > it’s tricky to statical

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Marc van Grootel
]. I've %unit:ignored the last test that causes the error above. Cheers, --Marc [1] https://github.com/xokomola/origami-examples/blob/master/check/test-eval.xqm On Fri, Jan 15, 2016 at 6:57 PM, Christian Grün <christian.gr...@gmail.com> wrote: > Hi Marc, > > This was a deliber

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Marc van Grootel
: basex-talk-boun...@mailman.uni-konstanz.de [mailto:basex-talk-boun...@mailman.uni-konstanz.de] On Behalf Of Christian Grün Sent: Monday, January 18, 2016 11:32 AM To: Marc van Grootel <marc.van.groo...@gmail.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk]

[basex-talk] Embedding BaseX in Clojure web app, pointers needed

2016-01-18 Thread Marc van Grootel
generally slower than via the Java API? A couple of queries via clj-basex didn't impress me much qua speed (compared to same query via the GUI). Any starting points or general considerations that could help me prune the (re)search tree are very much appreciated. --Marc [1] https://github.com

[basex-talk] xquery:eval bug?

2016-01-14 Thread Marc van Grootel
quot;x": 10 }') => ERROR: [FOTY0014] Items of type map(*) have no string representation. BTW: I saw that xquery:eval#3 is documented as returning item() while the other arities return item()* Tested on 8.3, haven't tested yet on 8.4beta but it's trivial to repro I figure. -- --Marc

Re: [basex-talk] Automatically generating test cases. Hidden feature?

2016-01-13 Thread Marc van Grootel
in the context of generative/property-based testing. Cheers, --Marc On Wed, Jan 13, 2016 at 8:43 AM, Christian Grün <christian.gr...@gmail.com> wrote: > Hi Marc, > >> BaseX, the gift that keeps on giving, thanks to all that make it possible. > > One of the nicest compliments th

[basex-talk] Automatically generating test cases. Hidden feature?

2016-01-12 Thread Marc van Grootel
e releases as I intend to leverage this in an alternative testing module. BaseX, the gift that keeps on giving, thanks to all that make it possible. --Marc [1] https://github.com/xokomola/origami-examples [2] https://github.com/xokomola/origami [3] http://examplotron.org/

Re: [basex-talk] Generating consecutive integers in a for loop

2015-10-22 Thread Marc van Grootel
; wrote: >> Hi Ron, >> >> Maybe the attached codes-nippet is useful to you. >> It is an example of stateful programming, which isn't compliant with the >> functional programming concept but, in some cases, can be very useful. >> >> Hopes it helps, >> Rob Stapper >> >> PS. put the module-file in a subdirectory: "counter", in your >> basex-repo-directory. -- --Marc

[basex-talk] Origami presentation XML Amsterdam

2015-09-29 Thread Marc van Grootel
to implement different templating styles. --Marc

Re: [basex-talk] Xquery collections

2015-09-15 Thread Marc
Hi Michele, Is it not because the following axis do'nt return the childrens? Do you try without the except to see if you have all your text()? Marc Le 04/09/2015 15:49, michele.gre...@email.it a écrit : Hi, i tried this xquery: for $e in db:open("dbName")//w:tc[.//text()="Nom

Re: [basex-talk] size on collection in the time

2015-09-03 Thread Marc
James, We have the UPDINDEX to FALSE. I'll try to do an OPTIMIZE command, but we do it at the end of all the REPLACE so I think that it's not enough. After that I prepare a study case with public data. Regards Marc Le 03/09/2015 12:17, James Ball a écrit : Marc, Are you using the updatable

Re: [basex-talk] size on collection in the time

2015-09-03 Thread Marc
Hello Dirk, We use a BaseX script (.xbs) with a list of REPLACE. We try to investigate this point if this is reproducable or not. If I find this problem again, I take a copy of the collection before to delete her. Thank you for answer. Marc Le 03/09/2015 09:52, Dirk Kirsten a écrit : Hello

Re: [basex-talk] (no subject)

2015-09-03 Thread Marc
I forgot to give this precision, we use the 7.9 version on this server. Marc Le 01/01/1970 01:00, a écrit : Hello Dirk, We use a BaseX script (.xbs) with a list of REPLACE. We try to investigate this point if this is reproducable or not. If I find this problem again, I take a copy

[basex-talk] size on collection in the time

2015-09-02 Thread Marc
and recreate it from the last version of the files the size was only 6Go. We will redo the test with the time, but I just want to know if the program clears the disk use when he does a REPLACE? Marc

[basex-talk] Trouble with wildcard lookup operator on maps?

2015-08-15 Thread Marc van Grootel
Hi, Unless I'm not reading the spec[1] correctly then the following two snippets should have the same result: Example 1: let $map := map { 'a': (1,2,3), 'b': (4,5,6)} for $k in map:keys($map) return array { $map($k) } Example 2: let $map := map { 'a': (1,2,3), 'b': (4,5,6)}

Re: [basex-talk] Trouble with wildcard lookup operator on maps?

2015-08-15 Thread Marc van Grootel
in map:keys(.) return .($k) I realize that if I didn't put an array {} around the return value then this statement would be correct. Just thought I caught a loophole there. I stand corrected. ;-) On Sat, Aug 15, 2015 at 3:59 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Marc

[basex-talk] HTTP response and raising error()

2015-08-13 Thread Marc van Grootel
when fn:error is used? Of course I can always catch at the highest level and then decide which HTTP status to return but I'm not sure if I want to wrap all REST calls in try / catch. -- --Marc

Re: [basex-talk] HTTP response and raising error()

2015-08-13 Thread Marc van Grootel
Ah, ok. Didn't know about the third argument. I didn't realize that an int as $error-object would be interpreted as returning that as status code. Is this documented? I mean how BaseX deals with the third argument? I couldn't find it. The spec leaves it open to implementations. --Marc On Thu

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
didn't come across this in my simple queries. Could you please provide me with a function and call that triggers the exception? On Tue, Aug 4, 2015 at 11:00 AM, Marc van Grootel marc.van.groo...@gmail.com wrote: I've double checked the version and manually downloaded latest. I'm now on BaseX

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
this mean there should be a format=array or would it be better to give a different name for this format. --Marc On Mon, Aug 3, 2015 at 6:47 PM, Christian Grün christian.gr...@gmail.com wrote: …fixed, and available via the latest snapshot [1]. Thanks, Christian [1] http://files.basex.org/releases

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
how to process. If I do that and put an %input:json(...) annotation on the RESTXQ handler it can still be overridden by things specified in the header by the client. But again this probably should be directed at RESTXQ rather than BaseX. --Marc On Tue, Aug 4, 2015 at 10:01 AM, Marc van Grootel

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
). Elastic Search does this too. My first instinct was to use a body with GET but, although the HTTP specs more or less allow it many tools and libraries (including BaseX/RESTXQ) do not support sending bodies with GET. So now I'm doing this with POST which feels wrong too. --Marc On Tue, Aug 4, 2015

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
as it includes array and map) but confusing. format=native (maybe?) I agree fully that the server should have the last say in how to process the content so I would definitely be in favor of prioritizing server parameters. Not sure if that breaks something out there though. --Marc On Tue, Aug 4, 2015

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
Thanks, came to that conclusion too, strange things is that CACHERESTXQ=true never bit me before. First time I have issues with it. I have it set to true almost all the time. --Marc On Tue, Aug 4, 2015 at 11:24 AM, Andy Bunce bunce.a...@gmail.com wrote: This looks a bit like errors I have seen

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
...@gmail.com wrote: All existing test cases seem to work, and I didn't come across this in my simple queries. Could you please provide me with a function and call that triggers the exception? On Tue, Aug 4, 2015 at 11:00 AM, Marc van Grootel marc.van.groo...@gmail.com wrote: I've double checked

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
Optionsdocument-node() On Mon, Aug 3, 2015 at 4:42 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Marc, declare %rest:POST({$body}) %rest:path(/json) %rest:consumes(application/json;lax=yes;format=map) %rest:produces(application/json;format=map) If I remember right, content-type

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Marc
lost the space. Marc Le 03/08/2015 23:07, Lizzi, Vincent a écrit : Thanks, Max and Andy. The XQuery 3.1 transform function looks promising. Marc, For controlling the serialization of XSLT output, you can specify serialization for the XSLT within the XSLT itself using xsl:output, run the XSLT

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
be, I think, to deliver a map(*) to the function instead of a document-node() in this case. Maybe something to forward to Adam Retter / RESTXQ? --Marc On Mon, Aug 3, 2015 at 4:54 PM, Marc van Grootel marc.van.groo...@gmail.com wrote: Hi Christian, No luck. I'm using Postman. I already had

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Marc
Hi, I have an other problem is to control the serialization of the node passed to the transform function. I don't see how to control it. Marc Le 03/08/2015 22:32, Andy Bunce a écrit : Hi Max, This sounds like a good thing. Another solution to the result-document issue might be to implement

Re: [basex-talk] Union of maps?

2015-07-15 Thread Marc van Grootel
Hi Graydon, have a look here https://github.com/xokomola/fold/blob/dbb79c60a7356e32a0994e581ad4f7f5377ddc72/webapp/fold-common/common.xqm#L125 hope it helps --Marc On 15 jul. 2015, at 20:01, Graydon Saunders graydon...@gmail.com wrote: Hi -- In BaseX 8.2.1, I have a bunch of maps

Re: [basex-talk] Union of maps?

2015-07-15 Thread Marc van Grootel
-common.xqm#L166 --Marc On 15 jul. 2015, at 21:51, Marc van Grootel marc.van.groo...@gmail.com wrote: Hi Graydon, have a look here https://github.com/xokomola/fold/blob/dbb79c60a7356e32a0994e581ad4f7f5377ddc72/webapp/fold-common/common.xqm#L125 hope it helps --Marc On 15 jul. 2015, at 20

Re: [basex-talk] Whitespace

2015-07-14 Thread Marc
Hi You can use the serialisation parameter with no indent option. Marc On July 14, 2015 8:13:09 PM CEST, meumapple meumap...@gmail.com wrote: Hi, When I use the file:write function, the whitespaces before an element are deleted (and also the initial whitespace of a string in an element

Re: [basex-talk] Basex Standalone : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver'

2015-05-12 Thread jean-marc Mercier
hardening dev / debug, since I don't know how to trace using BAseX server (fn:trace seems not to output anything using the basex server, maybe I missed something here ?). Cheers 2015-05-11 22:05 GMT+02:00 Christian Grün christian.gr...@gmail.com: Hi Jean-Marc, I guess that it might be due

[basex-talk] Basex Standalone : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver'

2015-05-11 Thread jean-marc Mercier
Hi, I am struggling to use Basex sql module together with Basex Standalone. I am getting the error : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver' The sql connection works finely while using the Basex server. I guess that it might be due to the fact that I

[basex-talk] RESTXQ accept/produces issue

2015-04-21 Thread Marc van Grootel
-specification/restxq-1.0-specification.html#produces-annotation --Marc

Re: [basex-talk] Bug? Local variable has not been allocated a stack frame slot

2015-04-09 Thread Marc van Grootel
Bummer, it's very tricky to isolate/repro in a minimal case. At the moment don't have the time to pursue this further. Maybe later. --Marc On Wed, Apr 8, 2015 at 2:27 PM, Marc van Grootel marc.van.groo...@gmail.com wrote: Sure, I'm going to try this evening. If it's indeed Saxon we would

[basex-talk] Bug? Local variable has not been allocated a stack frame slot

2015-04-08 Thread Marc van Grootel
runs without problems. Here it's not accessing the local variable inside the grouping attribute. xsl:for-each-group select=$v group-starting-with=v[text()] ... /xsl:for-each-group Any idea if this is Saxon or BaseX issue? --Marc This is the top of the traceback

Re: [basex-talk] Bug? Local variable has not been allocated a stack frame slot

2015-04-08 Thread Marc van Grootel
Sure, I'm going to try this evening. If it's indeed Saxon we would probably need one anyways. --Marc On Wed, Apr 8, 2015 at 2:23 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Marc, I would tend to say it's a Saxon issue. We have no Saxon-specific code in our XSLT functions

Re: [basex-talk] %unit:ignore broken since 8.0?

2015-03-31 Thread Marc van Grootel
is quite handy to have. --Marc On Tue, Mar 31, 2015 at 8:16 AM, Lukas Kircher lukaskirch...@gmail.com wrote: Hi Marc, sorry for the inconvenience - there have indeed been some changes to the unit module in the recent past, that are not yet covered by the documentation. I assume unit:ignore

[basex-talk] %unit:ignore broken since 8.0?

2015-03-30 Thread Marc van Grootel
. Documentation let's me believe %unit:ignore(message) is still supported. --Marc

[basex-talk] GUI suggestion: no trace output when running tests

2015-03-21 Thread Marc van Grootel
the test summary overwriting the debugging info (such as trace output). Currently I then go to the command-line but it might be an idea to somehow keep the output generated during test run visible. Cheers, --Marc

[basex-talk] Bug in evaluating conditionals? Not short-circuiting?

2015-03-21 Thread Marc van Grootel
it for other conditionals. --Marc

Re: [basex-talk] get-current-user()

2015-03-21 Thread Marc van Grootel
and Marklogic has xdmp:get-current-user. We could add a function user:current() to the new User Module [1]. More suggestions on other, possibly missing, functions are welcome. Best, Christian [1] http://docs.basex.org/wiki/User_Module -- --Marc

Re: [basex-talk] Fwd: Re: How to process very long node sequences

2015-03-18 Thread Marc
? Marc Le 18/03/2015 19:38, Leonard Wörteler a écrit : Wrong mail account... Weitergeleitete Nachricht Betreff: Re: [basex-talk] How to process very long node sequences Datum: Wed, 18 Mar 2015 19:26:00 +0100 Von: Leo Wörteler l...@basex.org An: Hans-Juergen Rennau hren

[basex-talk] get-current-user()

2015-03-14 Thread Marc van Grootel
intricate user details just need the handle on the logged in / authenticated user (possibly from the servlet request object?) --Marc

Re: [basex-talk] DITA project

2015-03-13 Thread Marc van Grootel
. But I don't know how your code looks so I cannot say. hth --Marc

Re: [basex-talk] DITA project

2015-03-12 Thread Marc van Grootel
of using this function. I also remember that Michael Kay is looking into improving on exactly this use case. But that doesn't help you now. Cheers, --Marc On 12 mrt. 2015, at 20:33, France Baril france.ba...@architextus.com wrote: Hi, I'm working on a new DITA project. The DITA standard

  1   2   3   >