Re: [basex-talk] http PUT

2014-11-13 Thread Arve Gengelbach
Hi Peter, in additon to Marco’s remark, you could also provide your own functionality via [RESTXQ]. cheers Arve [RESTXQ] http://docs.basex.org/wiki/RESTXQ#HTTP_Methods On 13 Nov 2014, at 10:06, Marco Lettere marco.lett...@dedalus.eu wrote: Hi Peter, you could check out the documentation

Re: [basex-talk] StaticFunc expression: no updating expression allowed with db:add()

2014-06-25 Thread Arve Gengelbach
Hi, How about adding a %updating to the function’s annotation: declare %updating function cmd:adToDb(...) {...} Hope this helps, Arve On 25 Jun 2014, at 20:30, Daum, Simon simon.d...@tum.de wrote: Hi there, I have a question about the db:add() function if it is included in a xquery

Re: [basex-talk] How to change processor to Saxon

2014-05-27 Thread Arve Gengelbach
If you are using the zip distribution you can e.g. manually edit the start scripts located in etc folder. These files are as [BaseX Startscript]. Adjusting the $CP variable should do it. Hope this helps, Arve [BaseX Startscript] https://github.com/BaseXdb/basex/blob/master/basex-core/etc/basex

Re: [basex-talk] 7.8.2 application on Mac OS X

2014-04-24 Thread Arve Gengelbach
Hi, Indeed it is easy. Just added a pull request to homebrew: https://github.com/Homebrew/homebrew/pull/28686 The new version should be available soon via brew. cheers Arve On 24 Apr 2014, at 17:35, Dirk Kirsten d...@basex.org wrote: Hello Johan, sure, I think so. Jens normally does this,

Re: [basex-talk] Namespaces ...

2014-03-21 Thread Arve Gengelbach
Hi Marco, you could generate this list using the functions fn:in-scope-prefixes#1 and fn:namespace-uri-for-prefix#2 As far as I know there is no such function. But maybe I am wrong – as there is plenty of undiscovered features in BaseX :) hope this helps Arve On 21 Mar 2014, at 09:58, Marco

Re: [basex-talk] Return file source of a given node?

2014-02-28 Thread Arve Gengelbach
Hi Constantine, the query /article[@id = '123']/base-uri() should return for each matching article the name of document in the database or name of file on disk. cheers Arve On 28 Feb 2014, at 11:35, Hondros, Constantine (ELS-AMS) c.hond...@elsevier.com wrote: Hello all, So, I am using

Re: [basex-talk] A free-form XQuery through RESTXQ?

2014-01-11 Thread Arve Gengelbach
Hi Neven, have a look at the [XQuery Module] especially at xquery:eval() or xquery:evaluate() to evaluate a given string. For security reasons you should perhaps bind your database as context, e.g. xquery:eval($query, map{ '' := db:open('crobib') }) If you’d just want to allow XPathes, you

Re: [basex-talk] what's wrong with this updating function?

2013-12-11 Thread Arve Gengelbach
Hi easy, try this: let $path:=substring('5102108843434',1,3)||'/'||'test' let $test := 'ehr/v1/1382968159350/12001.xml' for $x in doc($test)//header[id=12001] return ( db:output('ok,path='||$path), insert node ( 'text', etest/e ) into $x ) This puts the insert statement into

Re: [basex-talk] Set Operator Examples

2013-09-26 Thread Arve Gengelbach
I had a typo in my example. The return did not call the map2 version. With it, the results were (now on 7.7 and Windows 7) And I posted the wrong version. Usage of ! within map:new() is not as fast as a flowr expression (in general). BUT neither of the “fastest two” functions yields valid

Re: [basex-talk] Set Operator Examples

2013-09-25 Thread Arve Gengelbach
Hej Arto, just being interested: How does it compare to a FLOWR expression? declare function local:difference-flowr($a, $b) { for $x in $a where not($x = $b) group by $x return $x[1] }; cheers Arve Am 25.09.13 07:22 schrieb Arto Viitanen: Question was about set operations in BaseX. I

Re: [basex-talk] Set Operator Examples

2013-09-25 Thread Arve Gengelbach
[Simple map operator] http://www.w3.org/TR/xquery-30/#id-map-operator Am 25.09.13 10:41 schrieb Arto Viitanen: -Original Message- From: Arve Gengelbach [mailto:a...@basex.org] Sent: 25. syyskuuta 2013 9:08 To: Arto Viitanen Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex

Re: [basex-talk] Efficiencies for batching

2013-08-13 Thread Arve Gengelbach
list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- Arve Gengelbach, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander

Re: [basex-talk] Processor for xsl.fo to create a pdf output

2013-05-24 Thread Arve Gengelbach
-konstanz.de/mailman/listinfo/basex-talk -- Arve Gengelbach, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax

Re: [basex-talk] Bug (?): Document damaged after db upload

2013-03-23 Thread Arve Gengelbach
or her directly. ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- Arve Gengelbach, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz

Re: [basex-talk] unzip

2013-01-13 Thread Arve Gengelbach
-and-other-zipped-xml-documents-in-marklogic/ What's the easiest way to do this sort of thing in basex? thanks .. Jason ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- Arve

Re: [basex-talk] example .basexperm files please

2013-01-09 Thread Arve Gengelbach
___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk -- Arve Gengelbach, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285