BaseXdb / basex

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

XQUF: Multiple target nodes #2297

Closed ChristianGruen closed 1 month ago

ChristianGruen commented 1 month ago

Various expressions of XQUF require targets to be single nodes. For example, the following queries are invalid:

replace node //multiple-results with <b/>
insert node <a/> into //multiple-results
rename node //multiple-results as 'b'

This restriction should be lifted to make FLWOR/simple map expressions superfluous:

for $a in //a return replace node $a with <b/>
//a ! (replace node . with <b/>)

→ replace node //a with <b/>
ChristianGruen commented 1 month ago

Documentation updated.