On 15.10.2012 12:56, Maximilian Gärber wrote:
when you do not want the children of an item, try the except() function.
Something like:
let $items := doc('catalog')//*:article for $i in $items return $i except ($i/*:article)
would give you the shallow results
True in principle, but I won't be able to dive into the acticles later.