BaseXdb / basex

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

XQuery 3.1: Better support for XQuery Update #1530

Closed ChristianGruen closed 6 years ago

ChristianGruen commented 6 years ago

Allow more expressions to be updating:

…provided that XQUF 1.0 constraints will not be violated.

1. Example (works already in BaseX 8.x):

(<a/>, <b/>) ! fn:put(., name() || '.xml')

2. Example:

copy $c := <a/>
modify (insert node "A" into $c)
return fn:put($c, 'result.xml')

Introduce new Updating Module

Updating variants of higher-order functions:

Other functions:

ChristianGruen commented 6 years ago

Documentation Update Module: http://docs.basex.org/wiki/Update_Module