BaseXdb / basex

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

XQUF: Multiple target nodes #2297

Closed ChristianGruen closed 6 months ago

ChristianGruen commented 6 months 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 6 months ago

Documentation updated.