BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 267 forks source link

XQuery: Boolean comparisons in simple maps #2271

Closed ChristianGruen closed 5 months ago

ChristianGruen commented 5 months ago
some $a in $node/a
satisfies boolean($a)

…is rewritten to…

$node/a ! true() = true()

…and can be further simplified to…

exists($node/a)