Re: [basex-talk] Maven repo 9.0

2018-03-27 Thread Marc van Grootel
> -Ursprüngliche Nachricht- > Von: basex-talk-boun...@mailman.uni-konstanz.de > [mailto:basex-talk-boun...@mailman.uni-konstanz.de] Im Auftrag von Marc van > Grootel > Gesendet: Dienstag, 27. März 2018 15:49 > An: BaseX > Betreff: [basex-talk] Maven repo 9.0 > > &

[basex-talk] Maven repo 9.0

2018-03-27 Thread Marc van Grootel
Hi, First of all congrats with the release of the Spring edition. Nice steady pace of quality updates. I wanted to test 9.0 by getting it via de Maven coordinates but noticed that 9.0 wasn't available from the basex Maven repo. Only 9.0-SNAPSHOT and 9.0.1-SNAPSHOT. Is it possible to also make 9.

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

2017-06-21 Thread Marc van Grootel
No problem. Just use the validate:rng#3. Provide true() as the third param and it should happily process compact syntax for you. Getting includes to work is a different matter though so your schema should probably be standalone. Otherwise, maybe, store the schemas on the filesystem. Cheers, --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 wrote: > > Hello Joseph, > > to be hone

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Marc van Grootel
Hi, I was following this thread last week but couldn't chime in yet as I was inundated with work. I am, in a sense, lucky to be able to spend about 2/3 to 3/4 of my time on XQuery and XSLT. It used to be just XSLT but we started using XQuery more and nowadays it's predominantly XQuery (with Ba

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

2017-01-11 Thread Marc van Grootel
Hi Christian, Couldn't repro it with a command script, it got the expected behaviour each way I tried. However, I can repro it consistently in the GUI. GUI: 1. Create a new database 2. Point Input file or directory to an existing XML file, say, "F:/tmp/foo.xml" (haven't verified behaviour on Mac

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

2017-01-10 Thread Marc van Grootel
equirement is that '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 Tu

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

2017-01-10 Thread Marc van Grootel
Hi all, Happy new year btw! I got bitten by something and can't explain this behaviour. So the situation is that I have an XML file on the file system in F:/tmp/foo.xml I also have this file imported into a database named "foo" (and the path "/foo.xml". Now in the GUI (and on 8.5.3) I have the

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
50 PM, Christian Grün wrote: > Hi Marc, > > The reason is why this was decided by the W3C; see [1] and related comments. > > Sorry for that, > Christian > > [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=29723 > > > > On Mon, Oct 31, 2016 at 1:43 PM, Marc van Grootel

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

2016-10-31 Thread Marc van Grootel
Hi, Any reason why the deault semantics for map:merge in 8.6 changed in a backwards incompatible manner? Is this because of some XQuery/XPath spec thing? A while ago I switched to 8.6-SNAPSHOT just to be on the latest and greatest and I starting seeing weird things in my code. Initially I didn't b

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

2016-09-09 Thread Marc van Grootel
... just checked. When the node is from a document instance than serialize does keep whitespace (with or without xml:space). And this clears up a confusion I had about what an element constructor is and what a direct element constructor is. For fun I tried serialize(element e { ' ' }) which hap

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

2016-09-09 Thread Marc van Grootel
That clears up some things. However I wonder what the right interpretation is regarding xml:space. Doesn't this belong to parsing XML and is this then not dealt with by the parser before XQuery gets it. The XQuery spec talks specifically about a element constructor. I wouldn't have thought that thi

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
I'm currently dealing with CSV a lot as well. I tend to use the format=map approach but not nearly as large as 22 MB CSV yet. I'm wondering if, or how much more efficient it is to deal with this type of data as arrays and map data structures versus XML. For most processing I can leave serializing t

Re: [basex-talk] BaseX and Oxygen

2016-07-28 Thread Marc van Grootel
Well, lazyness is a virtue someone said a while ago, can't remember the name of that language though ;-) Yes, I meant the parsing of expressions. With connection I meant the Oxygen preference setting: XML/ XSLT-FO-XQuery / XQuery (it shows the configured connections). I will check out the XQJ rou

[basex-talk] BaseX and Oxygen

2016-07-28 Thread Marc van Grootel
Hi all, (sorry if this is too much off-topic) I re-read some of the related topics on this list. I have also installed the Argon plugin (very nice). I tried this several times in the past but everytime I went back to the BaseX gui. But I would like to be able to reduce my use of the BaseX gui an

Re: [basex-talk] Seeing this error a lot lately (since 8.5-snapshots)

2016-07-07 Thread Marc van Grootel
(8.5.1) will be due > next week. > > Cheers, > Christian > > [1] http://files.basex.org/releases/latest/ > > > > On Thu, Jul 7, 2016 at 10:38 AM, Marc van Grootel > wrote: >> Hi Dirk, >> >> I'll keep an eye on it. >> >> This morning

Re: [basex-talk] Seeing this error a lot lately (since 8.5-snapshots)

2016-07-07 Thread Marc van Grootel
ian (as always) immediately > fixed > it:https://github.com/BaseXdb/basex/commit/bd57211617cd831604850a8e8710bf1759c13330 > > I am not sure whether this has the same cause, but you might want to try > the latest snapshot. > > Cheers > Dirk > > On 07/06/2016 10:21 PM,

[basex-talk] Seeing this error a lot lately (since 8.5-snapshots)

2016-07-06 Thread Marc van Grootel
Hi, With the 8.5 branch i've started seeing the following error a lot lately. [XUDY0016] Documents in path 'docbook/chapters/mu.xml' can only be replaced once. This is the example function I used to trigger this. declare %updating function local:import() { for $file in file:li

Re: [basex-talk] Tagsoup on Web app

2016-06-24 Thread Marc van Grootel
Hi, I pull together BaseX and dependencies (including TagSoup) using a Gradle build script [1]. Haven't updated it for a while but it has all the dependency info and can be edited to use other BaseX versions etc. I use it all the time in my projects. Also works on all platforms that support Gradl

Re: [basex-talk] Basex on maven central

2016-05-13 Thread Marc van Grootel
Hi Lance, Just add http://files.basex.org/maven and optionally http://xqj.net/maven as additional repositories. I don't find this very inconvenient. This repo gets all the latest releases and snapshots right out of the oven. Not sure why it's not uploaded to Central anymore though. Cheers, --Mar

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

2016-04-25 Thread Marc van Grootel
y 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 wrote: > Checked with this new snapshot. It's still occurring. > Will do some more digging on monday. > > Thanks, > --Marc > > On Fri, Apr 22,

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

2016-04-22 Thread Marc van Grootel
t-in XQuery functions > (for-each, apply, ...)? Does your query run through with the new > snapshot [1]? > > [1] http://files.basex.org/releases/latest/ > > > > > On Fri, Apr 22, 2016 at 2:03 PM, Marc van Grootel > wrote: >> Hi, >> >> I'm sorry f

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

2016-04-22 Thread Marc van Grootel
Hi, I'm sorry for the vague report. I can do more digging but it's happening deep inside some code and it's hard to pinpoint. In 8.4.3 I get the following error message: [XPTY0004] Function must not be updating: %updating function($result,$tran In 8.4.2 and before the same code works as exp

Re: [basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
x/xml/xquery/XQDynamicContext.html > [3] > https://en.wikipedia.org/wiki/XQuery_API_for_Java#Default_data_type_mapping > > > On 5 Apr 2016, at 14:41, Marc van Grootel wrote: > >> Hi Christian, >> >> Thanks. Very curious to hear about XQJ's fate. >> &g

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 wrote: > Hi Marc, > > like you, I find the integration of XQuery results into other languages a > most interesting topic, and I think it is a topic deserv

Re: [basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
Hi Christian, Thanks. Very curious to hear about XQJ's fate. I am currently using BaseX for data integration which got me thinking about integration of XQuery in other web applications (node/python/clojure etc.). I was triggered by the recent thread about node-basex[1] and Hans Jürgen and your Ba

[basex-talk] XQJ status

2016-04-05 Thread Marc van Grootel
Hi, 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 not pass static validation. Is there way to get around that, say, when the result wo

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

2016-02-19 Thread Marc van Grootel
able in the snapshots and patch > versions. > > [1] http://docs.basex.org/wiki/XQuery_Module#xquery:eval > [2] http://files.basex.org/releases/latest/ > > > >> On 19 Feb 2016 07:10, "Marc van Grootel" wrote: >>> >>> Yes, exactly what I was

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 wrote: > > Hi Marc, > >> when running xquery:eval with a string it will try to resolve paths >> relative to the code module and not relative to the file the string >> came from. > > You

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

2016-02-18 Thread Marc van Grootel
Hi, I am having quite some fun with xquery:eval. I am working on a little module for executable documentation (similar to Python doctest). I want to write documentation in asciidoc, parse it and execute source code blocks inside the asciidoc. Parsing works by calling asciidocj and so far I can run

Re: [basex-talk] XProc 2 ...

2016-02-05 Thread Marc van Grootel
Well, I looked at it for a bit when Norm demonstrated his XProc "dialect" as he called it on his laptop at XML Amsterdam. Looked really good. I think this is a good thing. I always found XProc a fantastic idea but never got into it. Tried some simple things but found it too much work and didn't wr

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

2016-01-27 Thread Marc van Grootel
use it for OData requests from IIS. >> >> Need to dig through the source...but I used one oft the extract-binary >> functions >> >> Regards, Max >> >> Am 26.01.2016 16:04 schrieb "Marc van Grootel" >> : >>> >>> Well, s

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

2016-01-26 Thread Marc van Grootel
'm okay. Cheers, On Tue, Jan 26, 2016 at 3:13 PM, Marc van Grootel 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 nice

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

2016-01-26 Thread Marc van Grootel
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 nice to the web server). First attempt was to explicitly get the gz file via the URL and then treat it like a

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

2016-01-19 Thread Marc van Grootel
[1] http://files.basex.org/releases/latest/ > > > > On Mon, Jan 18, 2016 at 12:58 PM, Marc van Grootel > wrote: >> Hi Christian, >> >> Yes, I think so. I think MIXUPDATES=true could be the difference. I almost >> forgot about these as I always run basex

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

2016-01-19 Thread Marc van Grootel
uld also be insignificant, if you don't > have this and your client/server have a fast connection (i.e. on the > same server or the same network). > > Cheers > Dirk > > On 01/18/2016 11:49 PM, Marc van Grootel wrote: >> Hi, >> >> I'm considering to w

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

2016-01-18 Thread Marc van Grootel
Hi, I'm considering to write a web layer for BaseX based in Clojure. It may be a somewhat longer term project but I would like to bring XML and BaseX closer to Clojure programming. Clojure web apps usually are able to run under various servers/containers (Jetty/Netty etc.) and I would like to be a

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 Cc: BaseX Subject: Re: [basex-talk] xquery:eval bug? Hi Marc, It runs fine on my environment. Could you give me

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

2016-01-18 Thread Marc van Grootel
http://files.basex.org/releases/latest/ > > > > On Thu, Jan 14, 2016 at 11:17 PM, Marc van Grootel > wrote: >> Hi, >> >> I'm trying to return a map or an array from xquery:eval. Seems this is >> not possible, yet the signature says it returns item()* &g

[basex-talk] xquery:eval bug?

2016-01-14 Thread Marc van Grootel
Hi, I'm trying to return a map or an array from xquery:eval. Seems this is not possible, yet the signature says it returns item()* xquery:eval('1 + 1') => 2 xquery:eval('[1,2]') => ERROR: [FOTY0014] Items of type array(*) have no string representation. xquery:eval('map { "x": 10 }') =

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

2016-01-13 Thread Marc van Grootel
The compliment is well-deserved ;-) Yes, after my mind settled down on what I wrote, I realized this too. The annotation nor the anonymous function itself (a partial could have served the same function) wasn't necessary. So it's just plain cool instead of very cool. It was mostly my sudden enthou

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

2016-01-12 Thread Marc van Grootel
Hi, Been a long time since posting. Work is very busy recently. Luckily for me a lot of it involves XQuery ;-) I am elaborating some examples [1] that show off the use of my Origami [2] library. The most promising ones I will turn in to blog posts or a wiki at some point. Recently I've been read

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

2015-10-22 Thread Marc van Grootel
Hi, Wouldn't clj-ds [1] be of any help in this? It has support for transients.I believe that Exist uses this somewhere in their code not sure where. I think it makes use of these Atomic* objects under the hood but providing a "functional" facade. btw I'm not speaking from experience with this libr

Re: [basex-talk] Strange behaviour running unit test suites

2015-10-11 Thread Marc van Grootel
such an exception (but I only experimented > with Windows). Could you possible do some more experiments and tell us > how to reproduce it? > > Thanks, > Christian > > > On Sun, Oct 4, 2015 at 4:37 PM, Marc van Grootel > wrote: >> Hi, >> >> Just noticed this o

[basex-talk] Strange behaviour running unit test suites

2015-10-04 Thread Marc van Grootel
Hi, Just noticed this on 8.3 I have multiple unit test suites in a test folder. When I run `basex -t test` or `basex -t test/` all suites are run (no errors) But when I try to run hem with something like `basex -t test/*.xqm` the test runner stops after the first suite with the following messag

[basex-talk] Origami presentation XML Amsterdam

2015-09-29 Thread Marc van Grootel
Hi, Anyone on the list coming to Amsterdam the 6th of November? We may have some beers together. I will (finally) be presenting on the Origami templating library. I'm still working on it over on Github (in the unstable branch). After a pause in development it was almost completely rewritten. I

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

2015-08-15 Thread Marc van Grootel
e this helps, > Christian > > > > On Sat, Aug 15, 2015 at 3:47 PM, Marc van Grootel > wrote: >> Hi, >> >> Unless I'm not reading the spec[1] correctly then the following two >> snippets should have the same result: >> >> Example

[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] HTTP response and raising error()

2015-08-13 Thread Marc van Grootel
Hi Christian and Dirk, >> Nothing major but I was wondering what the thinking was behind >> returning a 400 when fn:error is raised. Basically that says "client, >> your mistake not mine" where in most cases I guess a 500 would be more >> appropriate. > > The rationale behind this was that a REST

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

2015-08-13 Thread Marc van Grootel
ould be a breaking change it might be wise to delay the > switch until BaseX 9. Or, of course, there are indeed some reasons why this > is 400. > > Cheers > Dirk > > On 08/13/2015 03:06 PM, Marc van Grootel wrote: > > Hi, > > Nothing major but I was wondering what t

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

2015-08-13 Thread Marc van Grootel
Hi, Nothing major but I was wondering what the thinking was behind returning a 400 when fn:error is raised. Basically that says "client, your mistake not mine" where in most cases I guess a 500 would be more appropriate. Where is this decided (RESTXQ?) and is there an easy way to change the statu

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
age to do so ;-) >> >> >> >> On Tue, Aug 4, 2015 at 11:05 AM, Christian Grün >> 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

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
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 >> wrote: >> > I've double checked the version and manuall

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
, Christian Grün 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 > wrote: &g

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:724) On Tue, Aug 4, 2015 at 10:48 AM, Marc van Grootel wrote: > Hi Christian, > > I pulled it via the Maven repo using Gradle. It says BaseX 8.3 beta 7f8299f. > Maybe that doesn't carry the late

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
Hi Christian, I pulled it via the Maven repo using Gradle. It says BaseX 8.3 beta 7f8299f. Maybe that doesn't carry the latest? Re format name suggestions: format=item (not good, includes XML nodes), format=function (correct per http://www.w3.org/TR/xpath-datamodel-31/#types-representation as it

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
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 at 10:16 AM, Marc van Grootel wrote: > A last point I woul

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
d leave it up to the server 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

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Marc van Grootel
Hi Christian, Super-fast as always ;-) I'm still struggling though. Couple of points I have this RESTXQ function that I'm trying to get working. declare %rest:POST("{$query}") %rest:path("/json") %rest:consumes("application/json") %rest:produces("application/json") %input:json(

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
behaviour would 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 wrote: > Hi Christian, > > No luck. > > I'm using

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
Hi Christian, No luck. I'm using Postman. I already had Content-Type = application/json and Accept = application/json. I tried changing it to application/json;format=map (btw do you think it's necessary to have the basex/restxq specific pseudo attributes (format= etc) in the HTTP request headers?

[basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
Hi, I am working on some REST API code and I'm struggling with POSTing of JSON. What I want to achieve is to have the function receive an XDM map (from JSON using fn:parse-json). I also want to output from such a map (in effect roundtripping some JSON). The test POST body I'm using is: {"fo

Re: [basex-talk] Union of maps?

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

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 wrote: > > Hi -- > > In BaseX 8.2.1, I have a bunch of maps; the maps may have som

Re: [basex-talk] RESTXQ accept/produces issue

2015-04-22 Thread Marc van Grootel
given.. Which version have you been using? Does it occur > with the latest snapshot? > > Thanks in advance, > Christian > > > On Tue, Apr 21, 2015 at 2:05 PM, Marc van Grootel > wrote: >> Hi, >> >> I spend a couple of hours pulling my "hair" before I r

[basex-talk] RESTXQ accept/produces issue

2015-04-21 Thread Marc van Grootel
Hi, I spend a couple of hours pulling my "hair" before I realized what was going on here. Question: what happens when I call a RESTXQ function which has a rest:produces('application/xml') annotation but the request does not have a Accept header? This is what HTTP 1.1 spec[1] says about that:

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 wrote: > Sure, I'm going to try this evening. If it's indeed Saxon we would >

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

2015-04-08 Thread Marc van Grootel
nd the complete stack trace seems to indicate > that something is going wrong in Saxon. – However, I can also have a > look at this if you send me an SSCCE for that bug. > > Best, > Christian > > > > On Wed, Apr 8, 2015 at 2:18 PM, Marc van Grootel > wrote: >> Hi,

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

2015-04-08 Thread Marc van Grootel
Hi, I have hit something which is related to Saxon XSLT. The XSLT in question runs fine standalone (via Oxygen). But when hooked up via RESTXQ I get the type of tracebacks (i've listed all traceback from where it enters Saxon code below). Although I don't have a full repro case I did manage to ma

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

2015-03-31 Thread Marc van Grootel
t:ignore is one of them (w/o checking the sources). Christian is > out of town at the moment, so it might take a week before we get back to > you. > > Cheers, > Lukas > > On Mon, Mar 30, 2015 at 10:14 PM, Marc van Grootel > wrote: >> >> Hi, >> >> Co

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

2015-03-30 Thread Marc van Grootel
Hi, Could it be that %unit:ignore("message") is broken since 8.0. Whenever I use a message in the annotation my tests fail with this error message: %unit:ignore: 1 argument supplied. When ("mesage") is removed the test is ok. Documentation let's me believe %unit:ignore("message") i

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

2015-03-21 Thread Marc van Grootel
Hi, When running tests from the GUI I sometimes insert debugging code to figure out which tests fails or why. The current behavior of the GUI makes this impossible though because when tests are run this info is printed to the Query Info window but immediately after tests are run it prints the test

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

2015-03-21 Thread Marc van Grootel
Hi Christian, Not sure what else. I'm only starting to delve into this area and I'm not sure what else would be helpful. In general I'm looking at creating a small REST atompub service that handles authentication and this was one of the missing pieces I encountered. Cheers, On Sat, Mar 14, 2015

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

2015-03-21 Thread Marc van Grootel
Hi, I think I found a bug in 8.0.3 (and earlier) declare function local:shortcircuit($a) { if ($a castable as xs:double and xs:double($a) gt 0) then $a else () }; local:shortcircuit('foo') => [FORG0001] Cannot cast to xs:double: "foo". In http://www.w3.org/TR/xpath/#booleans

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

2015-03-14 Thread Marc van Grootel
Hi, Maybe I'm missing something but I cannot find the XQuery way to get access to the logged in user from a web application using RESTXQ. The servlet request object has getRemoteUser and Exist, for example, has xmldb:get-current-user and Marklogic has xdmp:get-current-user. I don't need to know

Re: [basex-talk] DITA project

2015-03-13 Thread Marc van Grootel
Hi France, If you really need multi-branching if then else the language doesnt require increasing indentation. if (cond1) then expr1 else if (cond2) then expr2 else expr3 In my opinion this is just as good as using switch, i've seen examples like this even in the spec. Of course read

Re: [basex-talk] DITA project

2015-03-12 Thread Marc van Grootel
Hi France, Typeswitch is not the right tool for this. From the spec: [74]TypeswitchExpr ::= "typeswitch" "(" Expr ")" CaseClause+ "default" ("$" VarName)? "return" ExprSingle [75]CaseClause ::= "case" ("$" VarName "as")? SequenceTypeUnion "return" ExprSing

Re: [basex-talk] Repo and development workflow

2015-02-19 Thread Marc van Grootel
Oh no I wouldn't. --Marc On Thu, Feb 19, 2015 at 12:04 PM, Christian Grün wrote: >> In gradle.properties I define system properties and then in a Gradle >> build script I invoke a JavaExec task with the system properties. > > So, if I get it right, the repo path will be set at startup time. But >

Re: [basex-talk] Repo and development workflow

2015-02-19 Thread Marc van Grootel
In gradle.properties I define system properties and then in a Gradle build script I invoke a JavaExec task with the system properties. task http(type: JavaExec) { classpath configurations.basex main = "org.basex.BaseXHTTP" systemProperties System.getProperties() } --Marc On Thu, Feb

Re: [basex-talk] Repo and development workflow

2015-02-19 Thread Marc van Grootel
Hi Christian, Yes, I figure just doing a quick REPO UPDATE where it goes and checks the repo dir for modules and registers them if necessary would be perfect. I figure when I change the repo path before running this it would pick up the modules from the new directory? Thus, so to speak, being able

Re: [basex-talk] Static files in other places than /static/* without modifying WEB-INF/web.xml ?

2015-02-19 Thread Marc van Grootel
Hi, Is there anything that can be said about the performance of handling static file serving via XQuery versus letting Jetty deal with it? I have toyed with this idea as well but in the back of my head it says that it's slow compared to Jetty static file serving. Haven't done any perf. testing tho

Re: [basex-talk] BaseX in maven

2015-02-18 Thread Marc van Grootel
Hi Christian, Yes indeed. This solves it. I removed the reference to the exist maven repo from the build script. Thanks, --Marc On Wed, Feb 18, 2015 at 9:30 AM, Christian Grün wrote: > Hi Marc, > > I'm working up last week's mails; here's finally some feedback ;) > >> I looked at the metadata

[basex-talk] Repo and development workflow

2015-02-17 Thread Marc van Grootel
Hi, As part of the basex-gradle-starter scripts [1] I am now looking at how to deal with the repo. Until now I have always developed by putting modules under webapp. It allows to just edit a file and query away. I like to have the same workflow during development and take advantage of having mod

Re: [basex-talk] BaseX in maven

2015-02-16 Thread Marc van Grootel
I transferred the basex-gradle-starter repo to our organization. Old links will keep working for a while but the official location will now be: https://github.com/theapsgroup/basex-gradle-starter --Marc On Fri, Feb 13, 2015 at 10:27 PM, Marc van Grootel wrote: > Hi, > > I've cr

[basex-talk] Fwd: BaseX in maven

2015-02-16 Thread Marc van Grootel
I'm sending this again as my first try it didn't get picked up on the list. --Marc -- Forwarded message ------ From: Marc van Grootel Date: Fri, Feb 13, 2015 at 12:00 PM Subject: Re: [basex-talk] BaseX in maven To: BaseX Hi, I have dealt with various ways to include

Re: [basex-talk] BaseX in maven

2015-02-13 Thread Marc van Grootel
Hi, I've created a simple starter build script for BaseX 8.0 with Gradle and Saxon 9.6. See https://github.com/xokomola/basex-gradle-starter Not a full-fledged build script yet but does illustrate how to set things up. Just follow the one-step installation instruction and you should be good to go

Re: [basex-talk] How to associate catalog.xml with validate function

2015-01-26 Thread Marc van Grootel
Yes, that makes sense. I forgot that I can just point to an app specific catalog which then references the other catalogs that I need and I can easily modify lookup by modifying this main app catalog. Cheers, --Marc On Mon, Jan 26, 2015 at 2:06 PM, Marc van Grootel wrote: > No I didn'

Re: [basex-talk] How to associate catalog.xml with validate function

2015-01-26 Thread Marc van Grootel
ge d'origine- > De : basex-talk-boun...@mailman.uni-konstanz.de > [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Marc van > Grootel > Envoyé : lundi 26 janvier 2015 13:56 > À : BaseX > Objet : Re: [basex-talk] How to associate catalog.xml with validate

Re: [basex-talk] How to associate catalog.xml with validate function

2015-01-26 Thread Marc van Grootel
Sorry, for the no subject, lost it somewhere On Mon, Jan 26, 2015 at 1:53 PM, Marc van Grootel wrote: > Hi, > > I'm trying to run validations on XML files that use DTD doctype > declarations (DITA), I have a catalog.xml that contains the correct > references for the e

[basex-talk] (no subject)

2015-01-26 Thread Marc van Grootel
Hi, I'm trying to run validations on XML files that use DTD doctype declarations (DITA), I have a catalog.xml that contains the correct references for the entity resolver. DITA schemas refer to other entities but I have no control over where it loads them from so I get "Failed to read schema docum

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
Hi, Seems to work fine. At least, I didn't introduce any issues that weren't already there. I didn't find the email address of the maintainer I attach the file to this post. I have checked on recent snapshot of 8.0 and 7.9. If you want me to submit it differently or have me create a pull request

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
:05 PM, Marc van Grootel wrote: > ah, of course, I can always take a look at > https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/api/BaseXClient.java > > I'll have another go at it then. > > --Marc > > On Mon, Dec 29, 2014

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
ah, of course, I can always take a look at https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/api/BaseXClient.java I'll have another go at it then. --Marc On Mon, Dec 29, 2014 at 4:57 PM, Marc van Grootel wrote: > ... or maybe there's som

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
... or maybe there's some client code that is already updated, then I could take a look at that. --Marc

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
tle bit of guidance. Sorry if I sound like a noob on this crypto stuff ;-) [1]: http://docs.basex.org/wiki/Server_Protocol#Authentication On Mon, Dec 29, 2014 at 2:54 PM, Marc van Grootel wrote: > Hi Andreas, > > Maybe that is a better way but I am using the client from within a >

Re: [basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
le for Python for accessing Base-X content through the WebDAV > port using standard file operation methods as you know it from Python. > > > Andreas > > Marc van Grootel wrote: >> Hi, >> >> Anyone using the python client. I used it before, I think it was >> wi

[basex-talk] Python client and BaseX 8.0

2014-12-29 Thread Marc van Grootel
Hi, Anyone using the python client. I used it before, I think it was with 7.9, where it was still working. But now on a recent snapshot I cannot get my example to work anymore. I will report to maintainer but I would like to know if anyone could confirm having difficulties too. Anything changed i

[basex-talk] What's the best way to do some qualitative benchmarking?

2014-12-27 Thread Marc van Grootel
Hi, For a few new blog posts I'm working on some examples where I compare traditional XQuery code with an Origami example. I am not looking for scientific answers but I do want to be able to do a more or less fair comparison. I noticed that when running code from the GUI timings can be quite dif

  1   2   >