BaseX 7.9: The Summer Edition

Friday, 27 June 2014 · 5 messages · last reply 29 Jun 2014
CG
Christian Grün27 Jun 2014 17:27 #

Dear subscribers,

in the midst of summertime, we provide you with a great new version of BaseX, our XML database system and XQuery 3.0 processor! This is what you get:

XQUNIT - Unit testing has been improved a lot. All test functions will now be evaluated separately; this way, updates can be performed within test. - with the new TEST command, all test modules in a specified directory can be evaluated. - tests can be invoked from within the GUI editor and project view. - on command-line, the -t flag can be used for the same purpose.

RESTXQ - Custom HTTP methods can be defined via %rest:method - Error handling has been improved and aligned with try/catch

REST - The "run" operation allows execution of server-side command scripts

DATABASE MODULE - parsing options added to db:create, db:add and db:replace

As usual, various minor bugs and inconsistencies have been fixed in the latest version; check out our documentation and the GitHub history for more details!

The latest version is available at http://basex.org. We are looking forward to your feedback,

Christian BaseX Team

AB
Andy Bunce28 Jun 2014 13:11 #

Hi Christian,

Looking good. One minor issue, the *two* argument form of session:get [1] with a default seems to be broken.

[XPST0017] Java function 'org.basex.modules.Session:get' is not found.

Also regarding the wiki session documentation: The session get/set functions are documented as only taking string values but, usefully, they will take other data such as nodes. Is this a stable feature, that should be documented?

/Andy

[1] http://docs.basex.org/wiki/Session_Module

Quoted text · Christian Grün · 35 lines
On 27 June 2014 16:27, Christian Grün <christian.gruen at gmail.com> wrote: > Dear subscribers, > > in the midst of summertime, we provide you with a great new version > of BaseX, our XML database system and XQuery 3.0 processor! > This is what you get: > > XQUNIT > - Unit testing has been improved a lot. All test functions will now be > evaluated separately; this way, updates can be performed within test. > - with the new TEST command, all test modules in a specified directory > can be evaluated. > - tests can be invoked from within the GUI editor and project view. > - on command-line, the -t flag can be used for the same purpose. > > RESTXQ > - Custom HTTP methods can be defined via %rest:method > - Error handling has been improved and aligned with try/catch > > REST > - The "run" operation allows execution of server-side command scripts > > DATABASE MODULE > - parsing options added to db:create, db:add and db:replace > > As usual, various minor bugs and inconsistencies have been fixed in > the latest version; check out our documentation and the GitHub > history for more details! > > The latest version is available at http://basex.org. > We are looking forward to your feedback, > > Christian > BaseX Team >
CG
Christian Grün29 Jun 2014 14:30 #

Hi Andy,

Quoted text · Andy Bunce · 2 lines
> Looking good. One minor issue, the two argument form of session:get [1] > with a default seems to be broken.

good catch; for some reason, the implementation of this function was set to private. I have just fixed this in the latest snapshot.

Quoted text · Andy Bunce · 3 lines
> Also regarding the wiki session documentation: The session get/set functions > are documented as only taking string values but, usefully, they will take > other data such as nodes.

I couldn't reproduce this so far; do you have an example?

Christian

AB
Andy Bunce29 Jun 2014 16:51 #

I do not have aproblem with functionality, it is just a documentation problem - I think http://docs.basex.org/wiki/Session_Module#session:get and set should say *session:get*($key as xs:string) as item() or similar /Andy

Quoted text · Christian Grün · 18 lines
On 29 June 2014 13:30, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Andy, > > > Looking good. One minor issue, the two argument form of session:get [1] > > with a default seems to be broken. > > good catch; for some reason, the implementation of this function was > set to private. I have just fixed this in the latest snapshot. > > > Also regarding the wiki session documentation: The session get/set > functions > > are documented as only taking string values but, usefully, they will take > > other data such as nodes. > > I couldn't reproduce this so far; do you have an example? > > Christian >
CG
Christian Grün29 Jun 2014 17:31 #
Quoted text · Andy Bunce · 6 lines
> I do not have aproblem with functionality, it is just a documentation > problem - I think > http://docs.basex.org/wiki/Session_Module#session:get and set > should say > session:get($key as xs:string) as item() > or similar

True; I have fixed the docs.

Thanks, Christian

Quoted text · Andy Bunce · 24 lines
> /Andy > > > On 29 June 2014 13:30, Christian Grün <christian.gruen at gmail.com> wrote: >> >> Hi Andy, >> >> > Looking good. One minor issue, the two argument form of session:get [1] >> > with a default seems to be broken. >> >> good catch; for some reason, the implementation of this function was >> set to private. I have just fixed this in the latest snapshot. >> >> > Also regarding the wiki session documentation: The session get/set >> > functions >> > are documented as only taking string values but, usefully, they will >> > take >> > other data such as nodes. >> >> I couldn't reproduce this so far; do you have an example? >> >> Christian > >

⚡Generated with XQuery