From ihe.onwuka at gmail.com Thu Jun 12 12:10:58 2014 From: ihe.onwuka at gmail.com (Ihe Onwuka) Date: Thu, 12 Jun 2014 20:10:58 +0100 Subject: [xquery-talk] cast the dutchie on the right hand side Message-ID: So I naively thought I'd try xquery version "3.0"; ('1999-12-31','2003-11-04') / castable as xs:date because I am dealing with dirty data that shouldn't but sometimes contains more than one date field. Am wondering what is so objectionable about mapping a Boolean operator over a sequence? -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.gruen at gmail.com Thu Jun 12 12:34:28 2014 From: christian.gruen at gmail.com (=?ISO-8859-1?Q?Christian_Gr=FCn?=) Date: Thu, 12 Jun 2014 21:34:28 +0200 Subject: [xquery-talk] cast the dutchie on the right hand side In-Reply-To: References: Message-ID: This should help you: ('1999-12-31','2003-11-04') ! (. castable as xs:date) On Thu, Jun 12, 2014 at 9:10 PM, Ihe Onwuka wrote: > So I naively thought I'd try > > xquery version "3.0"; > > ('1999-12-31','2003-11-04') / castable as xs:date > > because I am dealing with dirty data that shouldn't but sometimes contains > more than one date field. > > Am wondering what is so objectionable about mapping a Boolean operator over > a sequence? > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From ihe.onwuka at gmail.com Wed Jun 18 17:23:11 2014 From: ihe.onwuka at gmail.com (Ihe Onwuka) Date: Thu, 19 Jun 2014 01:23:11 +0100 Subject: [xquery-talk] Checking a collection for more or last Message-ID: Aside from counting the nodes a priori and then comparing as you iterate, is there any other way of checking to see if you are on the last node in a collection. As I read the docs the following axes and last() are not operative across documents (i.e at the collection level). -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.gruen at gmail.com Fri Jun 27 08:29:08 2014 From: christian.gruen at gmail.com (=?utf-8?Q?Christian_Gr=C3=BCn?=) Date: Fri, 27 Jun 2014 17:29:08 +0200 Subject: [xquery-talk] BaseX 7.9: The Summer Edition In-Reply-To: References: Message-ID: Dear XQuery aficionados, in the midst of summertime, we provide you with a 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