~nbrinza/zorba/parse-fragment

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/collections/edit/edit_collection_016.xq

  • Committer: Nicolae Brinza
  • Date: 2013-01-14 19:40:55 UTC
  • mfrom: (10477.1.705 zorba)
  • Revision ID: nbrinza@gmail.com-20130114194055-iss55cpxu2xe0ug6
Merged with Zorba trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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";
 
3
 
 
4
import module namespace ns = "http://www.example.com/example" at "../collection_001.xqdata";
 
5
 
 
6
ddl:create(xs:QName("ns:collection-objects"));
 
7
 
 
8
dml:insert(xs:QName("ns:collection-objects"), { "foo" : { "bar" : 1 } });
 
9
 
 
10
dml:edit(dml:collection(xs:QName("ns:collection-objects"))("foo"), { "bar" : 2 });