Re: [basex-talk] rest:response and status 400/404

2014-04-16 Thread Marco Lettere
Hi Dirk, 8.2. I'll try the latest. Thanks, M. On 04/15/2014 08:13 PM, Dirk Kirsten wrote: Hi Marco, what BaseX version are you using? Did you try with the latest snapshot? Cheers, Dirk On 15/04/14 13:48, Marco Lettere wrote: Hi Dirk, this is the output I get when using curl (same as

Re: [basex-talk] Full text score with or

2014-04-16 Thread Andy Bunce
Hi Christian, Thanks, that works for me. I always prefer less complex code :-) so it would be nice if this feature made a return at some point. Regards /Andy On Fri, Apr 11, 2014 at 12:04 PM, Christian Grün christian.gr...@gmail.comwrote: Hi Andy, as we haven't managed so far to formalize

[basex-talk] Order of nodes in reversed axes

2014-04-16 Thread José Tomás Atria
Hello all, I've been looking for an authoritative answer to this, but have been unable to find one. I'm trying to reliably get the nearest ancestor of a node. ie with this test data: let $test := element test { attribute id { 4 }, element test { attribute id { 3 }, element test {

Re: [basex-talk] Order of nodes in reversed axes

2014-04-16 Thread David Rudel
Mr. Atria, You left out a key element from the answer you got from stack overflow. Note that Dimitre's response used a filter expression (path expression) [predicate] not a simple path expression The ()s are critical. $test//child/ancestor-or-self::test[ last() ] is very different from

Re: [basex-talk] Order of nodes in reversed axes

2014-04-16 Thread David Rudel
More specifically, I don't understand what the difference is between nearest ancestor element and parent. On Wed, Apr 16, 2014 at 8:45 PM, David Rudel fwqhg...@gmail.com wrote: Mr. Atria, You left out a key element from the answer you got from stack overflow. Note that Dimitre's response

Re: [basex-talk] Order of nodes in reversed axes

2014-04-16 Thread José Tomás Atria
Thank you all for your answers. I was just tryig to determine if $test/ancestor::element()[1] would be the correct way of getting the nearest ancestor, as I couldn't find whether axes were ordered or not in the xpath specification. Thanks! ps: Parent doesn't apply, because the relevant node is

Re: [basex-talk] Order of nodes in reversed axes

2014-04-16 Thread David Rudel
I apologize if I'm being dense, but I don't understand how the nearest ancestor can be anything other than the parent. Could you please give an example? I just want to make sure I haven't sent you off with the wrong expression for your intended usage. On Wed, Apr 16, 2014 at 8:48 PM, José Tomás

Re: [basex-talk] Order of nodes in reversed axes

2014-04-16 Thread José Tomás Atria
let $test := element div0{ attribute id { 4 }, element div1 { attribute id { 3 }, element div1 { attribute id { 2 }, element para { attribute id { 1 }, element child { } } } } } I want to get the smallest div1 for a given child. this is, the