1
import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";
2
import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";
4
import module namespace ns = "http://www.example.com/example" at "../collection_001.xqdata";
6
ddl:create(xs:QName("ns:collection-objects"));
8
dml:insert(xs:QName("ns:collection-objects"), { "foo" : { "bar" : 1 } });
10
dml:edit(dml:collection(xs:QName("ns:collection-objects"))("foo"), { "bar" : 2 });