confused
Wednesday, 8 October 2014 · 2 messages
RS
Rob Stapper8 Oct 2014 17:34 #
Hi,
I'm confused. The code below results in false() for $e1 and true() for $e2.
Shouldn't both be false?
I must be overlooking something.
Can somebody enlighten me, please?
let $node := <node ID="X"><node ID="Y"/></node>
let $e1 := exists( trace( $node/node[ ./@ID = "Z"], 'node: '))
let $e2 := exists( $node/node[ ./@ID = "Z"] )return ( $e1, $e2)
Thnx in advance,
Rob Stapper
---
Dit e-mailbericht bevat geen virussen en malware omdat avast! Antivirus-bescherming actief is. http://www.avast.com
CG
Christian Grün8 Oct 2014 18:35 #
Hi Rob,
thanks for reporting this bug, which seems to have been introduced by a recent (..I dare say) optimization.
It will be fixed soon.
Christian
Quoted text · Rob Stapper · 41 lines
On Wed, Oct 8, 2014 at 5:34 PM, Rob Stapper <r.stapper at lijbrandt.nl> wrote: > Hi, > > > > I’m confused. The code below results in false() for $e1 and true() for $e2. > > Shouldn’t both be false? > > I must be overlooking something. > > Can somebody enlighten me, please? > > > > > > let $node := <node ID="X"><node ID="Y"/></node> > > let $e1 := exists( trace( $node/node[ ./@ID = "Z"], 'node: ')) > > let $e2 := exists( $node/node[ ./@ID = "Z"] ) > > return ( $e1, $e2) > > > > > > Thnx in advance, > > Rob Stapper > > > ------------------------------ > <http://www.avast.com/> > > Dit e-mailbericht bevat geen virussen en malware omdat avast! Antivirus > <http://www.avast.com/> actief is. > >
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery