Merge lp:~zorba-coders/zorba/bug-1189862 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Paul J. Lucas
Approved revision: 11682
Merged at revision: 11666
Proposed branch: lp:~zorba-coders/zorba/bug-1189862
Merge into: lp:zorba
Diff against target: 28151 lines (+8471/-10412)
531 files modified
doc/cxx/examples/context.cpp (+2/-2)
doc/zorba/data_lifecycle.dox (+27/-27)
doc/zorba/link_crawler2.dox (+1/-1)
doc/zorba/modules_top.dox (+1/-1)
doc/zorba/options.dox (+2/-2)
doc/zorba/web_crawler.dox (+1/-1)
doc/zorba/xqddf.dox (+22/-22)
doc/zorba/xqdoc/images/modules.svg (+19/-19)
doc/zorba/xqdoc/images/modules_new.svg (+19/-19)
doc/zorba/xqdoc/src/zorba_module_dependencies.xqy (+5/-5)
modules/com/zorba-xquery/www/modules/CMakeLists.txt (+0/-22)
modules/store/CMakeLists.txt (+26/-0)
modules/store/documents.xq (+86/-72)
modules/store/dynamic/collections/ddl.xq (+71/-85)
modules/store/dynamic/collections/dml.xq (+306/-676)
modules/store/dynamic/collections/w3c/ddl.xq (+111/-117)
modules/store/dynamic/collections/w3c/dml.xq (+260/-316)
modules/store/static/collections/ddl.xq (+108/-126)
modules/store/static/collections/dml.xq (+427/-920)
modules/store/static/indexes/ddl.xq (+75/-79)
modules/store/static/indexes/dml.xq (+275/-284)
modules/store/static/integrity-constraints/ddl.xq (+79/-84)
modules/store/static/integrity-constraints/dml.xq (+30/-25)
scripts/sanity_checks/conformance_xqftts.xqi (+2/-2)
scripts/sanity_checks/conformance_xqts.xqi (+2/-2)
scripts/sanity_checks/conformance_xquts.xqi (+2/-2)
scripts/sanity_checks/run_xqftts.xq (+2/-2)
scripts/sanity_checks/run_xqts.xq (+2/-2)
scripts/sanity_checks/run_xquts.xq (+3/-3)
src/api/collectionimpl.cpp (+36/-9)
src/api/collectionimpl.h (+3/-3)
src/api/collectionmanagerimpl.h (+9/-9)
src/api/documentmanagerimpl.cpp (+1/-1)
src/api/staticcollectionmanagerimpl.cpp (+3/-3)
src/api/xmldatamanagerimpl.cpp (+4/-4)
src/compiler/expression/expr_clone.cpp (+1/-1)
src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp (+2/-2)
src/compiler/rewriter/rules/hoist_rules.cpp (+6/-6)
src/compiler/rewriter/tools/expr_tools.cpp (+1/-1)
src/compiler/translator/translator.cpp (+5/-5)
src/compiler/xqddf/value_index.cpp (+1/-1)
src/context/static_context.cpp (+11/-11)
src/context/static_context.h (+1/-1)
src/functions/func_collections_impl.cpp (+407/-407)
src/functions/func_index_ddl.cpp (+9/-9)
src/functions/pregenerated/func_collections.cpp (+704/-1070)
src/functions/pregenerated/func_collections.h (+428/-428)
src/functions/pregenerated/func_documents.cpp (+46/-46)
src/functions/pregenerated/func_documents.h (+34/-34)
src/functions/pregenerated/func_ic_ddl.cpp (+30/-30)
src/functions/pregenerated/func_ic_ddl.h (+43/-43)
src/functions/pregenerated/func_index_func.cpp (+1/-1)
src/functions/pregenerated/function_enum.h (+63/-91)
src/runtime/collections/collections_impl.cpp (+71/-73)
src/runtime/collections/pregenerated/collections.cpp (+405/-405)
src/runtime/collections/pregenerated/collections.h (+566/-635)
src/runtime/pregenerated/iterator_enum.h (+16/-16)
src/runtime/spec/collections/collections.xml (+1152/-1553)
src/runtime/spec/indexing/ic_ddl.xml (+3/-3)
src/runtime/spec/mappings.xml (+28/-28)
src/runtime/spec/store/documents.xml (+85/-147)
src/runtime/store/pregenerated/documents.cpp (+58/-58)
src/runtime/store/pregenerated/documents.h (+76/-91)
src/runtime/visitors/pregenerated/planiter_visitor.h (+78/-78)
src/runtime/visitors/pregenerated/printer_visitor.cpp (+82/-82)
src/runtime/visitors/pregenerated/printer_visitor.h (+47/-47)
src/runtime/visitors/printer_visitor_impl.cpp (+10/-10)
swig/xqj/managers/module1.xq (+1/-1)
swig/xqj/managers/module2.xq (+1/-1)
test/iterplans/zorba/collections/count_w3c_collection.iter (+2/-2)
test/iterplans/zorba/collections/no_copy_01.iter (+4/-4)
test/iterplans/zorba/flwor/flwor26.iter (+5/-5)
test/iterplans/zorba/flwor/flwor28.iter (+3/-3)
test/iterplans/zorba/index/match_veq_01.iter (+2/-2)
test/iterplans/zorba/index/match_veq_02.iter (+2/-2)
test/iterplans/zorba/index/match_veq_03.iter (+2/-2)
test/iterplans/zorba/index/match_veq_04.iter (+2/-2)
test/iterplans/zorba/index/match_veq_05.iter (+40/-40)
test/iterplans/zorba/index/match_veq_06.iter (+4/-4)
test/iterplans/zorba/index/match_veq_07.iter (+2/-2)
test/iterplans/zorba/index/match_vrange_01.iter (+2/-2)
test/iterplans/zorba/index/match_vrange_02.iter (+2/-2)
test/iterplans/zorba/index/match_vrange_02a.iter (+2/-2)
test/iterplans/zorba/index/match_vrange_02b.iter (+2/-2)
test/iterplans/zorba/index/match_vrange_03.iter (+2/-2)
test/rbkt/ExpQueryResults/zorba/index/keys1.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/index/keys1g.xml.res (+10/-10)
test/rbkt/ExpQueryResults/zorba/index/keys2.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/index/keys3.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/index/numbers2.xml.res (+5/-5)
test/rbkt/ExpQueryResults/zorba/string/AnalyzeString/analyze_string13.xml.res (+32/-32)
test/rbkt/ExpQueryResults/zorba/updates/upd4.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/xqdoc/collindex.xml.res (+10/-10)
test/rbkt/Queries/zorba/collections/availability.xq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q11.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q12.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q2.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q3.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_001/q4.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_002/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_002/q2.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_003/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_003/q2.cxq (+2/-2)
test/rbkt/Queries/zorba/collections/chained_test_collection_003/q3.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_004/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_004/q2.cxq (+2/-2)
test/rbkt/Queries/zorba/collections/chained_test_collection_004/q3.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_005/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_005/q2.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_010/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_010/q2.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_010/q3.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_010/q4.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q1.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q11.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q2.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q3.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q31.cxq (+2/-2)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q32.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q33.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q34.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q35.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q36.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q37.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q4.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/chained_test_collection_011/q40.cxq (+1/-1)
test/rbkt/Queries/zorba/collections/collection_available_check.xq (+7/-7)
test/rbkt/Queries/zorba/collections/collection_does_not_exist.xq (+2/-2)
test/rbkt/Queries/zorba/collections/collection_known_check.xq (+7/-7)
test/rbkt/Queries/zorba/collections/count_dynamic_zorba_collection.xq (+2/-2)
test/rbkt/Queries/zorba/collections/count_static_zorba_collection.xq (+2/-2)
test/rbkt/Queries/zorba/collections/count_w3c_collection.xq (+2/-2)
test/rbkt/Queries/zorba/collections/create_collection.xq (+2/-2)
test/rbkt/Queries/zorba/collections/create_collision.xq (+1/-1)
test/rbkt/Queries/zorba/collections/declared_collections.xq (+1/-1)
test/rbkt/Queries/zorba/collections/delete_collection.xq (+1/-1)
test/rbkt/Queries/zorba/collections/delete_double.xq (+3/-3)
test/rbkt/Queries/zorba/collections/dynamic-01.xq (+15/-15)
test/rbkt/Queries/zorba/collections/dynamic-02.xq (+6/-6)
test/rbkt/Queries/zorba/collections/dynamic-03.xq (+3/-3)
test/rbkt/Queries/zorba/collections/dynamic-04.xq (+4/-4)
test/rbkt/Queries/zorba/collections/dynamic-05.xq (+4/-4)
test/rbkt/Queries/zorba/collections/dynamic-06.xq (+3/-3)
test/rbkt/Queries/zorba/collections/dynamic_node_ref-01.xq (+3/-3)
test/rbkt/Queries/zorba/collections/import_1.xq (+2/-1)
test/rbkt/Queries/zorba/collections/index_of_1.xq (+5/-5)
test/rbkt/Queries/zorba/collections/index_of_3.xq (+1/-1)
test/rbkt/Queries/zorba/collections/insert-last-01.xq (+4/-4)
test/rbkt/Queries/zorba/collections/insert_nodes_at_1.xq (+5/-5)
test/rbkt/Queries/zorba/collections/insert_nodes_at_4.xq (+2/-2)
test/rbkt/Queries/zorba/collections/is_declared_collection.xq (+1/-1)
test/rbkt/Queries/zorba/collections/modifier-01.xq (+15/-15)
test/rbkt/Queries/zorba/collections/modifier-02.xq (+7/-7)
test/rbkt/Queries/zorba/collections/modifier-03.xq (+3/-3)
test/rbkt/Queries/zorba/collections/modifier-03.xqdata (+0/-1)
test/rbkt/Queries/zorba/collections/no_copy_01.xq (+2/-2)
test/rbkt/Queries/zorba/collections/node_type.xq (+10/-10)
test/rbkt/Queries/zorba/collections/paging_1.xq (+5/-5)
test/rbkt/Queries/zorba/collections/paging_2.xq (+5/-5)
test/rbkt/Queries/zorba/collections/paging_3.xq (+5/-5)
test/rbkt/Queries/zorba/collections/paging_4.xq (+5/-5)
test/rbkt/Queries/zorba/collections/paging_5.xq (+5/-5)
test/rbkt/Queries/zorba/collections/q1.xq (+2/-2)
test/rbkt/Queries/zorba/collections/q12.xq (+3/-3)
test/rbkt/Queries/zorba/collections/remove_node_at_1.xq (+6/-6)
test/rbkt/Queries/zorba/collections/remove_node_at_border.xq (+5/-5)
test/rbkt/Queries/zorba/collections/remove_nodes_1.xq (+6/-6)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-001.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-002.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-003.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-004.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-005.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-006.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-007.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-008.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-append_only.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-append_only_2.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-const.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-first/static-delete-first-const_2.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-03.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-05.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-06.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-07.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-08.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-append_only-01.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-append_only-02.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-const-01.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete-last/static-delete-last-const-02.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-03.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-append_only.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-const.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-delete/static-delete-queue.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-01.xq (+1/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-03.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-05.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-06.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-07.xq (+6/-6)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-08.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-09.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-10.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-11.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-12.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-13.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-14.xq (+4/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-15.xq (+4/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-16.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-17.xq (+4/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-18.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-19.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-append_only.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-collection_with_index.xqdata (+1/-1)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-collection_with_type.xqdata (+1/-1)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-const.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-edit/static-edit-queue.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-03.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-04.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-05.xq (+5/-5)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-06.xq (+7/-7)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-append_only.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-const.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-after/static-insert-after-queue.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-03.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-04.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-05.xq (+5/-5)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-append_only.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-const.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-before/static-insert-before-queue.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-03.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-05.xq (+4/-4)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-append_only.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-const.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-first/static-insert-first-queue.xq (+3/-4)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-02.xq (+2/-2)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-03.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-append_only.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-const.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert-last/static-insert-last-queue.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-01.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-02.xq (+2/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-03.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-04.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-append_only.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-const.xq (+3/-3)
test/rbkt/Queries/zorba/collections/static-insert/static-insert-queue.xq (+3/-4)
test/rbkt/Queries/zorba/collections/static-truncate-01.xq (+5/-5)
test/rbkt/Queries/zorba/collections/uri-collection-011.xq (+6/-6)
test/rbkt/Queries/zorba/collections/uri-collection-02.xq (+6/-6)
test/rbkt/Queries/zorba/eval/eval16.xq (+2/-2)
test/rbkt/Queries/zorba/flwor/flwor26.xq (+5/-5)
test/rbkt/Queries/zorba/flwor/flwor28.xq (+4/-4)
test/rbkt/Queries/zorba/gflwor/gflwor07.xq (+2/-2)
test/rbkt/Queries/zorba/gflwor/gflwor08.xq (+3/-4)
test/rbkt/Queries/zorba/gflwor/gflwor_ex7.xq (+3/-3)
test/rbkt/Queries/zorba/hashjoins/idx9.xq (+1/-2)
test/rbkt/Queries/zorba/hashjoins/idx9.xqlib (+1/-2)
test/rbkt/Queries/zorba/index/auctions1.xq (+4/-4)
test/rbkt/Queries/zorba/index/auctions1u.xq (+5/-5)
test/rbkt/Queries/zorba/index/auctions2.xq (+4/-4)
test/rbkt/Queries/zorba/index/auctions2u.xq (+11/-11)
test/rbkt/Queries/zorba/index/auctions_module1.xqlib (+5/-6)
test/rbkt/Queries/zorba/index/auto_idx_01.xq (+4/-7)
test/rbkt/Queries/zorba/index/auto_idx_01.xqlib (+3/-4)
test/rbkt/Queries/zorba/index/available.xq (+4/-4)
test/rbkt/Queries/zorba/index/count.xqlib (+5/-5)
test/rbkt/Queries/zorba/index/declare_index/declare_01.xq (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_01.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_02.xq (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_02.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_03.xq (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_03.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_04.xq (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_04.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/declare_index/declare_05.xq (+1/-1)
test/rbkt/Queries/zorba/index/declared.xq (+1/-1)
test/rbkt/Queries/zorba/index/declared.xqlib (+2/-2)
test/rbkt/Queries/zorba/index/delete_from_collection_01.xqlib (+9/-12)
test/rbkt/Queries/zorba/index/error1.xq (+1/-1)
test/rbkt/Queries/zorba/index/error2.xq (+1/-1)
test/rbkt/Queries/zorba/index/error3.xq (+1/-1)
test/rbkt/Queries/zorba/index/error4.xq (+2/-2)
test/rbkt/Queries/zorba/index/error_module3.xqlib (+1/-2)
test/rbkt/Queries/zorba/index/index_does_not_exist.xq (+3/-3)
test/rbkt/Queries/zorba/index/index_does_not_exist.xqlib (+2/-3)
test/rbkt/Queries/zorba/index/index_does_not_exist_2.xq (+2/-2)
test/rbkt/Queries/zorba/index/index_exists_already.xq (+3/-3)
test/rbkt/Queries/zorba/index/index_probe_range.xq (+3/-3)
test/rbkt/Queries/zorba/index/keys1.xq (+5/-5)
test/rbkt/Queries/zorba/index/keys1g.xq (+5/-5)
test/rbkt/Queries/zorba/index/keys2.xq (+5/-5)
test/rbkt/Queries/zorba/index/keys3.xq (+5/-5)
test/rbkt/Queries/zorba/index/keys_mod.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/match_veq_01.xq (+3/-6)
test/rbkt/Queries/zorba/index/match_veq_01.xqlib (+3/-5)
test/rbkt/Queries/zorba/index/match_veq_02.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_veq_02.xqlib (+3/-6)
test/rbkt/Queries/zorba/index/match_veq_03.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_veq_03.xqlib (+3/-4)
test/rbkt/Queries/zorba/index/match_veq_04.xq (+3/-3)
test/rbkt/Queries/zorba/index/match_veq_04.xqlib (+3/-3)
test/rbkt/Queries/zorba/index/match_veq_05.xq (+4/-4)
test/rbkt/Queries/zorba/index/match_veq_05.xqlib (+3/-3)
test/rbkt/Queries/zorba/index/match_veq_06.xq (+4/-4)
test/rbkt/Queries/zorba/index/match_veq_06.xqlib (+7/-8)
test/rbkt/Queries/zorba/index/match_veq_07.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_veq_07.xqlib (+5/-5)
test/rbkt/Queries/zorba/index/match_veq_08.xq (+4/-4)
test/rbkt/Queries/zorba/index/match_veq_08.xqlib (+1/-3)
test/rbkt/Queries/zorba/index/match_veq_08b.xq (+4/-6)
test/rbkt/Queries/zorba/index/match_veq_09.xq (+4/-6)
test/rbkt/Queries/zorba/index/match_veq_09.xqlib (+1/-3)
test/rbkt/Queries/zorba/index/match_veq_10.xq (+4/-6)
test/rbkt/Queries/zorba/index/match_veq_10.xqlib (+1/-3)
test/rbkt/Queries/zorba/index/match_veq_11.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_veq_11.xqlib (+1/-2)
test/rbkt/Queries/zorba/index/match_vrange_01.xq (+3/-3)
test/rbkt/Queries/zorba/index/match_vrange_01.xqlib (+4/-7)
test/rbkt/Queries/zorba/index/match_vrange_02.xq (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_02.xqlib (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_02a.xq (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_02b.xq (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_03.xq (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_03.xqlib (+4/-5)
test/rbkt/Queries/zorba/index/match_vrange_04.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_vrange_04.xqlib (+1/-2)
test/rbkt/Queries/zorba/index/match_vrange_05.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_vrange_05.xqlib (+3/-4)
test/rbkt/Queries/zorba/index/match_vrange_06.xq (+3/-4)
test/rbkt/Queries/zorba/index/match_vrange_06.xqlib (+1/-2)
test/rbkt/Queries/zorba/index/multi_key_01.xq (+4/-4)
test/rbkt/Queries/zorba/index/multi_key_01.xqlib (+4/-4)
test/rbkt/Queries/zorba/index/multi_key_02.xq (+4/-4)
test/rbkt/Queries/zorba/index/multi_key_02.xqlib (+4/-4)
test/rbkt/Queries/zorba/index/numbers.xq (+5/-6)
test/rbkt/Queries/zorba/index/numbers.xqlib (+4/-5)
test/rbkt/Queries/zorba/index/numbers.xsd (+2/-2)
test/rbkt/Queries/zorba/index/numbers2.xq (+6/-6)
test/rbkt/Queries/zorba/index/paging.xq (+4/-4)
test/rbkt/Queries/zorba/index/paging.xqlib (+4/-5)
test/rbkt/Queries/zorba/index/probe_index_invalid_params.xq (+3/-3)
test/rbkt/Queries/zorba/index/remove_collection_with_index.xq (+2/-2)
test/rbkt/Queries/zorba/index/remove_collection_with_index.xqlib (+1/-1)
test/rbkt/Queries/zorba/index/undo1.xq (+5/-6)
test/rbkt/Queries/zorba/index/undo2.xq (+9/-9)
test/rbkt/Queries/zorba/index/undo2.xqlib (+5/-5)
test/rbkt/Queries/zorba/index/undo3.xq (+10/-10)
test/rbkt/Queries/zorba/index/undo4.xq (+17/-18)
test/rbkt/Queries/zorba/index/undo4.xqlib (+5/-5)
test/rbkt/Queries/zorba/index/unique.xq (+11/-11)
test/rbkt/Queries/zorba/index/unique.xqlib (+5/-5)
test/rbkt/Queries/zorba/jsoniq/coll_dyn_01.xq (+1/-2)
test/rbkt/Queries/zorba/jsoniq/coll_dyn_02.xq (+3/-4)
test/rbkt/Queries/zorba/jsoniq/coll_dyn_03.xq (+4/-8)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-collection-update.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-collection.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-index-general-point.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-index-point-maintenance.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-index-point.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-index-range.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-index-point-maintenance.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-index-point.xq (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-update-index-point.xq (+1/-1)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf_module-no-index.xqlib (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf_module-with-index-and-xml.xqlib (+4/-5)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf_module-with-index.xqlib (+4/-6)
test/rbkt/Queries/zorba/jsoniq/use_case01.xq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case01_2.xq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case02.jq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case02.xq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case03.jq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case03.xq (+2/-2)
test/rbkt/Queries/zorba/jsoniq/use_case10.xq (+2/-2)
test/rbkt/Queries/zorba/misc/guestbook.xq (+1/-3)
test/rbkt/Queries/zorba/misc/guestbook.xqlib (+2/-2)
test/rbkt/Queries/zorba/nodes/position_1.xq (+2/-2)
test/rbkt/Queries/zorba/nodes/position_1_parsed.xq (+3/-3)
test/rbkt/Queries/zorba/nodes/position_2.xq (+3/-3)
test/rbkt/Queries/zorba/nodes/position_2_parsed.xq (+3/-3)
test/rbkt/Queries/zorba/optim/hoist01.xqlib (+1/-1)
test/rbkt/Queries/zorba/optim/pos_pred14.xq (+3/-3)
test/rbkt/Queries/zorba/reference/json-reference_3.xq (+2/-2)
test/rbkt/Queries/zorba/reference/json-reference_4.xq (+2/-2)
test/rbkt/Queries/zorba/reference/json-reference_5.xq (+2/-2)
test/rbkt/Queries/zorba/reference/reference_3.xq (+1/-1)
test/rbkt/Queries/zorba/reference/reference_5.xq (+1/-1)
test/rbkt/Queries/zorba/reference/reference_coll_1.xq (+3/-3)
test/rbkt/Queries/zorba/reference/reference_coll_2.xq (+3/-3)
test/rbkt/Queries/zorba/reference/reference_coll_3.xq (+3/-3)
test/rbkt/Queries/zorba/reference/reference_coll_4.xq (+3/-3)
test/rbkt/Queries/zorba/reference/reference_coll_5.xq (+3/-3)
test/rbkt/Queries/zorba/schemas/val-inplace-err2.xq (+2/-2)
test/rbkt/Queries/zorba/scripting/constr5.xq (+3/-3)
test/rbkt/Queries/zorba/scripting/flwor1.xq (+3/-3)
test/rbkt/Queries/zorba/scripting/flwor12.xq (+3/-5)
test/rbkt/Queries/zorba/scripting/flwor2.xq (+3/-4)
test/rbkt/Queries/zorba/scripting/flwor3.xq (+4/-5)
test/rbkt/Queries/zorba/scripting/flwor4.xq (+3/-4)
test/rbkt/Queries/zorba/scripting/flwor5.xq (+5/-5)
test/rbkt/Queries/zorba/scripting/flwor6.xq (+5/-5)
test/rbkt/Queries/zorba/scripting/gflwor1.xq (+5/-5)
test/rbkt/Queries/zorba/scripting/gflwor2.xq (+5/-5)
test/rbkt/Queries/zorba/scripting/pul_xdm1.xq (+2/-2)
test/rbkt/Queries/zorba/scripting/pul_xdm2.xq (+3/-4)
test/rbkt/Queries/zorba/store/documents.xq (+1/-1)
test/rbkt/Queries/zorba/store/example_1.xq (+1/-1)
test/rbkt/Queries/zorba/store/example_3.xq (+1/-1)
test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm (+12/-12)
test/rbkt/Queries/zorba/trycatch/trycatch10.xq (+1/-1)
test/rbkt/Queries/zorba/updates/undo1.xq (+6/-7)
test/rbkt/Queries/zorba/updates/undo10.xq (+4/-4)
test/rbkt/Queries/zorba/updates/undo11.xq (+5/-5)
test/rbkt/Queries/zorba/updates/undo2.xq (+6/-8)
test/rbkt/Queries/zorba/updates/undo3.xq (+6/-6)
test/rbkt/Queries/zorba/updates/undo4.xq (+6/-6)
test/rbkt/Queries/zorba/updates/undo5.xq (+8/-9)
test/rbkt/Queries/zorba/updates/undo6.xq (+8/-8)
test/rbkt/Queries/zorba/updates/undo7.xq (+6/-6)
test/rbkt/Queries/zorba/updates/undo8.xq (+5/-5)
test/rbkt/Queries/zorba/updates/undo9.xq (+5/-5)
test/rbkt/Queries/zorba/updates/upd12.xq (+2/-2)
test/rbkt/Queries/zorba/updates/upd13.xq (+1/-1)
test/rbkt/Queries/zorba/updates/upd4.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/admin.xq (+8/-8)
test/rbkt/Queries/zorba/xqddf/daniel/dic1.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/dic2.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/dic3.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/dic4.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/daniel/eic1.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/daniel/eic2.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/eic3.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/eic4.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/daniel/i1.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/i2.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/i3.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/i4.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/i5.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/i6.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/daniel/ric1.xq (+7/-7)
test/rbkt/Queries/zorba/xqddf/daniel/ric2.xq (+8/-8)
test/rbkt/Queries/zorba/xqddf/daniel/ric3.xq (+7/-8)
test/rbkt/Queries/zorba/xqddf/daniel/ric4.xq (+8/-8)
test/rbkt/Queries/zorba/xqddf/daniel/ric5.xq (+8/-8)
test/rbkt/Queries/zorba/xqddf/daniel/ric6.xq (+10/-10)
test/rbkt/Queries/zorba/xqddf/daniel/t1.xq (+2/-2)
test/rbkt/Queries/zorba/xqddf/daniel/t2.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/daniel/t3.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/daniel/t4.xq (+3/-3)
test/rbkt/Queries/zorba/xqddf/daniel/t5.xq (+3/-3)
test/rbkt/Queries/zorba/xqddf/daniel/undo1.xq (+9/-9)
test/rbkt/Queries/zorba/xqddf/daniel/undo2.xq (+10/-10)
test/rbkt/Queries/zorba/xqddf/daniel/xqddf_prolog.xqlib (+2/-2)
test/rbkt/Queries/zorba/xqddf/default.xqlib (+5/-5)
test/rbkt/Queries/zorba/xqddf/error.xq (+1/-2)
test/rbkt/Queries/zorba/xqddf/error_01.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/error_01.xqlib (+1/-2)
test/rbkt/Queries/zorba/xqddf/error_02.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/error_02.xqlib (+1/-1)
test/rbkt/Queries/zorba/xqddf/error_03.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/error_03.xqlib (+1/-1)
test/rbkt/Queries/zorba/xqddf/ic-deactivate-err.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/ic-forEach-err.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-forEach.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-foreignKey-err.xq (+9/-10)
test/rbkt/Queries/zorba/xqddf/ic-foreignKey.xq (+9/-10)
test/rbkt/Queries/zorba/xqddf/ic-foreignKey2.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/ic-simple-err.xq (+5/-7)
test/rbkt/Queries/zorba/xqddf/ic-simple.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-simple2.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-simple3.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/ic-uniqueKey-err1.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-uniqueKey-err2.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/ic-uniqueKey.xq (+6/-6)
test/rbkt/Queries/zorba/xqddf/news-data.xqlib (+2/-2)
test/rbkt/Queries/zorba/xqddf/test1_mod2.xqlib (+2/-2)
test/rbkt/Queries/zorba/xqddf/test2.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/test2.xqlib (+1/-1)
test/rbkt/Queries/zorba/xqddf/test3.xq (+5/-5)
test/rbkt/Queries/zorba/xqddf/test3.xqlib (+1/-1)
test/rbkt/Queries/zorba/xqddf/test4.xqlib (+4/-4)
test/rbkt/Queries/zorba/xqddf/test5.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/test5.xqlib (+2/-2)
test/rbkt/Queries/zorba/xqddf/undo1.xq (+4/-4)
test/rbkt/Queries/zorba/xqdoc/collindex.xqlib (+3/-3)
test/rbkt/Queries/zorba/zorba-query/evaluate-sequential.xq (+1/-1)
test/rbkt/Queries/zorba/zorba-query/evaluate-updating2.xq (+1/-1)
test/rbkt/Queries/zorba/zorba-query/evaluate3.xq (+1/-1)
test/rbkt/Queries/zorba/zorba-query/is-sequential.xq (+1/-1)
test/rbkt/Queries/zorba/zorba-query/is-updating.xq (+1/-1)
test/rbkt/Queries/zorba/zorba-query/url-schema-resolver2.xq (+2/-2)
test/rbkt/Scripts/w3c/XQFTTS.xml (+2/-2)
test/rbkt/Scripts/w3c/XQTS.xml (+2/-2)
test/unit/collection1.xq (+3/-3)
test/unit/collection2.xq (+2/-2)
test/unit/cxx_api_ch1.xq (+2/-2)
test/unit/ext_in_opt.xqlib (+1/-1)
test/unit/guestbook.xq (+2/-2)
test/unit/module1.xq (+1/-1)
test/unit/module2.xq (+1/-1)
test/unit/staticcollectionmanager.cpp (+401/-357)
test/unit/test_static_context.cpp (+4/-4)
test/update/Queries/zorba/store/sc1_ex1.xqlib (+1/-1)
test/update/Queries/zorba/store/sc1_ex2.xq (+2/-2)
test/update/Queries/zorba/store/sc1_ex3.xq (+2/-2)
test/update/Queries/zorba/store/sc1_ex4.xq (+1/-1)
test/update/Queries/zorba/store/sc1_ex5.xq (+2/-2)
test/update/Queries/zorba/store/sc1_ex6.xq (+1/-1)
test/update/Queries/zorba/store/sc1_ex7.xq (+2/-2)
test/update/Queries/zorba/store/sc1_ex8.xq (+1/-1)
test/update/Queries/zorba/store/sc2_ex1.xq (+1/-1)
test/update/Queries/zorba/store/sc2_ex2.xq (+2/-2)
test/update/Queries/zorba/store/sc2_ex3.xq (+1/-1)
test/update/Queries/zorba/store/sc3_ex1.xq (+1/-1)
test/update/Queries/zorba/store/sc3_ex2.xq (+1/-1)
test/update/Queries/zorba/store/sc3_ex3.xq (+1/-1)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1189862
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+190266@code.launchpad.net

Commit message

Renamed this module, plus:
* Majorly cleaned-up.
* @deprecated functions removed.
* Renamed integrity_constraints to integrity-constraints.

Description of the change

Renamed this module, plus:
* Majorly cleaned-up.
* @deprecated functions removed.
* Renamed integrity_constraints to integrity-constraints.

https://code.launchpad.net/~zorba-coders/zorba/bug-1189862-stack/+merge/190412
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862-queue/+merge/190414

To post a comment you must log in.
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "BuildZorbaUbuntu" failed.

Check compiler output at http://jenkins.lambda.nu/job/BuildZorbaUbuntu/409/parsed_console to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11674. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "BuildZorbaUbuntu" failed.

Check compiler output at http://jenkins.lambda.nu/job/BuildZorbaUbuntu/410/parsed_console to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11675. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "BuildZorbaUbuntu" failed.

Check compiler output at http://jenkins.lambda.nu/job/BuildZorbaUbuntu/411/parsed_console to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11676. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

lp:~zorba-coders/zorba/bug-1189862 updated
11677. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "TestZorbaUbuntu" failed.
2469 tests failed (8573 total tests run).

Check test results at http://jenkins.lambda.nu/job/TestZorbaUbuntu/363/testReport/ to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11678. By Paul J. Lucas

Intermediate check-in.

11679. By Paul J. Lucas

Merge from trunk.

11680. By Paul J. Lucas

Intermediate check-in.

11681. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "TestZorbaUbuntu" failed.
39 tests failed (8573 total tests run).

Check test results at http://jenkins.lambda.nu/job/TestZorbaUbuntu/368/testReport/ to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11682. By Paul J. Lucas

Intermediate check-in.

Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "TestZorbaUbuntu" failed.
2 tests failed (8573 total tests run).

Check test results at http://jenkins.lambda.nu/job/TestZorbaUbuntu/369/testReport/ to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11683. By Paul J. Lucas

Merge from trunk.

11684. By Paul J. Lucas

Merge from trunk.

11685. By Paul J. Lucas

Merge from trunk.

11686. By Paul J. Lucas

Cosmetic change.

11687. By Paul J. Lucas

Fixed for w3c collections.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "ZorbaVQ" failed.

Check console output at http://jenkins.lambda.nu/job/ZorbaVQ/488/console to view the results.

lp:~zorba-coders/zorba/bug-1189862 updated
11688. By Paul J. Lucas

Merge from trunk.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting criteria failed for the following merge proposals:

https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266 :
Votes: {'Approve': 1}

https://code.launchpad.net/~zorba-coders/zorba/bug-1189862-stack/+merge/190412 :
Votes: {'Approve': 1, 'Pending': 1}

https://code.launchpad.net/~zorba-coders/zorba/bug-1189862-queue/+merge/190414 :
Votes: {'Approve': 1, 'Pending': 1}

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189862/+merge/190266

Stage "CommitZorba" failed.

Check console output at http://jenkins.lambda.nu/job/CommitZorba/237/console to view the results.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue succeeded - proposal merged!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/cxx/examples/context.cpp'
--- doc/cxx/examples/context.cpp 2013-09-17 21:12:49 +0000
+++ doc/cxx/examples/context.cpp 2013-10-17 02:02:41 +0000
@@ -375,7 +375,7 @@
375 std::unique_ptr<std::stringstream> lQuery(new std::stringstream());375 std::unique_ptr<std::stringstream> lQuery(new std::stringstream());
376 (*lQuery)376 (*lQuery)
377 << "module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl377 << "module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl
378 << "import module namespace dml = 'http://www.zorba-xquery.com/modules/store/static/collections/dml';" << std::endl378 << "import module namespace dml = 'http://zorba.io/modules/store/static/collections/dml';" << std::endl
379 << "declare namespace an = 'http://zorba.io/annotations';" << std::endl379 << "declare namespace an = 'http://zorba.io/annotations';" << std::endl
380 << "declare variable $mymodule:var := 'myvar';" << std::endl380 << "declare variable $mymodule:var := 'myvar';" << std::endl
381 << "declare collection mymodule:collection;" << std::endl381 << "declare collection mymodule:collection;" << std::endl
@@ -409,7 +409,7 @@
409 Zorba_CompilerHints_t hints;409 Zorba_CompilerHints_t hints;
410 std::stringstream lProlog;410 std::stringstream lProlog;
411 lProlog << "import module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl411 lProlog << "import module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl
412 << "import module namespace ddl = 'http://www.zorba-xquery.com/modules/store/static/collections/ddl';"412 << "import module namespace ddl = 'http://zorba.io/modules/store/static/collections/ddl';"
413 << std::endl413 << std::endl
414 << "declare function local:collections() { " << std::endl414 << "declare function local:collections() { " << std::endl
415 << " ddl:declared-collections()" << std::endl415 << " ddl:declared-collections()" << std::endl
416416
=== modified file 'doc/zorba/data_lifecycle.dox'
--- doc/zorba/data_lifecycle.dox 2013-09-17 03:48:02 +0000
+++ doc/zorba/data_lifecycle.dox 2013-10-17 02:02:41 +0000
@@ -39,32 +39,32 @@
39 <tr>39 <tr>
40 <td>Collections</td>40 <td>Collections</td>
41 <td>DDL</td>41 <td>DDL</td>
42 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_collections_ddl.html">http://www.zorba-xquery.com/modules/store/static/collections/ddl</a></td>42 <td><a href="../modules/zorba.io_modules_store_static_collections_ddl.html">http://zorba.io/modules/store/static/collections/ddl</a></td>
43 </tr>43 </tr>
44 <tr>44 <tr>
45 <td>Collections</td>45 <td>Collections</td>
46 <td>DML</td>46 <td>DML</td>
47 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_collections_dml.html">http://www.zorba-xquery.com/modules/store/static/collections/dml</a></td>47 <td><a href="../modules/zorba.io_modules_store_static_collections_dml.html">http://zorba.io/modules/store/static/collections/dml</a></td>
48 </tr>48 </tr>
49 <tr>49 <tr>
50 <td>Indexes</td>50 <td>Indexes</td>
51 <td>DDL</td>51 <td>DDL</td>
52 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_indexes_ddl.html">http://www.zorba-xquery.com/modules/store/static/indexes/ddl</a></td>52 <td><a href="../modules/zorba.io_modules_store_static_indexes_ddl.html">http://zorba.io/modules/store/static/indexes/ddl</a></td>
53 </tr>53 </tr>
54 <tr>54 <tr>
55 <td>Indexes</td>55 <td>Indexes</td>
56 <td>DML</td>56 <td>DML</td>
57 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_indexes_dml.html">http://www.zorba-xquery.com/modules/store/static/indexes/dml</a></td>57 <td><a href="../modules/zorba.io_modules_store_static_indexes_dml.html">http://zorba.io/modules/store/static/indexes/dml</a></td>
58 </tr>58 </tr>
59 <tr>59 <tr>
60 <td>Integrity Constraints</td>60 <td>Integrity Constraints</td>
61 <td>DDL</td>61 <td>DDL</td>
62 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_integrity_constraints_ddl.html">http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl</a></td>62 <td><a href="../modules/zorba.io_modules_store_static_integrity_constraints_ddl.html">http://zorba.io/modules/store/static/integrity_constraints/ddl</a></td>
63 </tr>63 </tr>
64 <tr>64 <tr>
65 <td>Integrity Constraints</td>65 <td>Integrity Constraints</td>
66 <td>DML</td>66 <td>DML</td>
67 <td><a href="../modules/www.zorba-xquery.com_modules_store_static_integrity_constraints_dml.html">http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml</a></td>67 <td><a href="../modules/zorba.io_modules_store_static_integrity_constraints_dml.html">http://zorba.io/modules/store/static/integrity_constraints/dml</a></td>
68 </tr>68 </tr>
69</table>69</table>
7070
@@ -83,27 +83,27 @@
83 <tr>83 <tr>
84 <td>Collections</td>84 <td>Collections</td>
85 <td>DDL</td>85 <td>DDL</td>
86 <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_ddl.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl</a></td>86 <td><a href="../modules/zorba.io_modules_store_dynamic_collections_ddl.html">http://zorba.io/modules/store/dynamic/collections/ddl</a></td>
87 </tr>87 </tr>
88 <tr>88 <tr>
89 <td>Collections</td>89 <td>Collections</td>
90 <td>DML</td>90 <td>DML</td>
91 <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_dml.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/dml</a></td>91 <td><a href="../modules/zorba.io_modules_store_dynamic_collections_dml.html">http://zorba.io/modules/store/dynamic/collections/dml</a></td>
92 </tr>92 </tr>
93 <tr>93 <tr>
94 <td>W3C Collections</td>94 <td>W3C Collections</td>
95 <td>DDL</td>95 <td>DDL</td>
96 <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl</a></td>96 <td><a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_ddl.html">http://zorba.io/modules/store/dynamic/collections/w3c/ddl</a></td>
97 </tr>97 </tr>
98 <tr>98 <tr>
99 <td>W3C Collections</td>99 <td>W3C Collections</td>
100 <td>DML</td>100 <td>DML</td>
101 <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_dml.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml</a></td>101 <td><a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_dml.html">http://zorba.io/modules/store/dynamic/collections/w3c/dml</a></td>
102 </tr>102 </tr>
103 <tr>103 <tr>
104 <td>Documents</td>104 <td>Documents</td>
105 <td>DDL / DML</td>105 <td>DDL / DML</td>
106 <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_documents.html">http://www.zorba-xquery.com/modules/store/dynamic/documents</a></td>106 <td><a href="../modules/zorba.io_modules_store_dynamic_documents.html">http://zorba.io/modules/store/documents</a></td>
107 </tr>107 </tr>
108 <tr>108 <tr>
109 <td>Unordered Maps</td>109 <td>Unordered Maps</td>
110110
=== modified file 'doc/zorba/link_crawler2.dox'
--- doc/zorba/link_crawler2.dox 2013-08-09 09:04:36 +0000
+++ doc/zorba/link_crawler2.dox 2013-10-17 02:02:41 +0000
@@ -18,7 +18,7 @@
18:)18:)
1919
20import module namespace http = "http://www.zorba-xquery.com/modules/http-client";20import module namespace http = "http://www.zorba-xquery.com/modules/http-client";
21import module namespace map = "http://www.zorba-xquery.com/modules/store/data-structures/unordered-map";21import module namespace map = "http://zorba.io/modules/store/data-structures/unordered-map";
22import module namespace html = "http://www.zorba-xquery.com/modules/converters/html";22import module namespace html = "http://www.zorba-xquery.com/modules/converters/html";
23import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml";23import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml";
24import module namespace file = "http://expath.org/ns/file";24import module namespace file = "http://expath.org/ns/file";
2525
=== modified file 'doc/zorba/modules_top.dox'
--- doc/zorba/modules_top.dox 2013-09-17 03:48:02 +0000
+++ doc/zorba/modules_top.dox 2013-10-17 02:02:41 +0000
@@ -13,7 +13,7 @@
1313
14 - <a href="../modules/www.w3.org_2005_xpath-functions.html">xpath</a>14 - <a href="../modules/www.w3.org_2005_xpath-functions.html">xpath</a>
15 - <a href="../modules/zorba.io_modules_node.html">XDM</a>15 - <a href="../modules/zorba.io_modules_node.html">XDM</a>
16 - <a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_ddl.html">store</a>16 - <a href="../modules/zorba.io_modules_store_dynamic_collections_ddl.html">store</a>
17 - <a href="../modules/www.zorba-xquery.com_modules_introspection_sctx.html">introspection</a>17 - <a href="../modules/www.zorba-xquery.com_modules_introspection_sctx.html">introspection</a>
18 - <a href="../modules/www.zorba-xquery.com_modules_reflection.html">reflection</a>18 - <a href="../modules/www.zorba-xquery.com_modules_reflection.html">reflection</a>
19 - <a href="../modules/expath.org_ns_file.html">file</a>19 - <a href="../modules/expath.org_ns_file.html">file</a>
2020
=== modified file 'doc/zorba/options.dox'
--- doc/zorba/options.dox 2013-08-23 11:15:04 +0000
+++ doc/zorba/options.dox 2013-10-17 02:02:41 +0000
@@ -348,7 +348,7 @@
348\paragraph variadic_annotation Variadic Functions348\paragraph variadic_annotation Variadic Functions
349A function annotated with the <tt>%an:variadic</tt> annotation is a function of indefinite arity, i.e. one that accepts a variable number of arguments. 349A function annotated with the <tt>%an:variadic</tt> annotation is a function of indefinite arity, i.e. one that accepts a variable number of arguments.
350350
351For example, the function to create an unordered map with an arbitrary number of key types (see module <a href="/documentation/zorba/2.9/modules/www.zorba-xquery.com_modules_store_data-structures_unordered-map.html">http://www.zorba-xquery.com/modules/store/data-structures/unordered-map</a>) is declared as follow:351For example, the function to create an unordered map with an arbitrary number of key types (see module <a href="/documentation/zorba/2.9/modules/zorba.io_modules_store_data-structures_unordered-map.html">http://zorba.io/modules/store/data-structures/unordered-map</a>) is declared as follow:
352352
353\code353\code
354declare %an:variadic %an:sequential function map:create(354declare %an:variadic %an:sequential function map:create(
@@ -517,7 +517,7 @@
517<ul>517<ul>
518 <li><b>no-copy</b> In order to indicate that a node that should be inserted into a collection does not need to be copied before inserting it. Not copying a node improves performance. However, the user needs to make sure that the node does not have a parent and is not modified in any other expression. For example, in the following example snippet, the node refered to by <tt>$n</tt> will not be copied before insertion into the collection.518 <li><b>no-copy</b> In order to indicate that a node that should be inserted into a collection does not need to be copied before inserting it. Not copying a node improves performance. However, the user needs to make sure that the node does not have a parent and is not modified in any other expression. For example, in the following example snippet, the node refered to by <tt>$n</tt> will not be copied before insertion into the collection.
519\code519\code
520import module namespace db = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";520import module namespace db = "http://zorba.io/modules/store/dynamic/collections/dml";
521521
522declare namespace ext = "http://zorba.io/extensions";522declare namespace ext = "http://zorba.io/extensions";
523523
524524
=== modified file 'doc/zorba/web_crawler.dox'
--- doc/zorba/web_crawler.dox 2013-08-09 09:04:36 +0000
+++ doc/zorba/web_crawler.dox 2013-10-17 02:02:41 +0000
@@ -14,7 +14,7 @@
1414
15\code15\code
16import module namespace http = "http://www.zorba-xquery.com/modules/http-client";16import module namespace http = "http://www.zorba-xquery.com/modules/http-client";
17import module namespace map = "http://www.zorba-xquery.com/modules/store/data-structures/unordered-map";17import module namespace map = "http://zorba.io/modules/store/data-structures/unordered-map";
18import module namespace html = "http://www.zorba-xquery.com/modules/converters/html";18import module namespace html = "http://www.zorba-xquery.com/modules/converters/html";
19import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml";19import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml";
20import module namespace file = "http://expath.org/ns/file";20import module namespace file = "http://expath.org/ns/file";
2121
=== modified file 'doc/zorba/xqddf.dox'
--- doc/zorba/xqddf.dox 2013-09-17 16:14:45 +0000
+++ doc/zorba/xqddf.dox 2013-10-17 02:02:41 +0000
@@ -14,12 +14,12 @@
1414
1515
16<ul>16<ul>
17 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_collections_dml.html">http://www.zorba-xquery.com/modules/store/static/collections/dml</a> (prefix: cdml)</li>17 <li><a href="../modules/zorba.io_modules_store_static_collections_dml.html">http://zorba.io/modules/store/static/collections/dml</a> (prefix: cdml)</li>
18 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_collections_ddl.html">http://www.zorba-xquery.com/modules/store/static/collections/ddl</a> (prefix: cddl)</li>18 <li><a href="../modules/zorba.io_modules_store_static_collections_ddl.html">http://zorba.io/modules/store/static/collections/ddl</a> (prefix: cddl)</li>
19 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_indexes_dml.html">http://www.zorba-xquery.com/modules/store/static/indexes/dml</a> (prefix: idml)</li>19 <li><a href="../modules/zorba.io_modules_store_static_indexes_dml.html">http://zorba.io/modules/store/static/indexes/dml</a> (prefix: idml)</li>
20 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_indexes_ddl.html">http://www.zorba-xquery.com/modules/store/static/indexes/ddl</a> (prefix: iddl)</li>20 <li><a href="../modules/zorba.io_modules_store_static_indexes_ddl.html">http://zorba.io/modules/store/static/indexes/ddl</a> (prefix: iddl)</li>
21 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_integrity_constraints_dml.html">http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml</a> (prefix: icdml)</li>21 <li><a href="../modules/zorba.io_modules_store_static_integrity_constraints_dml.html">http://zorba.io/modules/store/static/integrity_constraints/dml</a> (prefix: icdml)</li>
22 <li><a href="../modules/www.zorba-xquery.com_modules_store_static_integrity_constraints_ddl.html">http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl</a> (prefix: icddl)</li>22 <li><a href="../modules/zorba.io_modules_store_static_integrity_constraints_ddl.html">http://zorba.io/modules/store/static/integrity_constraints/ddl</a> (prefix: icddl)</li>
23</ul>23</ul>
2424
25As usual, these modules must be imported by any other module that wants to invoke any of the functions.25As usual, these modules must be imported by any other module that wants to invoke any of the functions.
@@ -55,7 +55,7 @@
55For brevity, in the remaining of this document we will use the term "collection" to55For brevity, in the remaining of this document we will use the term "collection" to
56mean <a href="#collection">collection</a>. For backward compatibility with56mean <a href="#collection">collection</a>. For backward compatibility with
57the W3C XQuery specification, Zorba retains some basic support for W3C57the W3C XQuery specification, Zorba retains some basic support for W3C
58collections (see <a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_dml.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml</a> and <a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html">http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl</a>).58collections (see <a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_dml.html">http://zorba.io/modules/store/dynamic/collections/w3c/dml</a> and <a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_ddl.html">http://zorba.io/modules/store/dynamic/collections/w3c/ddl</a>).
59However, users are encouraged to use <a href="#collection">collections</a> instead.59However, users are encouraged to use <a href="#collection">collections</a> instead.
6060
61Zorba supports five kinds of operations on collections: <a61Zorba supports five kinds of operations on collections: <a
@@ -161,7 +161,7 @@
161\code161\code
162 (: "admin-script-1" :)162 (: "admin-script-1" :)
163163
164 import module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";164 import module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl";
165165
166 import module namespace news-data = "http://www.news.org/data";166 import module namespace news-data = "http://www.news.org/data";
167167
@@ -222,7 +222,7 @@
222\code222\code
223 (: "user-script-1":)223 (: "user-script-1":)
224224
225 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";225 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
226226
227 import module namespace http = "http://www.zorba-xquery.com/modules/http-client";227 import module namespace http = "http://www.zorba-xquery.com/modules/http-client";
228228
@@ -257,7 +257,7 @@
257\code257\code
258 (: admin-script2 :)258 (: admin-script2 :)
259259
260 import module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";260 import module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl";
261261
262 import module namespace news-data = "http://www.news.org/data";262 import module namespace news-data = "http://www.news.org/data";
263263
@@ -1010,7 +1010,7 @@
10101010
1011 module namespace news-data = "http://www.news.org/data";1011 module namespace news-data = "http://www.news.org/data";
10121012
1013 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";1013 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
10141014
1015 import schema namespace news-schemas = "http://www.news.org/schemas";1015 import schema namespace news-schemas = "http://www.news.org/schemas";
10161016
@@ -1078,7 +1078,7 @@
1078\code1078\code
1079 (: The "admin-script-3" script :)1079 (: The "admin-script-3" script :)
10801080
1081 import module namespace iddf = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl";1081 import module namespace iddf = "http://zorba.io/modules/store/static/indexes/ddl";
10821082
1083 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1083 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
10841084
@@ -1156,7 +1156,7 @@
1156\code1156\code
1157 (: The "probe-1" query :)1157 (: The "probe-1" query :)
11581158
1159 import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";1159 import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml";
11601160
1161 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1161 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
11621162
@@ -1167,7 +1167,7 @@
1167\code1167\code
1168 (: The "probe-2" query :)1168 (: The "probe-2" query :)
11691169
1170 import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";1170 import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml";
11711171
1172 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1172 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
11731173
@@ -1178,7 +1178,7 @@
1178\code1178\code
1179 (: The "probe-3" query :)1179 (: The "probe-3" query :)
11801180
1181 import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";1181 import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml";
11821182
1183 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1183 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
11841184
@@ -1189,7 +1189,7 @@
1189\code1189\code
1190 (: The "no-probe-1" query :)1190 (: The "no-probe-1" query :)
11911191
1192 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";1192 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
11931193
1194 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1194 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
11951195
@@ -1200,7 +1200,7 @@
1200\code1200\code
1201 (: The "no-probe-2" query :)1201 (: The "no-probe-2" query :)
12021202
1203 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";1203 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
12041204
1205 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1205 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
12061206
@@ -1215,7 +1215,7 @@
1215\code1215\code
1216 (: The "probe-3" query :)1216 (: The "probe-3" query :)
12171217
1218 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";1218 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
12191219
1220 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1220 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
12211221
@@ -1265,7 +1265,7 @@
1265\code1265\code
1266 (: The "index-maintenance" query :)1266 (: The "index-maintenance" query :)
12671267
1268 import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";1268 import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
12691269
1270 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1270 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
12711271
@@ -1286,7 +1286,7 @@
1286\code1286\code
1287 (: The "admin-script-4" query :)1287 (: The "admin-script-4" query :)
12881288
1289 import module namespace iddl = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl";1289 import module namespace iddl = "http://zorba.io/modules/store/static/indexes/ddl";
12901290
1291 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";1291 import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
12921292
@@ -1978,7 +1978,7 @@
1978Each node in the sequence represents one key contained in the index and has the following structure:1978Each node in the sequence represents one key contained in the index and has the following structure:
19791979
1980\code1980\code
1981 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">1981 <key xmlns="http://zorba.io/modules/store/static/indexes/dml">
1982 <attribute value="key_1"/>1982 <attribute value="key_1"/>
1983 ...1983 ...
1984 <attribute value="key_n"/>1984 <attribute value="key_n"/>
@@ -2461,4 +2461,4 @@
2461\n <a name="ERRZDDY0034" id="ERRZDDY0034"></a>zerr:ZDDY0034, Index range-value2461\n <a name="ERRZDDY0034" id="ERRZDDY0034"></a>zerr:ZDDY0034, Index range-value
2462 probe has search keys with incompatible types2462 probe has search keys with incompatible types
2463</strong>2463</strong>
2464*/
2465\ No newline at end of file2464\ No newline at end of file
2465*/
24662466
=== modified file 'doc/zorba/xqdoc/images/modules.svg'
--- doc/zorba/xqdoc/images/modules.svg 2013-10-16 21:47:22 +0000
+++ doc/zorba/xqdoc/images/modules.svg 2013-10-17 02:02:41 +0000
@@ -1364,63 +1364,63 @@
1364</g>1364</g>
1365<!-- 14 -->1365<!-- 14 -->
1366<g id="node86" class="node"><title>14</title>1366<g id="node86" class="node"><title>14</title>
1367<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1367<a xlink:href="../zorba.io_modules_store_dynamic_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/ddl">
1368<ellipse fill="white" stroke="white" cx="4258" cy="-385" rx="27" ry="18"/>1368<ellipse fill="white" stroke="white" cx="4258" cy="-385" rx="27" ry="18"/>
1369<text text-anchor="middle" x="4258" y="-381.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>1369<text text-anchor="middle" x="4258" y="-381.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>
1370</a>1370</a>
1371</g>1371</g>
1372<!-- 15 -->1372<!-- 15 -->
1373<g id="node88" class="node"><title>15</title>1373<g id="node88" class="node"><title>15</title>
1374<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1374<a xlink:href="../zorba.io_modules_store_dynamic_collections_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/dml">
1375<ellipse fill="white" stroke="white" cx="4258" cy="-538" rx="27" ry="18"/>1375<ellipse fill="white" stroke="white" cx="4258" cy="-538" rx="27" ry="18"/>
1376<text text-anchor="middle" x="4258" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>1376<text text-anchor="middle" x="4258" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>
1377</a>1377</a>
1378</g>1378</g>
1379<!-- 18 -->1379<!-- 18 -->
1380<g id="node90" class="node"><title>18</title>1380<g id="node90" class="node"><title>18</title>
1381<a xlink:href="../www.zorba-xquery.com_modules_store_static_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/collections/ddl">1381<a xlink:href="../zorba.io_modules_store_static_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/collections/ddl">
1382<ellipse fill="white" stroke="white" cx="4613" cy="-660" rx="27" ry="18"/>1382<ellipse fill="white" stroke="white" cx="4613" cy="-660" rx="27" ry="18"/>
1383<text text-anchor="middle" x="4613" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>1383<text text-anchor="middle" x="4613" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>
1384</a>1384</a>
1385</g>1385</g>
1386<!-- 19 -->1386<!-- 19 -->
1387<g id="node92" class="node"><title>19</title>1387<g id="node92" class="node"><title>19</title>
1388<a xlink:href="../www.zorba-xquery.com_modules_store_static_collections_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/collections/dml">1388<a xlink:href="../zorba.io_modules_store_static_collections_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/collections/dml">
1389<ellipse fill="white" stroke="white" cx="4460" cy="-660" rx="27" ry="18"/>1389<ellipse fill="white" stroke="white" cx="4460" cy="-660" rx="27" ry="18"/>
1390<text text-anchor="middle" x="4460" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>1390<text text-anchor="middle" x="4460" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>
1391</a>1391</a>
1392</g>1392</g>
1393<!-- 16 -->1393<!-- 16 -->
1394<g id="node94" class="node"><title>16</title>1394<g id="node94" class="node"><title>16</title>
1395<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl">1395<a xlink:href="../zorba.io_modules_store_dynamic_collections_w3c_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/w3c/ddl">
1396<ellipse fill="white" stroke="white" cx="4439" cy="-538" rx="27" ry="18"/>1396<ellipse fill="white" stroke="white" cx="4439" cy="-538" rx="27" ry="18"/>
1397<text text-anchor="middle" x="4439" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>1397<text text-anchor="middle" x="4439" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>
1398</a>1398</a>
1399</g>1399</g>
1400<!-- 16&#45;&gt;14 -->1400<!-- 16&#45;&gt;14 -->
1401<g id="edge176" class="edge"><title>16-&gt;14</title>1401<g id="edge176" class="edge"><title>16-&gt;14</title>
1402<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1402<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/ddl, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1403<path fill="none" stroke="black" d="M4422.71,-523.159C4415.73,-517.243 4407.48,-510.269 4400,-504 4358.64,-469.321 4310.26,-429.213 4281.98,-405.82"/>1403<path fill="none" stroke="black" d="M4422.71,-523.159C4415.73,-517.243 4407.48,-510.269 4400,-504 4358.64,-469.321 4310.26,-429.213 4281.98,-405.82"/>
1404<polygon fill="black" stroke="black" points="4284.16,-403.079 4274.22,-399.403 4279.7,-408.473 4284.16,-403.079"/>1404<polygon fill="black" stroke="black" points="4284.16,-403.079 4274.22,-399.403 4279.7,-408.473 4284.16,-403.079"/>
1405</a>1405</a>
1406</g>1406</g>
1407<!-- 17 -->1407<!-- 17 -->
1408<g id="node96" class="node"><title>17</title>1408<g id="node96" class="node"><title>17</title>
1409<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_w3c_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml">1409<a xlink:href="../zorba.io_modules_store_dynamic_collections_w3c_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/w3c/dml">
1410<ellipse fill="white" stroke="white" cx="4299" cy="-660" rx="27" ry="18"/>1410<ellipse fill="white" stroke="white" cx="4299" cy="-660" rx="27" ry="18"/>
1411<text text-anchor="middle" x="4299" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>1411<text text-anchor="middle" x="4299" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>
1412</a>1412</a>
1413</g>1413</g>
1414<!-- 17&#45;&gt;15 -->1414<!-- 17&#45;&gt;15 -->
1415<g id="edge180" class="edge"><title>17-&gt;15</title>1415<g id="edge180" class="edge"><title>17-&gt;15</title>
1416<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1416<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1417<path fill="none" stroke="black" d="M4293.3,-642.315C4286.51,-622.456 4275.1,-589.042 4267.09,-565.604"/>1417<path fill="none" stroke="black" d="M4293.3,-642.315C4286.51,-622.456 4275.1,-589.042 4267.09,-565.604"/>
1418<polygon fill="black" stroke="black" points="4270.33,-564.262 4263.78,-555.931 4263.71,-566.525 4270.33,-564.262"/>1418<polygon fill="black" stroke="black" points="4270.33,-564.262 4263.78,-555.931 4263.71,-566.525 4270.33,-564.262"/>
1419</a>1419</a>
1420</g>1420</g>
1421<!-- 17&#45;&gt;16 -->1421<!-- 17&#45;&gt;16 -->
1422<g id="edge178" class="edge"><title>17-&gt;16</title>1422<g id="edge178" class="edge"><title>17-&gt;16</title>
1423<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl">1423<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/w3c/ddl">
1424<path fill="none" stroke="black" d="M4321.35,-649.59C4337.36,-642.897 4359.45,-633.755 4379,-626 4388.28,-622.318 4392.61,-624.721 4400,-618 4415.27,-604.107 4425.28,-582.901 4431.33,-565.957"/>1424<path fill="none" stroke="black" d="M4321.35,-649.59C4337.36,-642.897 4359.45,-633.755 4379,-626 4388.28,-622.318 4392.61,-624.721 4400,-618 4415.27,-604.107 4425.28,-582.901 4431.33,-565.957"/>
1425<polygon fill="black" stroke="black" points="4434.79,-566.654 4434.6,-556.061 4428.14,-564.459 4434.79,-566.654"/>1425<polygon fill="black" stroke="black" points="4434.79,-566.654 4434.6,-556.061 4428.14,-564.459 4434.79,-566.654"/>
1426</a>1426</a>
@@ -1434,14 +1434,14 @@
1434</g>1434</g>
1435<!-- 70&#45;&gt;14 -->1435<!-- 70&#45;&gt;14 -->
1436<g id="edge246" class="edge"><title>70-&gt;14</title>1436<g id="edge246" class="edge"><title>70-&gt;14</title>
1437<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1437<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1438<path fill="none" stroke="black" d="M4087.04,-642.54C4104.5,-614.043 4141.78,-553.788 4175,-504 4197.06,-470.931 4223.68,-433.508 4240.71,-409.841"/>1438<path fill="none" stroke="black" d="M4087.04,-642.54C4104.5,-614.043 4141.78,-553.788 4175,-504 4197.06,-470.931 4223.68,-433.508 4240.71,-409.841"/>
1439<polygon fill="black" stroke="black" points="4243.73,-411.64 4246.74,-401.483 4238.05,-407.544 4243.73,-411.64"/>1439<polygon fill="black" stroke="black" points="4243.73,-411.64 4246.74,-401.483 4238.05,-407.544 4243.73,-411.64"/>
1440</a>1440</a>
1441</g>1441</g>
1442<!-- 70&#45;&gt;15 -->1442<!-- 70&#45;&gt;15 -->
1443<g id="edge248" class="edge"><title>70-&gt;15</title>1443<g id="edge248" class="edge"><title>70-&gt;15</title>
1444<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1444<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1445<path fill="none" stroke="black" d="M4095.18,-644.869C4103.02,-638.903 4112.36,-631.971 4121,-626 4157.86,-600.53 4201.79,-573.132 4229.78,-556.03"/>1445<path fill="none" stroke="black" d="M4095.18,-644.869C4103.02,-638.903 4112.36,-631.971 4121,-626 4157.86,-600.53 4201.79,-573.132 4229.78,-556.03"/>
1446<polygon fill="black" stroke="black" points="4231.91,-558.832 4238.63,-550.642 4228.27,-552.853 4231.91,-558.832"/>1446<polygon fill="black" stroke="black" points="4231.91,-558.832 4238.63,-550.642 4228.27,-552.853 4231.91,-558.832"/>
1447</a>1447</a>
@@ -1455,14 +1455,14 @@
1455</g>1455</g>
1456<!-- 72&#45;&gt;14 -->1456<!-- 72&#45;&gt;14 -->
1457<g id="edge250" class="edge"><title>72-&gt;14</title>1457<g id="edge250" class="edge"><title>72-&gt;14</title>
1458<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1458<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1459<path fill="none" stroke="black" d="M4167.86,-642.334C4184,-596.452 4229.16,-468.005 4248.75,-412.312"/>1459<path fill="none" stroke="black" d="M4167.86,-642.334C4184,-596.452 4229.16,-468.005 4248.75,-412.312"/>
1460<polygon fill="black" stroke="black" points="4252.08,-413.39 4252.09,-402.795 4245.47,-411.068 4252.08,-413.39"/>1460<polygon fill="black" stroke="black" points="4252.08,-413.39 4252.09,-402.795 4245.47,-411.068 4252.08,-413.39"/>
1461</a>1461</a>
1462</g>1462</g>
1463<!-- 72&#45;&gt;15 -->1463<!-- 72&#45;&gt;15 -->
1464<g id="edge252" class="edge"><title>72-&gt;15</title>1464<g id="edge252" class="edge"><title>72-&gt;15</title>
1465<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1465<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1466<path fill="none" stroke="black" d="M4174.55,-643.312C4191.1,-622.626 4220.35,-586.063 4239.45,-562.183"/>1466<path fill="none" stroke="black" d="M4174.55,-643.312C4191.1,-622.626 4220.35,-586.063 4239.45,-562.183"/>
1467<polygon fill="black" stroke="black" points="4242.24,-564.307 4245.75,-554.312 4236.77,-559.935 4242.24,-564.307"/>1467<polygon fill="black" stroke="black" points="4242.24,-564.307 4245.75,-554.312 4236.77,-559.935 4242.24,-564.307"/>
1468</a>1468</a>
@@ -1476,35 +1476,35 @@
1476</g>1476</g>
1477<!-- 13 -->1477<!-- 13 -->
1478<g id="node105" class="node"><title>13</title>1478<g id="node105" class="node"><title>13</title>
1479<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/documents">1479<a xlink:href="../zorba.io_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/documents">
1480<ellipse fill="white" stroke="white" cx="3804" cy="-660" rx="49.0941" ry="18"/>1480<ellipse fill="white" stroke="white" cx="3804" cy="-660" rx="49.0941" ry="18"/>
1481<text text-anchor="middle" x="3804" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">documents</text>1481<text text-anchor="middle" x="3804" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">documents</text>
1482</a>1482</a>
1483</g>1483</g>
1484<!-- 20 -->1484<!-- 20 -->
1485<g id="node108" class="node"><title>20</title>1485<g id="node108" class="node"><title>20</title>
1486<a xlink:href="../www.zorba-xquery.com_modules_store_static_indexes_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/indexes/ddl">1486<a xlink:href="../zorba.io_modules_store_static_indexes_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/indexes/ddl">
1487<ellipse fill="white" stroke="white" cx="3663" cy="-660" rx="27" ry="18"/>1487<ellipse fill="white" stroke="white" cx="3663" cy="-660" rx="27" ry="18"/>
1488<text text-anchor="middle" x="3663" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>1488<text text-anchor="middle" x="3663" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>
1489</a>1489</a>
1490</g>1490</g>
1491<!-- 21 -->1491<!-- 21 -->
1492<g id="node110" class="node"><title>21</title>1492<g id="node110" class="node"><title>21</title>
1493<a xlink:href="../www.zorba-xquery.com_modules_store_static_indexes_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/indexes/dml">1493<a xlink:href="../zorba.io_modules_store_static_indexes_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/indexes/dml">
1494<ellipse fill="white" stroke="white" cx="3510" cy="-660" rx="27" ry="18"/>1494<ellipse fill="white" stroke="white" cx="3510" cy="-660" rx="27" ry="18"/>
1495<text text-anchor="middle" x="3510" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>1495<text text-anchor="middle" x="3510" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>
1496</a>1496</a>
1497</g>1497</g>
1498<!-- 22 -->1498<!-- 22 -->
1499<g id="node113" class="node"><title>22</title>1499<g id="node113" class="node"><title>22</title>
1500<a xlink:href="../www.zorba-xquery.com_modules_store_static_integrity_constraints_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl">1500<a xlink:href="../zorba.io_modules_store_static_integrity_constraints_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/integrity_constraints/ddl">
1501<ellipse fill="white" stroke="white" cx="3341" cy="-660" rx="27" ry="18"/>1501<ellipse fill="white" stroke="white" cx="3341" cy="-660" rx="27" ry="18"/>
1502<text text-anchor="middle" x="3341" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>1502<text text-anchor="middle" x="3341" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text>
1503</a>1503</a>
1504</g>1504</g>
1505<!-- 23 -->1505<!-- 23 -->
1506<g id="node115" class="node"><title>23</title>1506<g id="node115" class="node"><title>23</title>
1507<a xlink:href="../www.zorba-xquery.com_modules_store_static_integrity_constraints_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml">1507<a xlink:href="../zorba.io_modules_store_static_integrity_constraints_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/integrity_constraints/dml">
1508<ellipse fill="white" stroke="white" cx="3188" cy="-660" rx="27" ry="18"/>1508<ellipse fill="white" stroke="white" cx="3188" cy="-660" rx="27" ry="18"/>
1509<text text-anchor="middle" x="3188" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>1509<text text-anchor="middle" x="3188" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text>
1510</a>1510</a>
@@ -2166,4 +2166,4 @@
2166</a>2166</a>
2167</g>2167</g>
2168</g>2168</g>
2169</svg>
2170\ No newline at end of file2169\ No newline at end of file
2170</svg>
21712171
=== modified file 'doc/zorba/xqdoc/images/modules_new.svg'
--- doc/zorba/xqdoc/images/modules_new.svg 2013-10-16 22:24:04 +0000
+++ doc/zorba/xqdoc/images/modules_new.svg 2013-10-17 02:02:41 +0000
@@ -1370,63 +1370,63 @@
1370</g>1370</g>
1371<!-- 6 -->1371<!-- 6 -->
1372<g id="node86" class="node"><title>6</title>1372<g id="node86" class="node"><title>6</title>
1373<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1373<a xlink:href="../zorba.io_modules_store_dynamic_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/ddl">
1374<ellipse fill="white" stroke="white" cx="6457" cy="-407" rx="27" ry="18.3848"/>1374<ellipse fill="white" stroke="white" cx="6457" cy="-407" rx="27" ry="18.3848"/>
1375<text text-anchor="middle" x="6457" y="-403.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>1375<text text-anchor="middle" x="6457" y="-403.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>
1376</a>1376</a>
1377</g>1377</g>
1378<!-- 7 -->1378<!-- 7 -->
1379<g id="node88" class="node"><title>7</title>1379<g id="node88" class="node"><title>7</title>
1380<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1380<a xlink:href="../zorba.io_modules_store_dynamic_collections_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/dml">
1381<ellipse fill="white" stroke="white" cx="6459" cy="-571" rx="28.9914" ry="18.3848"/>1381<ellipse fill="white" stroke="white" cx="6459" cy="-571" rx="28.9914" ry="18.3848"/>
1382<text text-anchor="middle" x="6459" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>1382<text text-anchor="middle" x="6459" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>
1383</a>1383</a>
1384</g>1384</g>
1385<!-- 10 -->1385<!-- 10 -->
1386<g id="node90" class="node"><title>10</title>1386<g id="node90" class="node"><title>10</title>
1387<a xlink:href="../www.zorba-xquery.com_modules_store_static_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/collections/ddl">1387<a xlink:href="../zorba.io_modules_store_static_collections_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/collections/ddl">
1388<ellipse fill="white" stroke="white" cx="6891" cy="-701" rx="27" ry="18.3848"/>1388<ellipse fill="white" stroke="white" cx="6891" cy="-701" rx="27" ry="18.3848"/>
1389<text text-anchor="middle" x="6891" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>1389<text text-anchor="middle" x="6891" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>
1390</a>1390</a>
1391</g>1391</g>
1392<!-- 11 -->1392<!-- 11 -->
1393<g id="node92" class="node"><title>11</title>1393<g id="node92" class="node"><title>11</title>
1394<a xlink:href="../www.zorba-xquery.com_modules_store_static_collections_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/collections/dml">1394<a xlink:href="../zorba.io_modules_store_static_collections_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/collections/dml">
1395<ellipse fill="white" stroke="white" cx="6706" cy="-701" rx="28.9914" ry="18.3848"/>1395<ellipse fill="white" stroke="white" cx="6706" cy="-701" rx="28.9914" ry="18.3848"/>
1396<text text-anchor="middle" x="6706" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>1396<text text-anchor="middle" x="6706" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>
1397</a>1397</a>
1398</g>1398</g>
1399<!-- 8 -->1399<!-- 8 -->
1400<g id="node94" class="node"><title>8</title>1400<g id="node94" class="node"><title>8</title>
1401<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl">1401<a xlink:href="../zorba.io_modules_store_dynamic_collections_w3c_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/w3c/ddl">
1402<ellipse fill="white" stroke="white" cx="6674" cy="-571" rx="27" ry="18.3848"/>1402<ellipse fill="white" stroke="white" cx="6674" cy="-571" rx="27" ry="18.3848"/>
1403<text text-anchor="middle" x="6674" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>1403<text text-anchor="middle" x="6674" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>
1404</a>1404</a>
1405</g>1405</g>
1406<!-- 8&#45;&gt;6 -->1406<!-- 8&#45;&gt;6 -->
1407<g id="edge173" class="edge"><title>8-&gt;6</title>1407<g id="edge173" class="edge"><title>8-&gt;6</title>
1408<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1408<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/ddl, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1409<path fill="none" stroke="black" d="M6658.01,-555.967C6651.08,-549.633 6642.79,-542.287 6635,-536 6583.67,-494.557 6520.51,-450.268 6484.89,-425.87"/>1409<path fill="none" stroke="black" d="M6658.01,-555.967C6651.08,-549.633 6642.79,-542.287 6635,-536 6583.67,-494.557 6520.51,-450.268 6484.89,-425.87"/>
1410<polygon fill="black" stroke="black" points="6486.69,-422.858 6476.45,-420.11 6482.74,-428.639 6486.69,-422.858"/>1410<polygon fill="black" stroke="black" points="6486.69,-422.858 6476.45,-420.11 6482.74,-428.639 6486.69,-422.858"/>
1411</a>1411</a>
1412</g>1412</g>
1413<!-- 9 -->1413<!-- 9 -->
1414<g id="node96" class="node"><title>9</title>1414<g id="node96" class="node"><title>9</title>
1415<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_collections_w3c_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml">1415<a xlink:href="../zorba.io_modules_store_dynamic_collections_w3c_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/dynamic/collections/w3c/dml">
1416<ellipse fill="white" stroke="white" cx="6513" cy="-701" rx="28.9914" ry="18.3848"/>1416<ellipse fill="white" stroke="white" cx="6513" cy="-701" rx="28.9914" ry="18.3848"/>
1417<text text-anchor="middle" x="6513" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>1417<text text-anchor="middle" x="6513" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>
1418</a>1418</a>
1419</g>1419</g>
1420<!-- 9&#45;&gt;7 -->1420<!-- 9&#45;&gt;7 -->
1421<g id="edge177" class="edge"><title>9-&gt;7</title>1421<g id="edge177" class="edge"><title>9-&gt;7</title>
1422<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1422<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1423<path fill="none" stroke="black" d="M6505.49,-682.924C6496.38,-660.998 6480.94,-623.818 6470.37,-598.372"/>1423<path fill="none" stroke="black" d="M6505.49,-682.924C6496.38,-660.998 6480.94,-623.818 6470.37,-598.372"/>
1424<polygon fill="black" stroke="black" points="6473.51,-596.815 6466.44,-588.922 6467.05,-599.5 6473.51,-596.815"/>1424<polygon fill="black" stroke="black" points="6473.51,-596.815 6466.44,-588.922 6467.05,-599.5 6473.51,-596.815"/>
1425</a>1425</a>
1426</g>1426</g>
1427<!-- 9&#45;&gt;8 -->1427<!-- 9&#45;&gt;8 -->
1428<g id="edge175" class="edge"><title>9-&gt;8</title>1428<g id="edge175" class="edge"><title>9-&gt;8</title>
1429<a xlink:title="FROM: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl">1429<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/w3c/ddl">
1430<path fill="none" stroke="black" d="M6537.85,-691.343C6556.92,-684.052 6583.98,-673.974 6608,-666 6619.88,-662.057 6625.58,-666.241 6635,-658 6652.42,-642.757 6662.45,-618.201 6667.96,-599.059"/>1430<path fill="none" stroke="black" d="M6537.85,-691.343C6556.92,-684.052 6583.98,-673.974 6608,-666 6619.88,-662.057 6625.58,-666.241 6635,-658 6652.42,-642.757 6662.45,-618.201 6667.96,-599.059"/>
1431<polygon fill="black" stroke="black" points="6671.36,-599.908 6670.51,-589.347 6664.59,-598.13 6671.36,-599.908"/>1431<polygon fill="black" stroke="black" points="6671.36,-599.908 6670.51,-589.347 6664.59,-598.13 6671.36,-599.908"/>
1432</a>1432</a>
@@ -1440,14 +1440,14 @@
1440</g>1440</g>
1441<!-- 53&#45;&gt;6 -->1441<!-- 53&#45;&gt;6 -->
1442<g id="edge227" class="edge"><title>53-&gt;6</title>1442<g id="edge227" class="edge"><title>53-&gt;6</title>
1443<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1443<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1444<path fill="none" stroke="black" d="M6263.39,-683.153C6284.43,-652.861 6328.51,-589.462 6366,-536 6391.34,-499.867 6420.8,-458.155 6439.18,-432.176"/>1444<path fill="none" stroke="black" d="M6263.39,-683.153C6284.43,-652.861 6328.51,-589.462 6366,-536 6391.34,-499.867 6420.8,-458.155 6439.18,-432.176"/>
1445<polygon fill="black" stroke="black" points="6442.27,-433.862 6445.19,-423.678 6436.56,-429.819 6442.27,-433.862"/>1445<polygon fill="black" stroke="black" points="6442.27,-433.862 6445.19,-423.678 6436.56,-429.819 6442.27,-433.862"/>
1446</a>1446</a>
1447</g>1447</g>
1448<!-- 53&#45;&gt;7 -->1448<!-- 53&#45;&gt;7 -->
1449<g id="edge229" class="edge"><title>53-&gt;7</title>1449<g id="edge229" class="edge"><title>53-&gt;7</title>
1450<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1450<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1451<path fill="none" stroke="black" d="M6274.11,-685.496C6283.36,-679.355 6294.14,-672.275 6304,-666 6347.14,-638.547 6397.75,-607.795 6429.1,-588.913"/>1451<path fill="none" stroke="black" d="M6274.11,-685.496C6283.36,-679.355 6294.14,-672.275 6304,-666 6347.14,-638.547 6397.75,-607.795 6429.1,-588.913"/>
1452<polygon fill="black" stroke="black" points="6431.04,-591.837 6437.8,-583.683 6427.43,-585.838 6431.04,-591.837"/>1452<polygon fill="black" stroke="black" points="6431.04,-591.837 6437.8,-583.683 6427.43,-585.838 6431.04,-591.837"/>
1453</a>1453</a>
@@ -1461,14 +1461,14 @@
1461</g>1461</g>
1462<!-- 51&#45;&gt;6 -->1462<!-- 51&#45;&gt;6 -->
1463<g id="edge223" class="edge"><title>51-&gt;6</title>1463<g id="edge223" class="edge"><title>51-&gt;6</title>
1464<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl">1464<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/ddl">
1465<path fill="none" stroke="black" d="M6359.51,-682.609C6377.2,-632.579 6426.29,-493.805 6447.28,-434.475"/>1465<path fill="none" stroke="black" d="M6359.51,-682.609C6377.2,-632.579 6426.29,-493.805 6447.28,-434.475"/>
1466<polygon fill="black" stroke="black" points="6450.59,-435.603 6450.63,-425.009 6443.99,-433.269 6450.59,-435.603"/>1466<polygon fill="black" stroke="black" points="6450.59,-435.603 6450.63,-425.009 6443.99,-433.269 6450.59,-435.603"/>
1467</a>1467</a>
1468</g>1468</g>
1469<!-- 51&#45;&gt;7 -->1469<!-- 51&#45;&gt;7 -->
1470<g id="edge225" class="edge"><title>51-&gt;7</title>1470<g id="edge225" class="edge"><title>51-&gt;7</title>
1471<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml">1471<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/dml">
1472<path fill="none" stroke="black" d="M6367.08,-683.737C6385.57,-661.052 6418.17,-621.077 6439.16,-595.331"/>1472<path fill="none" stroke="black" d="M6367.08,-683.737C6385.57,-661.052 6418.17,-621.077 6439.16,-595.331"/>
1473<polygon fill="black" stroke="black" points="6441.93,-597.474 6445.54,-587.512 6436.5,-593.05 6441.93,-597.474"/>1473<polygon fill="black" stroke="black" points="6441.93,-597.474 6445.54,-587.512 6436.5,-593.05 6441.93,-597.474"/>
1474</a>1474</a>
@@ -1482,35 +1482,35 @@
1482</g>1482</g>
1483<!-- 5 -->1483<!-- 5 -->
1484<g id="node105" class="node"><title>5</title>1484<g id="node105" class="node"><title>5</title>
1485<a xlink:href="../www.zorba-xquery.com_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/dynamic/documents">1485<a xlink:href="../zorba.io_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/documents">
1486<ellipse fill="white" stroke="white" cx="5907" cy="-701" rx="65.0538" ry="18.3848"/>1486<ellipse fill="white" stroke="white" cx="5907" cy="-701" rx="65.0538" ry="18.3848"/>
1487<text text-anchor="middle" x="5907" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">documents</text>1487<text text-anchor="middle" x="5907" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">documents</text>
1488</a>1488</a>
1489</g>1489</g>
1490<!-- 12 -->1490<!-- 12 -->
1491<g id="node108" class="node"><title>12</title>1491<g id="node108" class="node"><title>12</title>
1492<a xlink:href="../www.zorba-xquery.com_modules_store_static_indexes_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/indexes/ddl">1492<a xlink:href="../zorba.io_modules_store_static_indexes_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/indexes/ddl">
1493<ellipse fill="white" stroke="white" cx="5734" cy="-701" rx="27" ry="18.3848"/>1493<ellipse fill="white" stroke="white" cx="5734" cy="-701" rx="27" ry="18.3848"/>
1494<text text-anchor="middle" x="5734" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>1494<text text-anchor="middle" x="5734" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>
1495</a>1495</a>
1496</g>1496</g>
1497<!-- 13 -->1497<!-- 13 -->
1498<g id="node110" class="node"><title>13</title>1498<g id="node110" class="node"><title>13</title>
1499<a xlink:href="../www.zorba-xquery.com_modules_store_static_indexes_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/indexes/dml">1499<a xlink:href="../zorba.io_modules_store_static_indexes_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/indexes/dml">
1500<ellipse fill="white" stroke="white" cx="5549" cy="-701" rx="28.9914" ry="18.3848"/>1500<ellipse fill="white" stroke="white" cx="5549" cy="-701" rx="28.9914" ry="18.3848"/>
1501<text text-anchor="middle" x="5549" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>1501<text text-anchor="middle" x="5549" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>
1502</a>1502</a>
1503</g>1503</g>
1504<!-- 14 -->1504<!-- 14 -->
1505<g id="node113" class="node"><title>14</title>1505<g id="node113" class="node"><title>14</title>
1506<a xlink:href="../www.zorba-xquery.com_modules_store_static_integrity_constraints_ddl.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl">1506<a xlink:href="../zorba.io_modules_store_static_integrity_constraints_ddl.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/integrity_constraints/ddl">
1507<ellipse fill="white" stroke="white" cx="5347" cy="-701" rx="27" ry="18.3848"/>1507<ellipse fill="white" stroke="white" cx="5347" cy="-701" rx="27" ry="18.3848"/>
1508<text text-anchor="middle" x="5347" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>1508<text text-anchor="middle" x="5347" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text>
1509</a>1509</a>
1510</g>1510</g>
1511<!-- 15 -->1511<!-- 15 -->
1512<g id="node115" class="node"><title>15</title>1512<g id="node115" class="node"><title>15</title>
1513<a xlink:href="../www.zorba-xquery.com_modules_store_static_integrity_constraints_dml.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml">1513<a xlink:href="../zorba.io_modules_store_static_integrity_constraints_dml.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/static/integrity_constraints/dml">
1514<ellipse fill="white" stroke="white" cx="5162" cy="-701" rx="28.9914" ry="18.3848"/>1514<ellipse fill="white" stroke="white" cx="5162" cy="-701" rx="28.9914" ry="18.3848"/>
1515<text text-anchor="middle" x="5162" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>1515<text text-anchor="middle" x="5162" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text>
1516</a>1516</a>
@@ -2210,4 +2210,4 @@
2210</a>2210</a>
2211</g>2211</g>
2212</g>2212</g>
2213</svg>
2214\ No newline at end of file2213\ No newline at end of file
2214</svg>
22152215
=== modified file 'doc/zorba/xqdoc/src/zorba_module_dependencies.xqy'
--- doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-16 21:47:22 +0000
+++ doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-17 02:02:41 +0000
@@ -29,8 +29,8 @@
29import module namespace dot = "http://www.zorba-xquery.com/modules/image/graphviz";29import module namespace dot = "http://www.zorba-xquery.com/modules/image/graphviz";
30import module namespace xqd = "http://zorba.io/modules/xqdoc";30import module namespace xqd = "http://zorba.io/modules/xqdoc";
31import module namespace fetch = "http://zorba.io/modules/fetch";31import module namespace fetch = "http://zorba.io/modules/fetch";
32import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";32import module namespace dml = "http://zorba.io/modules/store/static/collections/dml";
33import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";33import module namespace ddl = "http://zorba.io/modules/store/static/collections/ddl";
34import module namespace menu = "http://www.zorba-xquery.com/modules/xqdoc/menu";34import module namespace menu = "http://www.zorba-xquery.com/modules/xqdoc/menu";
35import module namespace xqdoc-html = "http://www.zorba-xquery.com/xqdoc-html" at "xqdoc-html.xqy";35import module namespace xqdoc-html = "http://www.zorba-xquery.com/xqdoc-html" at "xqdoc-html.xqy";
3636
@@ -116,7 +116,7 @@
116 insert node <module uri="{$moduleURI}"116 insert node <module uri="{$moduleURI}"
117 isCore="{data($module/@isCore)}"/> as last into $z:ZorbaManifest;117 isCore="{data($module/@isCore)}"/> as last into $z:ZorbaManifest;
118 118
119 dml:apply-insert-nodes($z:collection, $xqdoc);119 dml:apply-insert($z:collection, $xqdoc);
120 120
121 }121 }
122 }122 }
@@ -136,7 +136,7 @@
136136
137declare %an:sequential function z:delete-collections()137declare %an:sequential function z:delete-collections()
138{ 138{
139 dml:delete-nodes(dml:collection(xs:QName("z:collection")));139 dml:delete(dml:collection(xs:QName("z:collection")));
140 ddl:delete(xs:QName("z:collection"));140 ddl:delete(xs:QName("z:collection"));
141};141};
142142
@@ -481,4 +481,4 @@
481 z:edges_modules(),"481 z:edges_modules(),"
482 }"482 }"
483 )483 )
484};
485\ No newline at end of file484\ No newline at end of file
485};
486486
=== modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt'
--- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-16 21:47:22 +0000
+++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-17 02:02:41 +0000
@@ -14,28 +14,6 @@
1414
15# Subdirectories15# Subdirectories
1616
17DECLARE_ZORBA_MODULE(FILE store/documents/dynamic.xq VERSION 2.0
18 URI "http://www.zorba-xquery.com/modules/store/dynamic/documents")
19DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/ddl.xq VERSION 2.0
20 URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl")
21DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/dml.xq VERSION 2.0
22 URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml")
23DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/ddl.xq VERSION 2.0
24 URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl")
25DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/dml.xq VERSION 2.0
26 URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml")
27DECLARE_ZORBA_MODULE(FILE store/static/collections/ddl.xq VERSION 2.0
28 URI "http://www.zorba-xquery.com/modules/store/static/collections/ddl")
29DECLARE_ZORBA_MODULE(FILE store/static/collections/dml.xq VERSION 2.0
30 URI "http://www.zorba-xquery.com/modules/store/static/collections/dml")
31DECLARE_ZORBA_MODULE(FILE store/static/indexes/ddl.xq VERSION 2.0
32 URI "http://www.zorba-xquery.com/modules/store/static/indexes/ddl")
33DECLARE_ZORBA_MODULE(FILE store/static/indexes/dml.xq VERSION 2.0
34 URI "http://www.zorba-xquery.com/modules/store/static/indexes/dml")
35DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/ddl.xq VERSION 2.0
36 URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl")
37DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/dml.xq VERSION 2.0
38 URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml")
39DECLARE_ZORBA_MODULE(FILE xqdoc/batch.xq VERSION 2.017DECLARE_ZORBA_MODULE(FILE xqdoc/batch.xq VERSION 2.0
40 URI "http://www.zorba-xquery.com/modules/xqdoc/batch")18 URI "http://www.zorba-xquery.com/modules/xqdoc/batch")
41DECLARE_ZORBA_MODULE(FILE xqdoc/html.xq VERSION 2.019DECLARE_ZORBA_MODULE(FILE xqdoc/html.xq VERSION 2.0
4220
=== removed directory 'modules/com/zorba-xquery/www/modules/store'
=== removed directory 'modules/com/zorba-xquery/www/modules/store/data-structures'
=== removed directory 'modules/com/zorba-xquery/www/modules/store/documents'
=== modified file 'modules/store/CMakeLists.txt'
--- modules/store/CMakeLists.txt 2013-08-24 23:44:26 +0000
+++ modules/store/CMakeLists.txt 2013-10-17 02:02:41 +0000
@@ -14,3 +14,29 @@
1414
15DECLARE_ZORBA_MODULE(FILE unordered-maps.xq VERSION 1.015DECLARE_ZORBA_MODULE(FILE unordered-maps.xq VERSION 1.0
16 URI "http://zorba.io/modules/unordered-maps")16 URI "http://zorba.io/modules/unordered-maps")
17
18DECLARE_ZORBA_MODULE(FILE documents.xq VERSION 2.0
19 URI "http://zorba.io/modules/store/documents")
20
21DECLARE_ZORBA_MODULE(FILE dynamic/collections/ddl.xq VERSION 2.0
22 URI "http://zorba.io/modules/store/dynamic/collections/ddl")
23DECLARE_ZORBA_MODULE(FILE dynamic/collections/dml.xq VERSION 2.0
24 URI "http://zorba.io/modules/store/dynamic/collections/dml")
25DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/ddl.xq VERSION 2.0
26 URI "http://zorba.io/modules/store/dynamic/collections/w3c/ddl")
27DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/dml.xq VERSION 2.0
28 URI "http://zorba.io/modules/store/dynamic/collections/w3c/dml")
29DECLARE_ZORBA_MODULE(FILE static/collections/ddl.xq VERSION 2.0
30 URI "http://zorba.io/modules/store/static/collections/ddl")
31DECLARE_ZORBA_MODULE(FILE static/collections/dml.xq VERSION 2.0
32 URI "http://zorba.io/modules/store/static/collections/dml")
33DECLARE_ZORBA_MODULE(FILE static/indexes/ddl.xq VERSION 2.0
34 URI "http://zorba.io/modules/store/static/indexes/ddl")
35DECLARE_ZORBA_MODULE(FILE static/indexes/dml.xq VERSION 2.0
36 URI "http://zorba.io/modules/store/static/indexes/dml")
37DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/ddl.xq VERSION 2.0
38 URI "http://zorba.io/modules/store/static/integrity-constraints/ddl")
39DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/dml.xq VERSION 2.0
40 URI "http://zorba.io/modules/store/static/integrity-constraints/dml")
41
42# vim:set et sw=2 ts=2:
1743
=== renamed file 'modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq' => 'modules/store/documents.xq'
--- modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq 2013-09-26 23:15:11 +0000
+++ modules/store/documents.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -20,100 +20,114 @@
20 : This module defines a set of functions which manage documents that20 : This module defines a set of functions which manage documents that
21 : are persisted in the store. Specifically, it contains functions21 : are persisted in the store. Specifically, it contains functions
22 : to put, remove, list, or retrieve documents.22 : to put, remove, list, or retrieve documents.
23 :23 : <p/>
24 : <p>Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a> for 24 : Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a>
25 : more information about the lifecycle management and manipulation of documents.</p>25 : for more information about the lifecycle management and manipulation of
26 : documents.
26 :27 :
27 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>28 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
28 : @see http://zorba.io/errors29 : @see http://zorba.io/errors
29 :
30 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis30 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
31 :
32 : @project Zorba/Data Store/Documents31 : @project Zorba/Data Store/Documents
33 :)32 :)
34module namespace doc = "http://www.zorba-xquery.com/modules/store/dynamic/documents";33module namespace doc = "http://zorba.io/modules/store/documents";
3534
36declare namespace zerr = "http://zorba.io/errors";35declare namespace zerr = "http://zorba.io/errors";
37declare namespace err = "http://www.w3.org/2005/xqt-errors";36declare namespace err = "http://www.w3.org/2005/xqt-errors";
38declare namespace ver = "http://zorba.io/options/versioning";37declare namespace ver = "http://zorba.io/options/versioning";
39declare option ver:module-version "2.0";38declare option ver:module-version "2.0";
4039
41(:~40(:===========================================================================:)
42 : Adds a document to the store. The document is bound to the URI41
43 : given as first parameter. This URI is the name of the document and42(:~
44 : can be used by the doc:document() function to retrieve43 : Retrieves a sequence of URIs of documents bound in the store.
45 : the document from the store.44 :
46 :45 : @return The list of URIs of the available documents in the store or the
47 : The semantics of the function is similar to the fn:put function. The difference46 : empty sequence if none.
48 : is that this function accepts only document nodes as parameters.47 :)
49 : Please note that this function does not try to fetch the document from the48declare function doc:available-documents()
50 : external resource identified by $uri. Instead, the file or http-client49 as xs:string* external;
51 : modules can be used to retrieve the resource as string and fn:parse-xml can be used50
52 : to parse the string returning a document.51(:~
53 :52 : Gets the document with the given URI from the store.
54 : @param $uri The URI of the document. If a relative URI is given, the URI
55 : is made absolute using the static base URI of the module.
56 : @param $doc The document node to be added to the store.
57 :
58 : @return an empty XDM instance and a pending update list which, when
59 : applied, adds the given document to the store.
60 :
61 : @error zerr:ZAPI0020 if the store already contains a document for the given $uri.
62 : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
63 :
64 :)
65declare updating function doc:put(
66 $uri as xs:string,
67 $doc as document-node()) external;
68
69(:~
70 : Removes the document with the given URI from the store.
71 :
72 : @param $uri The URI of the document to remove. If a relative URI is given,
73 : the URI is made absolute using the static base URI of the module.
74
75 : @return Returns an empty XDM instance and a pending update list which, when
76 : applied, removes the document bound to the given URI.
77 :
78 : @error zerr:ZXQD0002 if no document with the given URI exists in the store.
79 : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.
80 :)
81declare updating function doc:remove($uri as xs:string) external;
82
83(:~
84 : Returns the document with the given URI from the store.
85 :53 :
86 : The difference to fn:doc is that this function does not attempt to retrieve54 : The difference to fn:doc is that this function does not attempt to retrieve
87 : the resource from the file system or the web before returning it.55 : the resource from the file system or the web before returning it.
88 : Its only responsibility is to return the document from the store that was56 : Its only responsibility is to return the document from the store that was
89 : bound using fn:put or doc:put.57 : bound using fn:put or doc:put.
90 :58 :
91 : @param $uri The URI of the document to retrieve. If a relative URI is given,59 : @param $uri The URI of the document to retrieve.
92 : the URI is made absolute using the static base URI of the module.60 : If a relative URI is given, the URI is made absolute using the static base
93 :61 : URI of the module.
94 : @return Returns the document bound to the given URI.62 : @return Returns the document bound to the given URI.
95 :
96 : @error zerr:ZXQD0002 if no document with the given URI exists in the store.63 : @error zerr:ZXQD0002 if no document with the given URI exists in the store.
97 : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.64 : @error err:FODC0004 if the given URI is not valid or couldn't be made
98 :)65 : absolute.
99declare function doc:document($uri as xs:string) as document-node() external;66 :)
10067declare function doc:document( $uri as xs:string )
101(:~68 as document-node() external;
102 : Retrieves a sequence of URIs of documents bound in the store.
103 :
104 : @return The list of URIs of the available documents in the store. The empty
105 : sequence is returned if not document exists in the store.
106 :)
107declare function doc:available-documents() as xs:string* external;
10869
109(:~70(:~
110 : Returns true if a document with the given URI exists in the store.71 : Returns true if a document with the given URI exists in the store.
111 :72 :
112 : @param $uri The URI of the document to check for. If a relative URI is given,73 : @param $uri The URI of the document to check for.
74 : If a relative URI is given, the URI is made absolute using the static base
75 : URI of the module.
76 :
77 : @return Returns true if a document with the given URI exists in the store or
78 : false otherwise.
79 : @error err:FODC0004 if the given URI is not valid or couldn't be made
80 : absolute.
81 :)
82declare function doc:is-available-document( $uri as xs:string )
83 as xs:boolean external;
84
85(:~
86 : Adds a document to the store.
87 : The document is bound to the URI given as first parameter.
88 : This URI is the name of the document and can be used by the
89 : <code>doc:document()</code> function to retrieve the document from the
90 : store.
91 : <p/>
92 : The semantics of the function is similar to the <code>fn:put()</code>
93 : function.
94 : The difference is that this function accepts only document nodes as
95 : parameters.
96 : Please note that this function does not try to fetch the document from the
97 : external resource identified by the URI.
98 : Instead, the file or http-client modules can be used to retrieve the
99 : resource as string and <code>fn:parse-xml()</code> can be used to parse the
100 : string returning a document.
101 :
102 : @param $uri The URI of the document.
103 : If a relative URI is given, the URI is made absolute using the static base
104 : URI of the module.
105 : @param $doc The document node to be added to the store.
106 : @return An empty XDM instance and a pending update list that, when applied,
107 : adds the given document to the store.
108 : @error zerr:ZAPI0020 if the store already contains a document for the given
109 : URI.
110 : @error err:FODC0004 if the given URI is not valid or couldn't be made
111 : absolute.
112 :)
113declare updating function doc:put( $uri as xs:string,
114 $doc as document-node() )
115 external;
116
117(:~
118 : Removes the document with the given URI from the store.
119 :
120 : @param $uri The URI of the document to remove. If a relative URI is given,
113 : the URI is made absolute using the static base URI of the module.121 : the URI is made absolute using the static base URI of the module.
114 :122 : @return Returns an empty XDM instance and a pending update list that, when
115 : @return Returns true if a document with the given URI exists in the store or false otherwise.123 : applied, removes the document bound to the given URI.
116 :124 : @error zerr:ZXQD0002 if no document with the given URI exists in the store.
117 : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized.125 : @error err:FODC0004 if the given URI is not valid or couldn't be made
126 : absolute.
118 :)127 :)
119declare function doc:is-available-document($uri as xs:string) as xs:boolean external;128declare updating function doc:remove( $uri as xs:string )
129 external;
130
131(:===========================================================================:)
132
133(: vim:set et sw=2 ts=2: :)
120134
=== renamed directory 'modules/com/zorba-xquery/www/modules/store/dynamic' => 'modules/store/dynamic'
=== modified file 'modules/store/dynamic/collections/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/ddl.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,103 +17,89 @@
17:)17:)
1818
19(:~19(:~
20 : This modules defines a set of functions for managing persistent, ordered, and20 : This modules defines a set of functions for managing persistent, ordered,
21 : updatable collections.21 : and updatable collections.
22 :22 : <p/>
23 : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html">23 : Please refer to our documentation for
24 : more information</a> about the lifecycle management and the manipulation of such24 : <a href="../zorba/data_lifecycle.html">more information</a>
25 : collections.</p>25 : about the lifecycle management and the manipulation of such collections.
26 :26 :
27 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>27 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
28 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml28 : @see http://zorba.io/modules/store/dynamic/collections/dml
29 : @see http://zorba.io/errors29 : @see http://zorba.io/errors
30 :30 :
31 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis31 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
32 :
33 : @project Zorba/Data Store/Collections/Dynamic Data Definition32 : @project Zorba/Data Store/Collections/Dynamic Data Definition
34 :
35 :)33 :)
36module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";34module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/ddl";
3735
38declare namespace zerr = "http://zorba.io/errors";36declare namespace zerr = "http://zorba.io/errors";
39declare namespace ver = "http://zorba.io/options/versioning";37declare namespace ver = "http://zorba.io/options/versioning";
40declare option ver:module-version "2.0";38declare option ver:module-version "2.0";
4139
4240(:===========================================================================:)
43(:~41
44 : The create function is an updating function which creates42(:~
45 : the collection with the given expanded QName.43 : Gets the QNames of the collections that are available, if any.
46 :44 :
47 : @param $name The QName of the collection to create.45 : @return A sequence comprising one QName for each available collection
48 :46 : or an emtpy sequence if no collections are available.
49 : @return The result of the function is an empty XDM instance and a 47 :)
50 : pending update list which, once applied, creates a collection48declare function ddl:available-collections()
51 : with the given name.49 as xs:QName* external;
52 :50
53 : @error zerr:ZDDY0002 if a collection with the given expanded QName already51(:~
54 : exists.52 : Creates a collection.
55 :53 :
56 :)54 : @param $name The name of the collection to create.
57declare updating function ddl:create($name as xs:QName) external;55 : @return An empty XDM instance and a pending update list that, once applied,
5856 : creates a collection with the given name.
5957 : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
60(:~58 :)
61 : The create function is an updating function which creates59declare updating function ddl:create( $name as xs:QName )
62 : the collection with the given expanded QName. Moreover, it adds copies60 external;
63 : of the sequence $content to the new collection.61
64 :62(:~
65 : @param $name The QName of the collection to create.63 : Creates a collection and adds the given sequence as content to the new
66 : @param $content The sequences of items (nodes and/or json items) that should64 : collection.
67 : be added to the new collection.65 :
68 :66 : @param $name The name of the collection to create.
69 : @return The result of the function is an empty XDM instance and a 67 : @param $content The sequence of items (nodes or JSON items)
70 : pending update list which, once applied, creates a collection68 : to be added to the new collection.
71 : with the given name and inserts the given items into it.69 : @return An empty XDM instance and a pending update list that, once applied,
72 :70 : creates a collection with the given name and inserts the given items into
73 : @error zerr:ZDDY0002 if a collection with the given expanded QName already71 : it.
74 : exists.72 : @error zerr:ZDDY0002 if a collection with the given name already exists.
75 :
76 : @see ddl:create73 : @see ddl:create
77 : @see ddl:insert-nodes-last74 : @see ddl:insert-last
78 :75 :)
79 :)76declare updating function ddl:create( $name as xs:QName,
80declare updating function ddl:create($name as xs:QName, $content as item()*) external;77 $content as item()* )
8178 external;
8279
83(:~80(:~
84 : The delete function is an updating function that removes81 : Deletes the collection having the given name.
85 : the collection with the given expanded QName.82 :
86 :83 : @param $name The name of the collection to delete.
87 : @param $name The QName of the collection to delete.84 : @return An empty XDM instance and a pending update list that, once applied,
88 :85 : deletes the collection with the given name.
89 : @return The result of the function is an empty XDM instance and a pending86 : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is
90 : update list which, once applied, deletes the collection with the given87 : not available.
91 : name.88 : @error zerr:ZDDY0015 if any of the in-scope variables references an item
92 :89 : that belongs to the collection with QName <code>$name</code>.
93 : @error zerr:ZDDY0003 if the collection with the given name does not exist.90 :)
94 : @error zerr:ZDDY0015 if any of the in-scope variables references an item that91declare updating function ddl:delete( $name as xs:QName )
95 : belongs to the collection with QName $name.92 external;
96 :93
97 :)94(:~
98declare updating function ddl:delete($coll as xs:QName) external;95 : Gets whether a collection with the given name is available.
99
100
101(:~
102 : The function returns true if a collection with the given QName is available.
103 :96 :
104 : @param $name The QName of the collection that is being checked.97 : @param $name The QName of the collection that is being checked.
105 :
106 : @return true if the collection is available and false otherwise.98 : @return true if the collection is available and false otherwise.
107 :99 :)
108 :)100declare function ddl:is-available-collection( $name as xs:QName )
109declare function ddl:is-available-collection($name as xs:QName) as xs:boolean external;101 as xs:boolean external;
110102
111103(:===========================================================================:)
112(:~104
113 : The function returns a sequence of QNames of the collections that are105(: vim:set et sw=2 ts=2: :)
114 : available. The sequence will be empty if there are no collections.
115 :
116 : @return A sequence of QNames, one for each available collection, or an emtpy sequence.
117 :
118 :)
119declare function ddl:available-collections() as xs:QName* external;
120106
=== modified file 'modules/store/dynamic/collections/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/dml.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,22 +17,21 @@
17:)17:)
1818
19(:~19(:~
20 : This modules provides a set of functions to modify a collection and retrieve the items20 : This modules provides a set of functions to modify a collection
21 : contained in a particular collection.21 : and retrieve the items contained in a particular collection.
22 :22 : <p/>
23 : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html">23 : Please refer to our documentation for
24 : more information</a> about the lifecycle management and the manipulation of such24 : <a href="../zorba/data_lifecycle.html">more information</a>
25 : collections.</p>25 : about the lifecycle management and the manipulation of such collections.
26 : 26 :
27 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>27 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
28 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl28 : @see http://zorba.io/modules/store/dynamic/collections/ddl
29 : @see http://zorba.io/errors29 : @see http://zorba.io/errors
30 :30 :
31 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis31 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
32 :
33 : @project Zorba/Data Store/Collections/Dynamic Data Manipulation32 : @project Zorba/Data Store/Collections/Dynamic Data Manipulation
34 :)33 :)
35module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";34module namespace dml = "http://zorba.io/modules/store/dynamic/collections/dml";
3635
37declare namespace zerr = "http://zorba.io/errors";36declare namespace zerr = "http://zorba.io/errors";
38declare namespace an = "http://zorba.io/annotations";37declare namespace an = "http://zorba.io/annotations";
@@ -40,675 +39,306 @@
40declare namespace ver = "http://zorba.io/options/versioning";39declare namespace ver = "http://zorba.io/options/versioning";
41declare option ver:module-version "2.0";40declare option ver:module-version "2.0";
4241
4342(:===========================================================================:)
44(:~43
45 : The insert-nodes-first function is an updating function that inserts copies of the44(:~
46 : given nodes at the beginning of the collection.45 : Inserts copies of the given items (nodes or JSON items)
47 :46 : into a collection at the position directly preceding the given target item.
48 : @param $name The name of the collection to which the nodes should be added.47 :
49 : @param $content The sequences of nodes whose copies should be added to the collection.48 : @param $name The name of the collection to insert into.
50 :49 : @param $target The item in the collection before which <code>$content</code>
51 : @return The result of the function is an empty XDM instance and a pending update list50 : will be inserted.
52 : which, once applied, inserts the nodes into the collection.51 : @param $content The sequence of items whose copies to insert.
53 :52 : @return An empty XDM instance and a pending update list that, once applied,
54 : @error zerr:ZDDY0003 if the collection identified by $name is not available.53 : inserts the items into the collection.
55 :54 : @error zerr:ZDDY0003 if the collection is not available.
56 : @deprecated please use the cdml:insert-first#2 function55 : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
57 :56 :)
58 :)57declare updating function dml:insert-before( $name as xs:QName,
59declare updating function 58 $target as item(),
60dml:insert-nodes-first($name as xs:QName, $content as node()*) external;59 $content as item()* )
6160 external;
6261
63(:~62(:~
64 : The insert-first function is an updating function that inserts copies of the63 : Inserts copies of the given items (nodes or JSON items)
65 : given items (nodes or json items) at the beginning of the collection.64 : at the beginning of the collection.
66 :65 :
67 : @param $name The name of the collection to which the items should be added.66 : @param $name The name of the collection to insert into.
68 : @param $content The sequences of items whose copies should be added to the collection.67 : @param $content The sequence of items whose copies to insert.
69 :68 : @return An empty XDM instance and a pending update list that, once applied,
70 : @return The result of the function is an empty XDM instance and a pending update69 : inserts the items into the collection.
71 : list which, once applied, inserts the items into the collection.70 : @error zerr:ZDDY0003 if the collection is not available.
72 :71 :)
73 : @error zerr:ZDDY0003 if the collection identified by $name is not available.72declare updating function dml:insert-first( $name as xs:QName,
74 :73 $content as item()* )
75 :)74 external;
76declare updating function 75
77dml:insert-first($name as xs:QName, $content as item()*) external;76(:~
7877 : Inserts copies of the given items (nodes or JSON items)
7978 : at the end of the collection.
80(:~79 :
81 : The insert-nodes-last function is an updating function that inserts copies of the80 : @param $name The name of the collection to insert into.
82 : given nodes at the end of the collection.81 : @param $content The sequence of items whose copies to insert.
83 :82 : @return An empty XDM instance and a pending update list that, once applied,
84 : @param $name The name of the collection to which the nodes should be added.83 : inserts the items into the collection.
85 : @param $content The sequences of nodes whose copies should be added to the collection.84 : @error zerr:ZDDY0003 if the collection is not available.
86 :85 :)
87 : @return The result of the function is an empty XDM instance and a pending update list86declare updating function dml:insert-last( $name as xs:QName,
88 : which, once applied, inserts the nodes into the collection.87 $content as item()* )
89 :88 external;
90 : @error zerr:ZDDY0003 if the collection identified by $name is not available.89
91 :90(:~
92 : @deprecated please use the cdml:insert-last#2 function91 : Inserts copies of the given items (nodes or JSON items)
93 :92 : into a collection at the position directly following the given target item.
94 :)93 :
95declare updating function 94 : @param $name The name of the collection to insert into.
96dml:insert-nodes-last($name as xs:QName, $content as node()*) external;95 : @param $target The item in the collection after which <code>$content</code>
9796 : will be inserted.
9897 : @param $content The sequence of items whose copies to insert.
99(:~98 : @return An empty XDM instance and a pending update list that, once applied,
100 : The insert-last function is an updating function that inserts copies of the99 : inserts the items into the collection.
101 : given items (nodes or json items) at the end of the collection.100 : @error zerr:ZDDY0003 if the collection is not available.
102 :101 : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
103 : @param $name The name of the collection to which the items should be added.102 :)
104 : @param $content The sequences of items whose copies should be added to the collection.103declare updating function dml:insert-after( $name as xs:QName,
105 :104 $pos as item(),
106 : @return The result of the function is an empty XDM instance and a pending update list105 $content as item()* )
107 : which, once applied, inserts the items into the collection.106 external;
108 :107
109 : @error zerr:ZDDY0003 if the collection identified by $name is not available.108(:~
110 :109 : This function does the same thing as <code>insert-first()</code> except it
111 :)110 : immediately applies the resulting pending updates and returns the items that
112declare updating function 111 : have been inserted.
113dml:insert-last($name as xs:QName, $content as item()*) external;112 :
114113 : @param $name The name of the collection to insert into.
115114 : @param $content The sequence of items whose copies to insert.
116(:~115 : @return The sequence of items that have been inserted.
117 : The insert-nodes-before function is an updating function that inserts116 : @error zerr:ZDDY0003 if the collection is not available.
118 : copies of the given nodes into a collection at the position directly preceding the
119 : given target node.
120 :
121 : @param $name The name of the collection to which the nodes should be added.
122 : @param $target The node in the collection before which the $content
123 : sequence should be inserted.
124 : @param $content The sequences of nodes whose copies should be added to the collection.
125 :
126 : @return The result of the function is an empty XDM instance and a pending update list
127 : which, once applied, inserts the nodes into the collection.
128 :
129 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
130 : @error zerr:ZDDY0011 if the target node is not contained in the collection.
131 :
132 : @deprecated please use the cdml:insert-before#3 function
133 :
134 :)
135declare updating function
136dml:insert-nodes-before(
137 $name as xs:QName,
138 $target as node(),
139 $content as node()*) external;
140
141(:~
142 : The insert-before function is an updating function that inserts copies of
143 : the given items (nodes or json items) into a collection at the position
144 : directly preceding the given target item.
145 :
146 : @param $name The name of the collection to which the items should be added.
147 : @param $target The item in the collection before which the $content
148 : sequence should be inserted.
149 : @param $content The sequences of items whose copies should be added to the collection.
150 :
151 : @return The result of the function is an empty XDM instance and a pending update list
152 : which, once applied, inserts the items into the collection.
153 :
154 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
155 : @error zerr:ZDDY0011 if the target item is not contained in the collection.
156 :
157 :)
158declare updating function
159dml:insert-before($name as xs:QName, $target as item(), $content as item()*) external;
160
161
162(:~
163 : The insert-nodes-after function is an updating function that inserts
164 : copies of the given nodes into a collection at the position directly following the
165 : given target node.
166 :
167 : @param $name The name of the collection to which the nodes should be added.
168 : @param $target The node in the collection after which the $content
169 : sequence should be inserted.
170 : @param $content The sequences of nodes whose copies should be added to the collection.
171 :
172 : @return The result of the function is an empty XDM instance and a pending update list
173 : which, once applied, inserts the nodes into the collection.
174 :
175 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
176 : @error zerr:ZDDY0011 if the target node is not contained in the collection.
177 :
178 : @deprecated please use the cdml:insert-after#3 function
179 :
180 :)
181declare updating function
182dml:insert-nodes-after(
183 $name as xs:QName,
184 $pos as node(),
185 $content as node()*) external;
186
187
188(:~
189 : The insert-after function is an updating function that inserts copies of
190 : the given items (nodes and/or json items) into a collection at the position
191 : directly following the given target item.
192 :
193 : @param $name The name of the collection to which the items should be added.
194 : @param $target The item in the collection after which the $content
195 : sequence should be inserted.
196 : @param $content The sequences of items whose copies should be added to the collection.
197 :
198 : @return The result of the function is an empty XDM instance and a pending update list
199 : which, once applied, inserts the items into the collection.
200 :
201 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
202 : @error zerr:ZDDY0011 if the target node is not contained in the collection.
203 :
204 :)
205declare updating function
206dml:insert-after($name as xs:QName, $pos as item(), $content as item()*) external;
207
208
209(:~
210 : This function does the same as the insert-nodes-first function except
211 : it immediately applies the resulting pending updates and returns the
212 : nodes that have been inserted.
213 :
214 : @param $name The name of the collection to which the nodes should be added.
215 : @param $content The sequences of nodes whose copies should be added to the collection.
216 :
217 : @return The result of the function is the sequence of nodes that have been
218 : inserted into the collection.
219 :
220 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
221 :
222 : @see dml:insert-nodes-first
223 :
224 : @deprecated please use the cdml:apply-insert-first#2 function
225 :
226 :)
227declare %an:sequential function
228dml:apply-insert-nodes-first(
229 $name as xs:QName,
230 $content as node()*) as node()* external;
231
232
233(:~
234 : This function does the same as the insert-first function except it immediately
235 : applies the resulting pending updates and returns the items that have been inserted.
236 :
237 : @param $name The name of the collection to which the items should be added.
238 : @param $content The sequences of items whose copies should be added to the collection.
239 :
240 : @return The result of the function is the sequence of items that have been
241 : inserted into the collection.
242 :
243 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
244 :
245 : @see dml:insert-first117 : @see dml:insert-first
246 :118 :)
247 :)119declare %an:sequential function dml:apply-insert-first( $name as xs:QName,
248declare %an:sequential function 120 $content as item()* )
249dml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external;121 as item()* external;
250122
251123(:~
252(:~124 : This function does the same thing as <code>insert-last()</code> except it
253 : This function does the same as the insert-nodes-last function except125 : immediately applies the resulting pending updates and returns the items that
254 : it immediately applies the resulting pending updates and returns the126 : have been inserted.
255 : nodes that have been inserted.127 :
256 :128 : @param $name The name of the collection to insert into.
257 : @param $name The name of the collection to which the nodes should be added.129 : @param $content The sequence of items whose copies to insert.
258 : @param $content The sequences of nodes whose copies should be added to the collection.130 : @return The sequence of items that have been inserted.
259 :131 : @error zerr:ZDDY0003 if the collection is not available.
260 : @return The result of the function is the sequence of nodes that have been
261 : inserted into the collection.
262 :
263 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
264 :
265 : @see dml:insert-nodes-last
266 :
267 : @deprecated please use the cdml:apply-insert-last#2 function
268 :
269 :)
270declare %an:sequential function dml:apply-insert-nodes-last(
271 $name as xs:QName,
272 $content as node()*) as node()* external;
273
274
275(:~
276 : This function does the same as the insert-last function except it immediately
277 : applies the resulting pending updates and returns the items that have been
278 : inserted.
279 :
280 : @param $name The name of the collection to which the items should be added.
281 : @param $content The sequences of items whose copies should be added to the collection.
282 :
283 : @return The result of the function is the sequence of items that have been
284 : inserted into the collection.
285 :
286 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
287 :
288 : @see dml:insert-last132 : @see dml:insert-last
289 :133 :)
290 :)134declare %an:sequential function dml:apply-insert-last( $name as xs:QName,
291declare %an:sequential function dml:apply-insert-last(135 $content as item()* )
292 $name as xs:QName,136 as item()* external;
293 $content as item()*) as item()* external;137
294138(:~
295139 : This function does the same thing as <code>insert-before()</code> except it
296(:~140 : immediately applies the resulting pending updates and returns the items that
297 : This function does the same as the insert-nodes-before function except141 : have been inserted.
298 : it immediately applies the resulting pending updates and returns the142 :
299 : nodes that have been inserted.143 : @param $name The name of the collection to insert into.
300 :144 : @param $target The item in the collection before which <code>$content</code>
301 : @param $name The name of the collection to which the nodes should be added.145 : will be inserted.
302 : @param $target The node in the collection before which the $content146 : @param $content The sequence of items whose copies to insert.
303 : sequence should be inserted.147 : @return The sequence of items that have been inserted.
304 : @param $content The sequences of nodes whose copies should be added to the collection.148 : @error zerr:ZDDY0003 if the collection is not available.
305 :
306 : @return The result of the function is the sequence of nodes that have been
307 : inserted into the collection.
308 :
309 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
310 :
311 : @see dml:insert-nodes-before
312 :
313 : @deprecated please use the cdml:apply-insert-before#3 function
314 :
315 :)
316declare %an:sequential function
317dml:apply-insert-nodes-before(
318 $name as xs:QName,
319 $target as node(),
320 $content as node()*) as node()* external;
321
322
323(:~
324 : This function does the same as the insert-before function except it immediately
325 : applies the resulting pending updates and returns the items that have been
326 : inserted.
327 :
328 : @param $name The name of the collection to which the items should be added.
329 : @param $target The item in the collection before which the $content
330 : sequence should be inserted.
331 : @param $content The sequences of items whose copies should be added to the collection.
332 :
333 : @return The result of the function is the sequence of items that have been
334 : inserted into the collection.
335 :
336 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
337 :
338 : @see dml:insert-before149 : @see dml:insert-before
339 :150 :)
340 :)151declare %an:sequential function dml:apply-insert-before( $name as xs:QName,
341declare %an:sequential function 152 $target as item(),
342dml:apply-insert-before(153 $content as item()* )
343 $name as xs:QName,154 as item()* external;
344 $target as item(),155
345 $content as item()*) as item()* external;156(:~
346157 : This function does the same thing as <code>insert-after()</code> except it
347158 : immediately applies the resulting pending updates and returns the items that
348(:~159 : have been inserted.
349 : This function does the same as the insert-nodes-after function except160 :
350 : it immediately applies the resulting pending updates and returns the161 : @param $name The name of the collection to insert into.
351 : nodes that have been inserted.162 : @param $target The item in the collection after which <code>$content</code>
352 :163 : will be inserted.
353 : @param $name The name of the collection to which the nodes should be added.164 : @param $content The sequence of items whose copies to insert.
354 : @param $target The node in the collection after which the $content165 : @return The sequence of items that have been inserted.
355 : sequence should be inserted.166 : @error zerr:ZDDY0003 if the collection is not available.
356 : @param $content The sequences of nodes whose copies should be added to the collection.167 : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
357 :
358 : @return The result of the function is the sequence of nodes that have been
359 : inserted into the collection.
360 :
361 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
362 :
363 : @see dml:insert-nodes-after
364 :
365 : @deprecated please use the cdml:apply-insert-after#3 function
366 :
367 :)
368declare %an:sequential function
369dml:apply-insert-nodes-after(
370 $name as xs:QName,
371 $pos as node(),
372 $content as node()*) as node()* external;
373
374
375(:~
376 : This function does the same as the insert-after function except it immediately
377 : applies the resulting pending updates and returns the items that have been
378 : inserted.
379 :
380 : @param $name The name of the collection to which the items should be added.
381 : @param $target The item in the collection after which the $content
382 : sequence should be inserted.
383 : @param $content The sequences of items whose copies should be added to the collection.
384 :
385 : @return The result of the function is the sequence of items that have been
386 : inserted into the collection.
387 :
388 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
389 :
390 : @see dml:insert-after168 : @see dml:insert-after
391 :169 :)
392 :)170declare %an:sequential function dml:apply-insert-after( $name as xs:QName,
393declare %an:sequential function 171 $target as item(),
394dml:apply-insert-after(172 $content as item()* )
395 $name as xs:QName,173 as item()* external;
396 $pos as item(),174
397 $content as item()*) as item()* external;175(:~
398176 : Gets the sequence of nodes or JSON items from a collection.
399177 :
400(:~178 : @param $name The name of the collection.
401 : The delete-nodes function is an updating function that deletes zero of more179 : @return The sequence contained in the given collection.
402 : nodes from a collection. 180 : @error zerr:ZDDY0003 if the collection is not available.
403 :181 :)
404 : @param $target the nodes in the collection that should be deleted.182declare function dml:collection( $name as xs:QName )
405 :183 as item()* external;
406 : @return The result of this function is an empty XDM instance and a pending update184
407 : list which, once applied, deletes the nodes from their collections.185(:~
408 :186 : Gets the sequence of items (nodes or JSON items) from a collection.
409 : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of187 :
410 : a collection or not all nodes of the $target sequence belong to the same188 : @param $name The name of the collection.
411 : collection.189 : @param $skip The number of collection items to skip.
412 :190 : @return The sub-sequence contained in the given collection.
413 : @deprecated please use the cdml:delete#1 function191 : @error zerr:ZDDY0003 if the collection is not available.
414 :192 :)
415 :)193declare function dml:collection( $name as xs:QName,
416declare updating function 194 $skip as xs:integer )
417dml:delete-nodes($target as node()*) external;195 as item()* external;
418196
419197(:~
420(:~198 : Gets the sequence of items (nodes or JSON items) from a collection.
421 : The delete function is an updating function that deletes zero of more items199 : The parameters <code>$start</code> and <code>$skip</code> can be used to
422 : (nodes and/or json items) from a collection. 200 : skip over items at the beginning of the collection.
423 :201 : If both are given, both are applied: first, <code>$start</code> to skip to
424 : @param $target the items in the collection that should be deleted.202 : that item and then <code>$skip</code> to skip that additional number of
425 :203 : items.
426 : @return The result of this function is an empty XDM instance and a pending update204 :
427 : list which, once applied, deletes the items from their collections.205 : @param $name The name of the collection.
428 :206 : @param $start A reference to the first item to return.
429 : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of207 : @param $skip The additional number of items to skip.
430 : a collection or not all items of the $target sequence belong to the208 : @return The sub-sequence from the given collection.
431 : same collection.209 : @error zerr:ZAPI0028 If the given URI is not a valid node position computed
432 :210 : by the <code>np:node-position</code> function.
433 :)211 : @error zerr:ZDDY0003 if the collection is not available.
434declare updating function 212 : @error zerr:ZSTR0066 If <code>$start</code> does not reference a node from
435dml:delete($target as item()*) external;213 : the collection <code>$name</code>.
436214 :)
437215declare function dml:collection( $name as xs:QName,
438(:~216 $start as xs:anyURI,
439 : The delete-node-first function is an updating function that deletes the217 $skip as xs:integer )
440 : first node from a collection.218 as item()* external;
441 :219
442 : @param $name The name of the collection from which the first node should be deleted.220(:~
443 :221 : Gets the name of the collection the given item (node or JSON item) belongs
444 : @return The result of this function is an empty XDM instance and a pending update222 : to.
445 : list which, once applied, deletes the first node from the collection.223 :
446 :224 : @param $item The item for which to get the name of the collection.
447 : @error zerr:ZDDY0011 if the collection doesn't contain any node.225 : @return The name of the collection to which <code>$item</code> belongs.
448 :226 : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
449 : @deprecated please use the cdml:delete-first#1 function227 :)
450 :228declare function dml:collection-name( $item as item() )
451 :)229 as xs:QName external;
452declare updating function 230
453dml:delete-node-first($name as xs:QName) external;231(:~
454232 : Deletes items (nodes or JSON items) from a collection.
455233 :
456(:~234 : @param $items The items in the collection to delete.
457 : The delete-first function is an updating function that deletes the first item235 : @return An empty XDM instance and a pending update list that, once applied,
458 : from a collection.236 : deletes the items from their collections.
459 :237 : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a
460 : @param $name The name of the collection from which the first item should be deleted.238 : collection or not all items belong to the same collection.
461 :239 :)
462 : @return The result of this function is an empty XDM instance and a pending update240declare updating function dml:delete( $items as item()* )
463 : list which, once applied, deletes the first item from the collection.241 external;
464 :242
465 : @error zerr:ZDDY0011 if the collection doesn't contain any item.243(:~
466 :244 : Deletes the first item from a collection.
467 :)245 :
468declare updating function 246 : @param $name The name of the collection to delete from.
469dml:delete-first($name as xs:QName) external;247 : @return An empty XDM instance and a pending update list that, once applied,
470248 : deletes the first item from the collection.
471249 : @error zerr:ZDDY0011 if the collection is empty.
472(:~250 :)
473 : The delete-nodes-first function is an updating function that deletes the251declare updating function dml:delete-first( $name as xs:QName )
474 : first n nodes from a collection.252 external;
475 :253
476 : @param $name The name of the collection from which the first node should be deleted.254(:~
477 : @param $number The number of nodes that should be removed from the beginning of255 : Deletes the first <i>N</i> items from a collection.
478 : the collection.256 :
479 :257 : @param $name The name of the collection to delete from.
480 : @return The result of this function is an empty XDM instance and a pending update258 : @param $number The number of items to delete.
481 : list which, once applied, deletes the nodes from the collection.259 : @return An empty XDM instance and a pending update list that, once applied,
482 :260 : deletes the items from the collection.
483 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.261 : @error zerr:ZDDY0003 if the collection is not available.
484 :262 : @error zerr:ZDDY0011 if the collection contains less than
485 : @deprecated please use the cdml:delete-first#2 function263 : <code>$number</code> items.
486 :264 :)
487 :)265declare updating function dml:delete-first( $name as xs:QName,
488declare updating function 266 $number as xs:integer )
489dml:delete-nodes-first($name as xs:QName, $number as xs:integer) external;267 external;
490268
491269(:~
492(:~270 : Deletes the last item from a collection.
493 : The delete-first function is an updating function that deletes the first N271 :
494 : items from a collection.272 : @param $name The name of the collection to delete from.
495 :273 : @return An empty XDM instance and a pending update list that, once applied,
496 : @param $name The name of the collection from which the first N items should be deleted.274 : deletes the last item from the collection.
497 : @param $number The number N of items that should be removed from the beginning of275 : @error zerr:ZDDY0003 if the collection is not available.
498 : the collection.276 : @error zerr:ZDDY0011 if the collection is empty.
499 :277 :)
500 : @return The result of this function is an empty XDM instance and a pending update278declare updating function dml:delete-last( $name as xs:QName )
501 : list which, once applied, deletes the items from the collection.279 external;
502 :280
503 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items.281(:~
504 :282 : Deletes the last <i>N</i> items from a collection.
505 :)283 :
506declare updating function 284 : @param $name The name of the collection to delete from.
507dml:delete-first($name as xs:QName, $number as xs:integer) external;285 : @param $number The number of items to delete.
508286 : @return An empty XDM instance and a pending update list that, once applied,
509287 : deletes the last N items.
510(:~288 : @error zerr:ZDDY0003 if the collection is not available.
511 : The delete-node-last function is an updating function that deletes the289 : @error zerr:ZDDY0011 if the collection contains less than
512 : last node from a collection.290 : <code>$number</code> items.
513 :291 :)
514 : @param $name The name of the collection from which the last node should be deleted.292declare updating function dml:delete-last( $name as xs:QName,
515 :293 $number as xs:integer )
516 : @return The result of this function is an empty XDM instance and a pending update294 external;
517 : list which, once applied, deletes the last node from the collection.295
518 :296(:~
519 : @error zerr:ZDDY0003 If available collections does not provide a mapping297 : Edits the first supplied item so as to make it look exactly like a copy of
520 : for the expanded QName $name.298 : the second supplied item while retaining its original identity.
521 : @error zerr:ZDDY0011 if the collection doesn't contain any node.299 :
522 :300 : @param $target The target item to be edited.
523 : @deprecated please use the cdml:delete-last#1 function301 : @param $content The item that serves as an edit goal.
524 :302 : @return An empty XDM instance and a pending update list that, once applied,
525 :)303 : performs the edit.
526declare updating function 304 : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs
527dml:delete-node-last($name as xs:QName) external;305 : is not available.
528306 : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs
529307 : is append-only, const, or queue.
530(:~308 : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection.
531 : The delete-last function is an updating function that deletes the last item
532 : from a collection.
533 :
534 : @param $name The name of the collection from which the last item should be deleted.
535 :
536 : @return The result of this function is an empty XDM instance and a pending update
537 : list which, once applied, deletes the last item from the collection.
538 :
539 : @error zerr:ZDDY0003 If available collections does not provide a mapping
540 : for the expanded QName $name.
541 : @error zerr:ZDDY0011 if the collection doesn't contain any item.
542 :
543 :)
544declare updating function
545dml:delete-last($name as xs:QName) external;
546
547
548(:~
549 : The delete-nodes-last function is an updating function that deletes the
550 : last n nodes from an ordered collection.
551 :
552 : @param $name The name of the collection from which the first node should be deleted.
553 : @param $number The number of nodes to delete.
554 :
555 : @return The result of this function is an empty XDM instance and a pending update
556 : list which, once applied, deletes the last n nodes.
557 :
558 : @error zerr:ZDDY0003 If available collections does not provide a mapping
559 : for the expanded QName $name.
560 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
561 :
562 : @deprecated please use the cdml:delete-last#2 function
563 :
564 :)
565declare updating function
566dml:delete-nodes-last($name as xs:QName, $number as xs:integer) external;
567
568
569(:~
570 : The delete-last function is an updating function that deletes the last N
571 : items from an ordered collection.
572 :
573 : @param $name The name of the collection from which the lsat N items should be deleted.
574 : @param $number The number N of items to delete.
575 :
576 : @return The result of this function is an empty XDM instance and a pending update
577 : list which, once applied, deletes the last N items.
578 :
579 : @error zerr:ZDDY0003 If available collections does not provide a mapping
580 : for the expanded QName $name.
581 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items.
582 :
583 :)
584declare updating function
585dml:delete-last($name as xs:QName, $number as xs:integer) external;
586
587
588(:~
589 : The edit function is an updating function that edits the first supplied
590 : item so as to make it look exactly like a copy of the second supplied item,
591 : while retaining its original identity.
592 :
593 : @param $target The target item ,that must be edited.
594 : @param $content The content item, that serves as an edit goal.
595 :
596 : @return The result of the function is an empty XDM instance and a pending update list
597 : which, once applied, performs the replacement.
598 :
599 : @error zerr:ZDDY0003 if the collection to which $target belongs is not available.
600 : @error zerr:ZDDY0006 if the modifier property of the collection to which $target
601 : belongs is append-only, const, or queue.
602 : @error zerr:ZDDY0017 if the $target item is not a member of a collection.
603 : @error zerr:ZDDY0037 if the collection is append-only.309 : @error zerr:ZDDY0037 if the collection is append-only.
604 : @error zerr:ZDDY0038 if the collection is a queue.310 : @error zerr:ZDDY0038 if the collection is a queue.
605 : @error zerr:ZDDY0039 if the $target item is not a root.311 : @error zerr:ZDDY0039 if <code>$target</code> is not a root.
606 : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for312 : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the
607 : example because the target is a node and the content is an object).313 : content (for example, because the target is a node and the content is an
608 :314 : object).
609 :)315 :)
610declare updating function 316declare updating function dml:edit( $target as item(),
611dml:edit($target as item(), $content as item()) external;317 $content as item() )
612318 external;
613319
614(:~320(:~
615 : The truncate function is an updating function that deletes the321 : Gets the position of the given item (node or JSON item) within its
616 : entire contents of collection.322 : collection.
617 :323 :
618 : @param $name The name of the collection whose content to delete324 : @param $item The item to get the index of.
619 :325 : @return The position of <code>$item</code> in its collection.
620 : @return The result of this function is an empty XDM instance and a pending update326 : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
621 : list which, once applied, deletes the nodes.327 :)
622 :328declare function dml:index-of( $item as item() )
623 : @error zerr:ZDDY0003 if the collection identified by $name is not available.329 as xs:integer external;
624 :)330
625declare updating function dml:truncate($name as xs:QName) external;331(:~
626332 : Deletes the entire contents of a collection.
627333 :
628(:~334 : @param $name The name of the collection whose contents to delete.
629 : The collection function returns the sequence of nodes and/or json items335 : @return An empty XDM instance and a pending update list that, once applied,
630 : that belong to the collection identified by the given name.336 : deletes the contents.
631 :337 : @error zerr:ZDDY0003 if the collection is not available.
632 : @param $name The name of the collection.338 :)
633 :339declare updating function dml:truncate( $name as xs:QName )
634 : @return The sequence contained in the given collection.340 external;
635 :341
636 : @error zerr:ZDDY0003 If available collections does not provide a mapping342(:===========================================================================:)
637 : for the expanded QName $name.343
638 :344(: vim:set et sw=2 ts=2: :)
639 :)
640declare function dml:collection($name as xs:QName) as item()* external;
641
642
643(:~
644 : The collection function returns the sequence of nodes and/or json items
645 : that belong to the collection identified by the given name.
646 :
647 : @param $name The name of the collection.
648 : @param $skip The number of collection items to skip.
649 :
650 : @return The sequence contained in the given collection.
651 :
652 : @error zerr:ZDDY0003 If available collections does not provide a mapping
653 : for the expanded QName $name.
654 :
655 :)
656declare function
657dml:collection($name as xs:QName, $skip as xs:integer) as item()* external;
658
659
660(:~
661 : The collection function returns the sequence of nodes and/or json items
662 : that belong to the collection identified by the given name.
663 : The parameters $start and $skip can be used to skip over some items at
664 : the beginning of the collection. If both are given, both are applied:
665 : first $start to skip to the referenced item and then $skip to skip an
666 : additional number of items.
667 :
668 : @param $name The name of the collection.
669 : @param $start A reference to the first item to return. All items before
670 are skipped.
671 : @param $skip The number of collection items to skip.
672 :
673 : @return The sequence contained in the given collection.
674 :
675 : @error zerr:ZAPI0028 If the given URI is not a valid node
676 : position computed by the <tt>np:node-position</tt> function.
677 : @error zerr:ZDDY0003 If available collections does not provide a mapping
678 : for the expanded QName $name.
679 : @error zerr:ZSTR0066 If the passed reference $start does not reference
680 : a node from the collection identified by $name.
681 :
682 :)
683declare function
684dml:collection($name as xs:QName,
685 $start as xs:anyURI,
686 $skip as xs:integer) as item()* external;
687
688
689(:~
690 : The collection-name function returns the name of the collection the given
691 : item (node or json item) belongs to.
692 :
693 : @param $item The item for which to get the name of the collection
694 : @return The result of this function is a QName which identifies the collection
695 : to which the given item belongs to.
696 :
697 : @error zerr:ZDDY0011 if the given item does not belong to a collection.
698 :
699 :)
700declare function dml:collection-name($item as item()) as xs:QName external;
701
702
703(:~
704 : The index-of function returns the position of the given item (node or
705 : json item) within its containing the collection.
706 :
707 : @param $item The item to retrieve the index from.
708 :
709 : @return Returns the position as xs:integer of the given item in the collection.
710 :
711 : @error zerr:ZDDY0011 if the item is not contained in any collection.
712 :
713 :)
714declare function dml:index-of($item as item()) as xs:integer external;
715345
=== modified file 'modules/store/dynamic/collections/w3c/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/w3c/ddl.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,146 +17,140 @@
17:)17:)
1818
19(:~19(:~
20 : This modules defines a set of functions for managing persistent, ordered, and20 : This modules defines a set of functions for managing persistent, ordered,
21 : updatable collections.21 : and updatable collections.
22 :22 : <p/>
23 : <p>Such collections are identified by a URI as defined in the XQuery specification.23 : Such collections are identified by a URI as defined in the XQuery
24 : However, please note that we do not advice users to use collections identified by URIs.24 : specification.
25 : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle25 : However, please note that we do not advise users to use collections
26 : documentation</a>. It gives an overview over serveral ways to work with collections,26 : identified by URIs.
27 : documents, and other data-structures.</p>27 : Instead, we refer to the
28 : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>.
29 : It gives an overview of several ways to work with collections, documents,
30 : and other data-structures.
28 :31 :
29 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>32 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
30 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml33 : @see http://zorba.io/modules/store/dynamic/collections/w3c/dml
31 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl34 : @see http://zorba.io/modules/store/dynamic/collections/ddl
32 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml35 : @see http://zorba.io/modules/store/dynamic/collections/dml
33 : @see http://zorba.io/errors36 : @see http://zorba.io/errors
34 :37 :
35 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis38 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
36 :
37 : @project Zorba/Data Store/Collections/W3C Data Definition39 : @project Zorba/Data Store/Collections/W3C Data Definition
38 :)40 :)
39module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl";41module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl";
4042
41import module namespace qddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";43import module namespace qddl = "http://zorba.io/modules/store/dynamic/collections/ddl";
4244
43declare namespace zerr = "http://zorba.io/errors";45declare namespace zerr = "http://zorba.io/errors";
44declare namespace ver = "http://zorba.io/options/versioning";46declare namespace ver = "http://zorba.io/options/versioning";
45declare option ver:module-version "2.0";47declare option ver:module-version "2.0";
4648
49(:===========================================================================:)
50
47(:~51(:~
48 : Function used for internal purposes only. It converts a URI52 : THIS FUNCTION IS FOR INTERNAL USE ONLY.
49 : given as string into a reserved QName. This QName is used53 : Converts a URI given as a string into a reserved QName.
50 : in the module to be able to store collections identified by54 : This QName is used in the module to be able to store collections identified
51 : URIs using dynamic collections which are identified by QNames.55 : by URIs using dynamic collections that are identified by QNames.
52 :56 :
53 : @param $name URI to convert to a reserved QName.57 : @param $uri URI to convert to a reserved QName.
54 :
55 : @return The reserved QName for the given URI.58 : @return The reserved QName for the given URI.
56 :59 :)
57 :)60declare function ddl:to-qname( $uri as xs:string )
58declare function ddl:to-qname($name as xs:string) as xs:QName61 as xs:QName
59{62{
60 fn:QName($name, "zorba-internal-name-for-w3c-collections")63 fn:QName( $uri, "zorba-internal-name-for-w3c-collections" )
61};64};
6265
63(:~66(:~
64 : Function used for internal purposes only. It returns the namespace67 : THIS FUNCTION IS FOR INTERNAL USE ONLY.
65 : component of the given QName.68 : Gets the namespace component of the given QName.
66 :69 :
67 : @param $name QName whose namespace component should be returned70 : @param $name The QName whose namespace component should be returned.
68 :71 : @return The namespace component of <code>$name</code>
69 : @return the namespace componentn of the given QName72 :)
70 :)73declare function ddl:from-qname( $name as xs:QName )
71declare function ddl:from-qname($name as xs:QName) as xs:string74 as xs:string
72{75{
73 fn:namespace-uri-from-QName($name)76 fn:namespace-uri-from-QName( $name )
74};77};
7578
76(:~79(:~
77 : The function returns true if a collection with the given URI is available80 : Checks whether a collection with the given URI exists.
78 : (i.e. has been created).81 :
79 :82 : @param $uri The URI of the collection to check.
80 : @param $name The URI of the collection that is being checked.
81 :
82 : @return true if the collection is available and false otherwise.83 : @return true if the collection is available and false otherwise.
83 :
84 :)84 :)
85declare function ddl:is-available-collection($coll-name as xs:string) as xs:boolean85declare function ddl:is-available-collection( $uri as xs:string )
86 as xs:boolean
86{87{
87 qddl:is-available-collection(ddl:to-qname($coll-name))88 qddl:is-available-collection( ddl:to-qname( $uri ) )
88};89};
8990
90(:~91(:~
91 : The function returns a sequence of URIs of the collections that are92 : The function returns a sequence of URIs of the collections that are
92 : available. The sequence will be empty if there are no collections.93 : available. The sequence will be empty if there are no collections.
93 :94 :
94 : @return A sequence of URIs, one for each available collection, or an emtpy sequence.95 : @return A sequence of URIs, one for each available collection, or an emtpy
95 :96 : sequence.
96 :)97 :)
97declare function ddl:available-collections() as xs:string* 98declare function ddl:available-collections()
99 as xs:string*
98{100{
99 for $c in qddl:available-collections()101 for $c in qddl:available-collections()
100 where fn:local-name-from-QName($c) eq "zorba-internal-name-for-w3c-collections"102 where fn:local-name-from-QName( $c )
101 return ddl:from-qname($c)103 eq "zorba-internal-name-for-w3c-collections"
102};104 return ddl:from-qname( $c )
103105};
104(:~106
105 : The create function is an updating function which creates107(:~
106 : the collection with the given URI and the empty-sequence as contents.108 : Creates the collection with the given URI.
107 :109 :
108 : @param $name The URI of the collection to create.110 : @param $uri The URI of the collection to create.
109 :111 : @return An empty XDM instance and a pending update list that, once applied,
110 : @return The result of the function is an empty XDM instance and a 112 : creates a collection with the given URI.
111 : pending update list which, once applied, creates a collection113 : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already
112 : with the given name.114 : exists.
113 :115 :)
114 : @error zerr:ZDDY0002 if a collection with the given URI already exists.116declare updating function ddl:create( $uri as xs:string )
115 :117{
116 :)118 qddl:create( ddl:to-qname( $uri ) )
117declare updating function ddl:create($coll-name as xs:string) 119};
118{120
119 qddl:create(ddl:to-qname($coll-name))121(:~
120};122 : Creates the collection with the given URI and adds copies of the given
121123 : sequence to the new collection.
122(:~124 :
123 : The create function is an updating function which creates125 : @param $uri The URI of the collection to create.
124 : the collection with the given URI. Moreover, it adds copies126 : @param $content The sequence of nodes to add to the new collection.
125 : of the sequence $content to the new collection.127 : @return An empty XDM instance and a pending update list that, once applied,
126 :128 : creates a collection identified by <code>$uri</code> and inserts
127 : @param $name The URI of the collection to create.129 : <code>$content</code> into it.
128 : @param $content The sequences of nodes that should be added to the new collection.130 : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already
129 :131 : exists.
130 : @return The result of the function is an empty XDM instance and a 132 :)
131 : pending update list which, once applied, creates a collection133declare updating function ddl:create( $uri as xs:string,
132 : with the given name and inserts the given nodes into it.134 $content as node()* )
133 :135{
134 : @error zerr:ZDDY0002 if a collection with the given URI already exists.136 qddl:create( ddl:to-qname( $uri ), $content )
135 :137};
136 :)138
137declare updating function ddl:create(139(:~
138 $coll-name as xs:string,140 : Deletes the collection with the given URI.
139 $content as node()*) 141 :
140{142 : @param $uri The URI of the collection to delete.
141 qddl:create(ddl:to-qname($coll-name), $content)143 : @return An empty XDM instance and a pending update list that, once applied,
142};144 : deletes the collection identified by <code>$uri</code>.
143145 : @error zerr:ZDDY0003 if the collection is not available.
144(:~146 : @error zerr:ZDDY0015 if any of the in-scope variables reference a node that
145 : The delete function is an updating function that removes147 : belongs to the collection identified by <code>$uri</code>.
146 : the collection with the given URI.148 :)
147 :149declare updating function ddl:delete( $uri as xs:string )
148 : @param $name The URI of the collection to delete.150{
149 :151 qddl:delete( ddl:to-qname( $uri ) )
150 : @return The result of the function is an empty XDM instance and a pending152};
151 : update list which, once applied, deletes the collection with the given153
152 : name.154(:===========================================================================:)
153 :155
154 : @error zerr:ZDDY0003 if the URI $name is not equal to any of the available collections.156(: vim:set et sw=2 ts=2: :)
155 : @error zerr:ZDDY0015 if any of the in-scope variables references a node that
156 : belongs to the collection with the given URI.
157 :
158 :)
159declare updating function ddl:delete($coll-name as xs:string)
160{
161 qddl:delete(ddl:to-qname($coll-name))
162};
163157
=== modified file 'modules/store/dynamic/collections/w3c/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/dynamic/collections/w3c/dml.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,30 +17,32 @@
17:)17:)
1818
19(:~19(:~
20 : This modules provides a set of functions to modify a collection and retrieve the nodes20 : This modules provides a set of functions to modify a collection and retrieve
21 : contained in a particular collection.21 : the nodes contained in a particular collection.
22 :22 : <p/>
23 : <p>Such collections are identified by a URI as defined in the XQuery specification.23 : Such collections are identified by a URI as defined in the XQuery
24 : However, please note that we do not advice users to use collections identified by URIs.24 : specification.
25 : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle25 : However, please note that we do not advice users to use collections
26 : documentation</a>. It gives an overview over serveral ways to work with collections,26 : identified by URIs.
27 : documents, and other data-structures.</p>27 : Instead, we refer to the
28 : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>.
29 : It gives an overview of several ways to work with collections, documents,
30 : and other data-structures.
28 :31 :
29 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>32 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
30 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl33 : @see http://zorba.io/modules/store/dynamic/collections/w3c/ddl
31 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl34 : @see http://zorba.io/modules/store/dynamic/collections/ddl
32 : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml35 : @see http://zorba.io/modules/store/dynamic/collections/dml
33 : @see http://zorba.io/errors36 : @see http://zorba.io/errors
34 :37 :
35 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis38 : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
36 :
37 : @project Zorba/Data Store/Collections/W3C Data Manipulation39 : @project Zorba/Data Store/Collections/W3C Data Manipulation
38 :)40 :)
39module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml";41module namespace dml = "http://zorba.io/modules/store/dynamic/collections/w3c/dml";
4042
41import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl";43import module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl";
4244
43import module namespace qdml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";45import module namespace qdml = "http://zorba.io/modules/store/dynamic/collections/dml";
4446
45declare namespace zerr = "http://zorba.io/errors";47declare namespace zerr = "http://zorba.io/errors";
46declare namespace an = "http://zorba.io/annotations";48declare namespace an = "http://zorba.io/annotations";
@@ -48,332 +50,274 @@
48declare namespace ver = "http://zorba.io/options/versioning";50declare namespace ver = "http://zorba.io/options/versioning";
49declare option ver:module-version "2.0";51declare option ver:module-version "2.0";
5052
51(:~53(:===========================================================================:)
52 : The insert-nodes-first function is an updating function that inserts copies of the54
53 : given nodes at the beginning of the collection.55(:~
54 :56 : Inserts copies of the given nodes at the beginning of the collection.
55 : @param $name The name of the collection to which the nodes should be added.57 :
56 : @param $content The sequences of nodes whose copies should be added to the collection.58 : @param $name The name of the collection to insert into.
57 :59 : @param $content The sequence of nodes whose copies will be inserted.
58 : @return The result of the function is an empty XDM instance and a pending update list60 : @return An empty XDM instance and a pending update list that, once applied,
59 : which, once applied, inserts the nodes into the collection.61 : inserts <code>$content</code> into the collection.
60 :62 : @error zerr:ZDDY0003 if the collection is not available.
61 : @error zerr:ZDDY0003 if the collection identified by $name is not available.63 :)
62 :64declare updating function dml:insert-nodes-first( $name as xs:string,
63 :)65 $content as node()* )
64declare updating function dml:insert-nodes-first(66{
65 $name as xs:string,67 qdml:insert-first( ddl:to-qname( $name ), $content )
66 $content as node()*)68};
67{69
68 qdml:insert-nodes-first(ddl:to-qname($name), $content)70(:~
69};71 : Inserts copies of the given nodes at the end of the collection.
7072 :
71(:~73 : @param $name The name of the collection to insert into.
72 : The insert-nodes-last function is an updating function that inserts copies of the74 : @param $content The sequence of nodes whose copies will be inserted.
73 : given nodes at the end of the collection.75 : @return An empty XDM instance and a pending update list that, once applied,
74 :76 : inserts the nodes into the collection.
75 : @param $name The name of the collection to which the nodes should be added.77 : @error zerr:ZDDY0003 if the collection is not available.
76 : @param $content The sequences of nodes whose copies should be added to the collection.78 :)
77 :79declare updating function dml:insert-nodes-last( $name as xs:string,
78 : @return The result of the function is an empty XDM instance and a pending update list80 $content as node()* )
79 : which, once applied, inserts the nodes into the collection.81{
80 :82 qdml:insert-last( ddl:to-qname( $name ), $content )
81 : @error zerr:ZDDY0003 if the collection identified by $name is not available.83};
82 :84
83 :)85(:~
84declare updating function dml:insert-nodes-last(86 : Inserts copies of the given nodes into a collection at the position directly
85 $name as xs:string,87 : preceding the given target node.
86 $content as node()*)88 :
87{89 : @param $name The name of the collection to insert into.
88 qdml:insert-nodes-last(ddl:to-qname($name), $content)90 : @param $target The node in the collection before which <code>$content</code>
89};91 : will be inserted.
9092 : @param $content The sequences of nodes whose copies will be inserted.
91(:~93 : @return An empty XDM instance and a pending update list that, once applied,
92 : The insert-nodes-before function is an updating function that inserts94 : inserts the nodes into the collection.
93 : copies of the given nodes into a collection at the position directly preceding the95 : @error zerr:ZDDY0003 if the collection is not available.
94 : given target node.96 : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the
95 :97 : collection.
96 : @param $name The name of the collection to which the nodes should be added.98 :)
97 : @param $target The node in the collection before which the $content99declare updating function dml:insert-nodes-before( $name as xs:string,
98 : sequence should be inserted.100 $target as node(),
99 : @param $content The sequences of nodes whose copies should be added to the collection.101 $content as node()* )
100 :102{
101 : @return The result of the function is an empty XDM instance and a pending update list103 qdml:insert-before( ddl:to-qname( $name ), $target, $content )
102 : which, once applied, inserts the nodes into the collection.104};
103 :105
104 : @error zerr:ZDDY0003 if the collection identified by $name is not available.106(:~
105 : @error zerr:ZDDY0011 if the target node is not contained in the collection.107 : Inserts copies of the given nodes into a collection at the position
106 :108 : directly following the given target node.
107 :)109 :
108declare updating function dml:insert-nodes-before($name as xs:string,110 : @param $name The name of the collection to insert into.
109 $target as node(),111 : @param $target The node in the collection after which <code>$content</code>
110 $content as node()*)112 : will be inserted.
111{113 : @param $content The sequence of nodes whose copies will be inserted.
112 qdml:insert-nodes-before(ddl:to-qname($name), $target, $content)114 : @return An empty XDM instance and a pending update list that, once applied,
113};115 : inserts the nodes into the collection.
114116 : @error zerr:ZDDY0003 if the collection is not available.
115(:~117 : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the
116 : The insert-nodes-after function is an updating function that inserts118 : collection.
117 : copies of the given nodes into a collection at the position directlry following the119 :)
118 : given target node.120declare updating function dml:insert-nodes-after( $name as xs:string,
119 :
120 : @param $name The name of the collection to which the nodes should be added.
121 : @param $target The node in the collection after which the $content
122 : sequence should be inserted.
123 : @param $content The sequences of nodes whose copies should be added to the collection.
124 :
125 : @return The result of the function is an empty XDM instance and a pending update list
126 : which, once applied, inserts the nodes into the collection.
127 :
128 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
129 : @error zerr:ZDDY0011 if the target node is not contained in the collection.
130 :
131 :)
132declare updating function dml:insert-nodes-after($name as xs:string,
133 $pos as node(),121 $pos as node(),
134 $content as node()*)122 $content as node()* )
135{123{
136 qdml:insert-nodes-after(ddl:to-qname($name), $pos, $content)124 qdml:insert-after( ddl:to-qname( $name ), $pos, $content )
137};125};
138126
139
140(:~127(:~
141 : This function does the same as the insert-nodes function except128 : This function does the same as the <code>insert-nodes()</code> function
142 : it immediately applies the resulting pending updates and returns the129 : except it immediately applies the resulting pending updates and returns the
143 : nodes that have been inserted.130 : nodes that have been inserted.
144 :131 :
145 : @param $name The name of the collection to which the nodes should be added.132 : @param $name The name of the collection to insert into.
146 : @param $content The sequences of nodes whose copies should be added to the collection.133 : @param $content The sequence of nodes whose copies will be inserted.
147 :134 : @return The sequence of nodes that have been inserted.
148 : @return The result of the function is the sequence of nodes that have been135 : @error zerr:ZDDY0003 if the collection is not available.
149 : inserted into the collection.
150 :
151 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
152 :
153 : @see dml:insert-nodes-first136 : @see dml:insert-nodes-first
154 :
155 :)137 :)
156declare %an:sequential function dml:apply-insert-nodes-first(138declare %an:sequential function
157 $name as xs:string,139dml:apply-insert-nodes-first( $name as xs:string, $content as node()* )
158 $content as node()*) as node()*140 as node()*
159{141{
160 qdml:apply-insert-nodes-first(ddl:to-qname($name), $content)142 qdml:apply-insert-first( ddl:to-qname( $name ), $content )
161};143};
162144
163(:~145(:~
164 : This function does the same as the insert-nodes-last function except146 : This function does the same as the <code>insert-nodes-last()</code> function
165 : it immediately applies the resulting pending updates and returns the147 : except it immediately applies the resulting pending updates and returns the
166 : nodes that have been inserted.148 : nodes that have been inserted.
167 :149 :
168 : @param $name The name of the collection to which the nodes should be added.150 : @param $name The name of the collection to insert into.
169 : @param $content The sequences of nodes whose copies should be added to the collection.151 : @param $content The sequence of nodes whose copies will be inserted.
170 :152 : @return The sequence of nodes that have been inserted.
171 : @return The result of the function is the sequence of nodes that have been153 : @error zerr:ZDDY0003 if the collection is not available.
172 : inserted into the collection.
173 :
174 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
175 :
176 : @see dml:insert-nodes-last154 : @see dml:insert-nodes-last
177 :
178 :)155 :)
179declare %an:sequential function dml:apply-insert-nodes-last(156declare %an:sequential function
180 $name as xs:string,157dml:apply-insert-nodes-last( $name as xs:string, $content as node()* )
181 $content as node()*) as node()*158 as node()*
182{159{
183 qdml:apply-insert-nodes-last(ddl:to-qname($name), $content)160 qdml:apply-insert-last( ddl:to-qname( $name ), $content )
184};161};
185162
186(:~163(:~
187 : This function does the same as the insert-nodes-before function except164 : This function does the same as the <code>insert-nodes-before()</code>
188 : it immediately applies the resulting pending updates and returns the165 : function except it immediately applies the resulting pending updates and
189 : nodes that have been inserted.166 : returns the nodes that have been inserted.
190 :167 :
191 : @param $name The name of the collection to which the nodes should be added.168 : @param $name The name of the collection to insert into.
192 : @param $target The node in the collection before which the $content169 : @param $target The node in the collection before which <code>$content</code>
193 : sequence should be inserted.170 : will be inserted.
194 : @param $content The sequences of nodes whose copies should be added to the collection.171 : @param $content The sequence of nodes whose copies will be inserted.
195 :172 : @return The sequence of nodes that have been inserted.
196 : @return The result of the function is the sequence of nodes that have been173 : @error zerr:ZDDY0003 if the collection is not available.
197 : inserted into the collection.
198 :
199 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
200 :
201 : @see dml:insert-nodes-before174 : @see dml:insert-nodes-before
202 :
203 :)175 :)
204declare %an:sequential function dml:apply-insert-nodes-before(176declare %an:sequential function
205 $name as xs:string,177dml:apply-insert-nodes-before( $name as xs:string,
206 $target as node(),178 $target as node(),
207 $content as node()*) as node()*179 $content as node()* )
180 as node()*
208{181{
209 qdml:apply-insert-nodes-before(ddl:to-qname($name), $target, $content)182 qdml:apply-insert-before( ddl:to-qname( $name ), $target, $content )
210};183};
211184
212(:~185(:~
213 : This function does the same as the insert-nodes-after function except186 : This function does the same as the <code>insert-nodes-after()</code>
214 : it immediately applies the resulting pending updates and returns the187 : function except it immediately applies the resulting pending updates and
215 : nodes that have been inserted.188 : returns the nodes that have been inserted.
216 :189 :
217 : @param $name The name of the collection to which the nodes should be added.190 : @param $name The name of the collection to insert into.
218 : @param $target The node in the collection after which the $content191 : @param $target The node in the collection after which <code>$content</code>
219 : sequence should be inserted.192 : will be inserted.
220 : @param $content The sequences of nodes whose copies should be added to the collection.193 : @param $content The sequence of nodes whose copies will be inserted.
221 :194 : @return The sequence of nodes that have been inserted.
222 : @return The result of the function is the sequence of nodes that have been195 : @error zerr:ZDDY0003 if the collection is not available.
223 : inserted into the collection.
224 :
225 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
226 :
227 : @see dml:insert-nodes-after196 : @see dml:insert-nodes-after
228 :197 :)
229 :)198declare %an:sequential function
230declare %an:sequential function dml:apply-insert-nodes-after(199dml:apply-insert-nodes-after( $name as xs:string,
231 $name as xs:string,200 $pos as node(),
232 $pos as node(),201 $content as node()* )
233 $content as node()*) as node()*202 as node()*
234{203{
235 qdml:apply-insert-nodes-after(ddl:to-qname($name), $pos, $content)204 qdml:apply-insert-after( ddl:to-qname( $name ), $pos, $content )
236};205};
237206
238(:~207(:~
239 : The delete-nodes function is an updating function that deletes zero of more208 : Gets the sequence of nodes of the collection identified by the given name.
240 : nodes from a collection.
241 :
242 : @param $target the nodes in the collection that should be deleted.
243 :
244 : @return The result of this function is an empty XDM instance and a pending update
245 : list which, once applied, deletes the nodes from their collections.
246 :
247 : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of a collection
248 : or not all nodes of the $target sequence belong to the same collection.
249 : the collection identified by the $name parameter.
250 :
251 :)
252declare updating function dml:delete-nodes($target as node()*)
253{
254 qdml:delete-nodes($target)
255};
256
257(:~
258 : The delete-node-first function is an updating function that deletes the
259 : first node from a collection.
260 :
261 : @param $name The name of the collection from which the first node should be deleted.
262 :
263 : @return The result of this function is an empty XDM instance and a pending update
264 : list which, once applied, deletes the first node from the collection.
265 :
266 : @error zerr:ZDDY0011 if the collection doesn't contain any node.
267 :
268 :)
269declare updating function dml:delete-node-first($name as xs:string)
270{
271 qdml:delete-node-first(ddl:to-qname($name))
272};
273
274(:~
275 : The delete-nodes-first function is an updating function that deletes the
276 : first n nodes from a collection.
277 :
278 : @param $name The name of the collection from which the first node should be deleted.
279 : @param $number The number of nodes that should be removed from the beginning of
280 : the collection.
281 :
282 : @return The result of this function is an empty XDM instance and a pending update
283 : list which, once applied, deletes the nodes from the collection.
284 :
285 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
286 :)
287declare updating function dml:delete-nodes-first(
288 $name as xs:string,
289 $number as xs:integer)
290{
291 qdml:delete-nodes-first(ddl:to-qname($name), $number)
292};
293
294(:~
295 : The delete-node-last function is an updating function that deletes the
296 : last node from a collection.
297 :
298 : @param $name The name of the collection from which the first node should be deleted.
299 :
300 : @return The result of this function is an empty XDM instance and a pending update
301 : list which, once applied, deletes the last node from the collection.
302 :
303 : @error zerr:ZDDY0009 If available collections does not provide a mapping
304 : for the URI $name.
305 : @error zerr:ZDDY0011 if the collection doesn't contain any node.
306 :)
307declare updating function dml:delete-node-last($name as xs:string)
308{
309 qdml:delete-node-last(ddl:to-qname($name))
310};
311
312(:~
313 : The delete-nodes-last function is an updating function that deletes the
314 : last n nodes from an ordered collection.
315 :
316 : @param $name The name of the collection from which the first node should be deleted.
317 : @param $number The number of nodes to delete.
318 :
319 : @return The result of this function is an empty XDM instance and a pending update
320 : list which, once applied, deletes the last n nodes.
321 :
322 : @error zerr:ZDDY0009 If available collections does not provide a mapping
323 : for the URI $name.
324 : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes.
325 :)
326declare updating function dml:delete-nodes-last(
327 $name as xs:string,
328 $number as xs:integer)
329{
330 qdml:delete-nodes-last(ddl:to-qname($name), $number)
331};
332
333(:~
334 : The index-of function return the index of the given node in the collection.
335 :
336 : @param node The node to retrieve the index from.
337 :
338 : @return Returns the position as xs:integer of the given node in the collection.
339 :
340 : @error zerr:ZDDY0011 if node is not contained in any collection.
341 :
342 :)
343declare function dml:index-of($node as node()) as xs:integer
344{
345 qdml:index-of($node)
346};
347
348(:~
349 : The collection function returns the sequence of nodes of the collection
350 : identified by the given name.
351 :209 :
352 : @param $name The name of the collection.210 : @param $name The name of the collection.
353 :
354 : @return The sequence contained in the given collection.211 : @return The sequence contained in the given collection.
355 :212 : @error zerr:ZDDY0003 if the collection is not available.
356 : @error zerr:ZDDY0009 If available collections does not provide a mapping213 :)
357 : for the URI $name.214declare function dml:collection( $name as xs:string )
358 :215 as node()*
359 :)216{
360declare function dml:collection($name as xs:string) as node()*217 qdml:collection( ddl:to-qname( $name ) )
361{218};
362 qdml:collection(ddl:to-qname($name))219
363};220(:~
364221 : Gets the name of the collection the given node belongs to.
365(:~222 :
366 : This function returns the name of the collection the given node belongs223 : @param $node The node for which to get the name of the collection.
367 : to.224 : @return The URI of the collection to which <code>$node</code> belongs.
368 :225 : @error zerr:ZDDY0011 if <code>$node</code> does not belong to a collection.
369 : @param $node The node for which to get the name of the collection226 :)
370 : @return The result of this function is a URI which identifies the collection227declare function dml:collection-name( $node as node() )
371 : to which the given node belongs to.228 as xs:string
372 :229{
373 : @error zerr:ZDDY0011 if the given node does not belong to a collection.230 ddl:from-qname( qdml:collection-name( $node ) )
374 :231};
375 :)232
376declare function dml:collection-name($node as node()) as xs:string233(:~
377{234 : Deletes nodes from a collection.
378 ddl:from-qname(qdml:collection-name($node))235 :
379};236 : @param $nodes the nodes in the collection that should be deleted.
237 : @return An empty XDM instance and a pending update list that, once applied,
238 : deletes the nodes from their collections.
239 : @error zerr:ZDDY0011 if any nodes are not a member of a collection or not
240 : all nodes of belong to the same collection.
241 :)
242declare updating function dml:delete-nodes( $nodes as node()* )
243{
244 qdml:delete( $nodes )
245};
246
247(:~
248 : Deletes the first node from a collection.
249 :
250 : @param $name The name of the collection to delete from.
251 : @return An empty XDM instance and a pending update list that, once applied,
252 : deletes the first node from the collection.
253 : @error zerr:ZDDY0011 if the collection is empty.
254 :)
255declare updating function dml:delete-node-first( $name as xs:string )
256{
257 qdml:delete-first( ddl:to-qname( $name ) )
258};
259
260(:~
261 : Deletes the first <i>N</i> nodes from a collection.
262 :
263 : @param $name The name of the collection to delete from.
264 : @param $number The number of nodes to delete.
265 : @return An empty XDM instance and a pending update list that, once applied,
266 : deletes the nodes from the collection.
267 : @error zerr:ZDDY0011 if the collection contains less than
268 : <code>$number</code> items.
269 :)
270declare updating function dml:delete-nodes-first( $name as xs:string,
271 $number as xs:integer )
272{
273 qdml:delete-first( ddl:to-qname( $name ), $number )
274};
275
276(:~
277 : Deletes the last node from a collection.
278 :
279 : @param $name The name of the collection to delete from.
280 : @return An empty XDM instance and a pending update list that, once applied,
281 : deletes the last node from the collection.
282 : @error zerr:ZDDY0003 if the collection is not available.
283 : @error zerr:ZDDY0011 if the collection is empty.
284 :)
285declare updating function dml:delete-node-last( $name as xs:string )
286{
287 qdml:delete-last( ddl:to-qname( $name ) )
288};
289
290(:~
291 : Deletes the last <i>N</i> nodes from a collection.
292 :
293 : @param $name The name of the collection to delete from.
294 : @param $number The number of nodes to delete.
295 : @return An empty XDM instance and a pending update list that, once applied,
296 : deletes the last n nodes.
297 : @error zerr:ZDDY0003 if the collection is not available.
298 : @error zerr:ZDDY0011 if the collection contains less than
299 : <code>$number</code> items.
300 :)
301declare updating function dml:delete-nodes-last( $name as xs:string,
302 $number as xs:integer )
303{
304 qdml:delete-last( ddl:to-qname( $name ), $number )
305};
306
307(:~
308 : Gets the index of the given node in the collection.
309 :
310 : @param $node The node to get the index of.
311 : @return Returns the position of <code>$node</code> in the collection.
312 : @error zerr:ZDDY0011 if <code>$node</code> is not contained in any
313 : collection.
314 :)
315declare function dml:index-of( $node as node() )
316 as xs:integer
317{
318 qdml:index-of( $node )
319};
320
321(:===========================================================================:)
322
323(: vim:set et sw=2 ts=2: :)
380324
=== renamed directory 'modules/com/zorba-xquery/www/modules/store/static' => 'modules/store/static'
=== modified file 'modules/store/static/collections/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/static/collections/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/collections/ddl.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,146 +17,128 @@
17 :)17 :)
1818
19(:~19(:~
20 : This modules defines a set of functions for managing collections which are20 : This modules defines a set of functions for managing collections that are
21 : declared in the prolog of a module.21 : declared in the prolog of a module.
22 : For example, it provides functions to create, delete, or introspect collections.22 : For example, it provides functions to create, delete, or introspect
23 :23 : collections.
24 : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data24 : <p/>
25 : This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data
25 : Definition Facility</a>. All the collections managed by this module26 : Definition Facility</a>. All the collections managed by this module
26 : have to be pre-declared in the prolog of a module. Please refer to the27 : have to be pre-declared in the prolog of a module. Please refer to the
27 : <a href="../zorba/data_lifecycle.html">general documentation</a>28 : <a href="../zorba/data_lifecycle.html">general documentation</a>
28 : for more information and examples.</p>29 : for more information and examples.
29 :30 :
30 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>31 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
31 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>32 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
32 : @see http://www.zorba-xquery.com/modules/store/static/collections/dml33 : @see http://zorba.io/modules/store/static/collections/dml
33 : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl34 : @see http://zorba.io/modules/store/static/indexes/ddl
34 : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml35 : @see http://zorba.io/modules/store/static/indexes/dml
35 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl36 : @see http://zorba.io/modules/store/static/integrity-constraints/ddl
36 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml37 : @see http://zorba.io/modules/store/static/integrity-constraints/dml
37 : @see http://zorba.io/errors38 : @see http://zorba.io/errors
38 :39 :
39 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis40 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
40 :
41 : @project Zorba/Data Store/Collections/Static Data Definition41 : @project Zorba/Data Store/Collections/Static Data Definition
42 :
43 :)42 :)
44module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl";43module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl";
4544
46declare namespace zerr = "http://zorba.io/errors";45declare namespace zerr = "http://zorba.io/errors";
47declare namespace ver = "http://zorba.io/options/versioning";46declare namespace ver = "http://zorba.io/options/versioning";
48declare option ver:module-version "2.0";47declare option ver:module-version "2.0";
4948
5049(:===========================================================================:)
51(:~50
52 : The create function is an updating function which creates51(:~
53 : the collection with the given expanded QName.52 : Gets the QNames of the collections that have been statically declared and
54 :53 : are available, if any.
55 : @param $name The QName of the collection to create.54:
56 :55 : @return A sequence comprising one QName for each statically declared and
57 : @return The result of the function is an empty XDM instance and a 56 : available collection or an emtpy sequence if no such collections are
58 : pending update list which, once applied, creates a collection57 : available.
59 : with the given name.58 :)
60 :59declare function cddl:available-collections()
61 : @error zerr:ZDDY0001 if the expanded QName $name is not equal60 as xs:QName* external;
62 : to any of the declared collections in the static context.61
63 : @error zerr:ZDDY0002 if a collection with the given expanded QName already62(:~
64 : exists.63 : Creates a collection.
65 :64 :
66 :)65 : @param $name The of the collection to create.
67declare updating function cddl:create($name as xs:QName) external;66 : @return An empty XDM instance and a pending update list that, once applied,
6867 : creates a collection with the given name.
6968 : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
70(:~69 : declared collections in the static context.
71 : The create function is an updating function which creates70 : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
72 : the collection with the given expanded QName. Moreover, it adds copies71 :)
73 : of the sequence $content to the new collection.72declare updating function cddl:create( $name as xs:QName ) external;
74 :73
75 : @param $name The QName of the collection to create.74(:~
76 : @param $content The sequences of items (nodes and/or json items) that should75 : Creates a collection and adds the given sequence as content to the new
77 : be added to the new collection.76 : collection.
78 :77 :
79 : @return The result of the function is an empty XDM instance and a 78 : @param $name The name of the collection to create.
80 : pending update list which, once applied, creates a collection79 : @param $content The sequences of items (nodes or JSON items) to be added to
81 : with the given name and inserts the given items into it.80 : the new collection.
82 :81 : @return An empty XDM instance and a pending update list that, once applied,
83 : @error zerr:ZDDY0001 if the expanded QName $name is not equal82 : creates a collection with the given name and inserts the given items into
84 : to any of the declared collections in the static context.83 : it.
85 : @error zerr:ZDDY0002 if a collection with the given expanded QName already84 : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
86 : exists.85 : declared collections in the static context.
87 : @error zerr:ZDTY0001 if $content does not match the expected type86 : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists.
88 : (i.e. declared by the collection) according to the rules87 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
89 : for SequenceType Matching.88 : type declared by the collection according to the rules for SequenceType
90 :89 : Matching.
91 :)90 :)
92declare updating function cddl:create($name as xs:QName, $content as item()*) external;91declare updating function cddl:create( $name as xs:QName,
9392 $content as item()* )
9493 external;
95(:~94
96 : The delete function is an updating function that deletes95(:~
97 : the collection with the given expanded QName.96 : Gets the collections that have been declared in the prolog of the static
98 :97 : context.
99 : @param $name The QName of the collection to delete.98 :
100 :99 : @return A sequence of QNames, one for each collection created in the static
101 : @return The result of the function is an empty XDM instance and a pending100 : context, or an emtpy sequence.
102 : update list which, once applied, deletes the collection with the given101 :)
103 : name.102declare function cddl:declared-collections()
104 :103 as xs:QName* external;
105 : @error zerr:ZDDY0001 if the expanded QName $name is not equal104
106 : to any of the declared collections in the static context.105(:~
107 : @error zerr:ZDDY0003 if the expanded QName $name is not equal106 : Deletes a collection.
108 : to any of the available collections.107 :
109 : @error zerr:ZDDY0015 if any of the in-scope variables references an item that108 : @param $name The collection to delete.
110 : belongs to the collection with QName $name.109 : @return An empty XDM instance and a pending update list that, once applied,
110 : deletes the collection with the given name.
111 : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the
112 : declared collections in the static context.
113 : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is
114 : not available.
111 : @error zerr:ZDDY0013 if the domain or key expression of any of the available115 : @error zerr:ZDDY0013 if the domain or key expression of any of the available
112 : indexes access the collection with name $name.116 : indexes access the collection having <code>$name</code>.
113 :117 : @error zerr:ZDDY0015 if any of the in-scope variables references an item
114 :)118 : that belongs to the collection having <code>$name</code>
115declare updating function cddl:delete($name as xs:QName) external;119 :)
116120declare updating function cddl:delete( $name as xs:QName )
117121 external;
118(:~122
119 : The function returns true if a collection with the given QName is123(:~
120 : statically declared and available (i.e. has been created).124 : Gets whether a collection is statically declared and available.
121 :125 :
122 : @param $name The QName of the collection that is being checked.126 : @param $name The name of the collection to check.
123 :127 : @return true if the collection was statically declared and is available;
124 : @return true if the collection is statically declared and available,128 : false otherwise.
125 : false otherwise.129 :)
126 :130declare function cddl:is-available-collection( $name as xs:QName )
127 :)131 as xs:boolean external;
128declare function cddl:is-available-collection($name as xs:QName) as xs:boolean external;132
129133(:~
130134 : Gers whether a collection was declared in the prolog of the static context.
131(:~135 :
132 : The function returns a sequence of QNames of the collections that are136 : @param $name The name of the collection to check.
133 : statically declared and available. The sequence will be empty if there137 : @return true if the collection was declared; false otherwise.
134 : are no such collections.138 :)
135 :139declare function cddl:is-declared-collection( $name as xs:QName )
136 : @return A sequence of QNames, one for each statically declared and available140 as xs:boolean external;
137 : collection, or an emtpy sequence.141
138 :142(:===========================================================================:)
139 :)143
140declare function cddl:available-collections() as xs:QName* external;144(: vim:set et sw=2 ts=2: :)
141
142
143(:~
144 : The function returns true if a collection with the given
145 : QName is declared in the prolog of the static context.
146 :
147 : @param $name The QName of the collection that is being checked.
148 :
149 : @return true if the collection is declared or false otherwise.
150 :
151 :)
152declare function cddl:is-declared-collection($name as xs:QName) as xs:boolean external;
153
154
155(:~
156 : The function returns a sequence of QNames representing the collections that have
157 : been declared in the prolog of the static context.
158 :
159 : @return A sequence of QNames, one for each created collection, or an emtpy sequence.
160 :
161 :)
162declare function cddl:declared-collections() as xs:QName* external;
163145
=== modified file 'modules/store/static/collections/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/static/collections/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/collections/dml.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -17,30 +17,30 @@
17:)17:)
1818
19(:~19(:~
20 : This modules provides a set of functions to modify a collection and retrieve the items20 : This modules provides a set of functions to modify a collection
21 : contained in a particular collection.21 : and retrieve the items contained in a particular collection.
22 :22 : <p/>
23 : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data23 : This module is part of
24 : Definition Facility</a>. All the collections managed by this module24 : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
25 : have to be pre-declared in the prolog of a module. Please refer to the25 : All the collections managed by this module have to be pre-declared in the
26 : prolog of a module.
27 : Please refer to the
26 : <a href="../zorba/data_lifecycle.html">general documentation</a>28 : <a href="../zorba/data_lifecycle.html">general documentation</a>
27 : for more information and examples.</p>29 : for more information and examples.
28 :30 :
29 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>31 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
30 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>32 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
31 : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl33 : @see http://zorba.io/modules/store/static/collections/ddl
32 : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl34 : @see http://zorba.io/modules/store/static/indexes/ddl
33 : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml35 : @see http://zorba.io/modules/store/static/indexes/dml
34 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl36 : @see http://zorba.io/modules/store/static/integrity-constraints/ddl
35 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml37 : @see http://zorba.io/modules/store/static/integrity-constraints/dml
36 : @see http://zorba.io/errors38 : @see http://zorba.io/errors
37 :39 :
38 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis40 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
39 :
40 : @project Zorba/Data Store/Collections/Static Data Manipulation41 : @project Zorba/Data Store/Collections/Static Data Manipulation
41 :
42 :)42 :)
43module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml";43module namespace cdml = "http://zorba.io/modules/store/static/collections/dml";
4444
45declare namespace an = "http://zorba.io/annotations";45declare namespace an = "http://zorba.io/annotations";
46declare namespace zerr = "http://zorba.io/errors";46declare namespace zerr = "http://zorba.io/errors";
@@ -48,923 +48,430 @@
48declare namespace ver = "http://zorba.io/options/versioning";48declare namespace ver = "http://zorba.io/options/versioning";
49declare option ver:module-version "2.0";49declare option ver:module-version "2.0";
5050
5151(:===========================================================================:)
52(:~52
53 : The insert-nodes function is an updating function that inserts copies of the53(:~
54 : given nodes into a collection. 54 : Gets the sequence of nodes or JSON items from a collection.
55 : Please note that the insertion position of the nodes in the collection is55 :
56 : not defined.56 : @param $name The name of the collection.
57 :57 : @return The seqnence of items from the collection.
58 : @param $name The name of the collection to which the nodes should be added.58 : @error zerr:ZDDY0001 if the collection is not declared.
59 : @param $content The sequences of nodes whose copies should be added to the collection.59 : @error zerr:ZDDY0003 if the collection is not available.
60 :60 :)
61 : @return The result of the function is an empty XDM instance and a pending update list61declare function cdml:collection( $name as xs:QName )
62 : which, once applied, inserts the nodes into the collection.62 as item()* external;
63 :63
64 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.64(:~
65 : @error zerr:ZDDY0003 if the collection identified by $name is not available.65 : Gets the sequence of nodes or JSON items from a collection.
66 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,66 :
67 : const, or queue.67 : @param $name The name of the collection.
68 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified68 : @param $skip The initial number of items to skip.
69 : in the collection declaration) according to the rules for SequenceType Matching.69 : @return The (sub)sequence of items from the collection.
70 :70 :
71 : @deprecated please use the cdml:insert#2 function71 : @error zerr:ZDDY0001 if the collection is not declared.
72 :72 : @error zerr:ZDDY0003 if the collection is not available.
73 :)73 :)
74declare updating function 74declare function cdml:collection( $name as xs:QName, $skip as xs:integer )
75cdml:insert-nodes($name as xs:QName, $content as node()*) external;75 as item()* external;
7676
7777(:~
78(:~78 : Gets the sequence of items (nodes or JSON items) from a collection.
79 : The insert function is an updating function that inserts copies of the given79 : The parameters <code>$start</code> and <code>$skip</code> can be used to
80 : items (nodes and/or json items) into a collection. Please note that the 80 : skip over some items at the beginning of the collection.
81 : insertion position of the items in the collection is not defined.81 : If both are given, both are applied:
82 :82 : first <code>$start</code> to skip to the referenced item
83 : @param $name The name of the collection to which the items should be added.83 : and then <code>$skip</code> to skip that additional number of items.
84 : @param $content The sequences of items whose copies should be added to the collection.84 :
85 :85 : @param $name The name of the collection.
86 : @return The result of the function is an empty XDM instance and a pending update list86 : @param $start The reference to the first item to return.
87 : which, once applied, inserts the items into the collection.87 : @param $skip The number of additional items to skip.
88 :88 : @return The sub-sequence from the collection.
89 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.89 : @error zerr:ZAPI0028 If the given URI is not a valid node position computed
90 : @error zerr:ZDDY0003 if the collection identified by $name is not available.90 : by the <code>np:node-position</code> function.
91 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,91 : @error zerr:ZDDY0001 if the collection is not declared.
92 : const, or queue.92 : @error zerr:ZDDY0003 if the collection is not available.
93 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified93 : @error zerr:ZSTR0066 if <code>$start</code> does not reference a node from
94 : in the collection declaration) according to the rules for SequenceType 94 : the collection.
95 : Matching.95 :)
96 :96declare function cdml:collection( $name as xs:QName,
97 :)97 $start as xs:anyURI,
98declare updating function 98 $skip as xs:integer )
99cdml:insert($name as xs:QName, $content as item()*) external;99 as item()* external;
100100
101101(:~
102(:~102 : Inserts copies of the given items (nodes or JSON items) into a collection.
103 : The insert-nodes-first function is an updating function that inserts copies103 : Note that the insertion position of the items in the collection is not
104 : of the given nodes at the beginning of a collection. 104 : defined.
105 :105 :
106 : @param $name The name of the collection to which the nodes should be added.106 : @param $name The name of the collection to insert into.
107 : @param $content The sequences of nodes whose copies should be added to the collection.107 : @param $content The sequence of items whose copies to insert.
108 :108 : @return An empty XDM instance and a pending update list that, once applied,
109 : @return The result of the function is an empty XDM instance and a pending update list109 : inserts the items into the collection.
110 : which, once applied, inserts the nodes into the collection.110 :
111 :111 : @error zerr:ZDDY0001 if the collection is not declared.
112 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.112 : @error zerr:ZDDY0003 if the collection is not available.
113 : @error zerr:ZDDY0003 if the collection identified by $name is not available.113 : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
114 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,114 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
115 : const, or queue.115 : type as specified in the collection declaration according to the rules for
116 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.116 : SequenceType Matching.
117 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified117 :)
118 : in the collection declaration) according to the rules for SequenceType Matching.118declare updating function cdml:insert( $name as xs:QName,
119 :119 $content as item()* )
120 : @deprecated please use the cdml:insert-first#2 function120 external;
121 :
122 :)
123declare updating function
124cdml:insert-nodes-first($name as xs:QName, $content as node()*) external;
125
126
127(:~
128 : The insert-first function is an updating function that inserts copies of the
129 : given items (nodes and/or json items) at the beginning of a collection.
130 :
131 : @param $name The name of the collection to which the items should be added.
132 : @param $content The sequences of items whose copies should be added to the collection.
133 :
134 : @return The result of the function is an empty XDM instance and a pending update list
135 : which, once applied, inserts the items into the collection.
136 :
137 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
138 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
139 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
140 : const, or queue.
141 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
142 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
143 : in the collection declaration) according to the rules for SequenceType Matching.
144 :
145 :)
146declare updating function
147cdml:insert-first($name as xs:QName, $content as item()*) external;
148
149
150(:~
151 : The insert-nodes-last function is an updating function that inserts
152 : copies of the given nodes at the end of a collection.
153 :
154 : @param $name The name of the collection to which the nodes should be added.
155 : @param $content The sequences of nodes whose copies should be added to the collection.
156 :
157 : @return The result of the function is an empty XDM instance and a pending update list
158 : which, once applied, inserts the nodes into the collection.
159 :
160 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
161 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
162 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
163 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
164 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
165 : in the collection declaration) according to the rules for SequenceType Matching.
166 :
167 : @deprecated please use the cdml:insert-last#2 function
168 :
169 :)
170declare updating function
171cdml:insert-nodes-last($name as xs:QName, $content as node()*) external;
172
173
174(:~
175 : The insert-last function is an updating function that inserts copies of the
176 : given items (nodes and/or json items) at the end of a collection.
177 :
178 : @param $name The name of the collection to which the items should be added.
179 : @param $content The sequences of itemss whose copies should be added to the collection.
180 :
181 : @return The result of the function is an empty XDM instance and a pending update list
182 : which, once applied, inserts the items into the collection.
183 :
184 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
185 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
186 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
187 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
188 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
189 : in the collection declaration) according to the rules for SequenceType Matching.
190 :
191 :)
192declare updating function
193cdml:insert-last($name as xs:QName, $content as item()*) external;
194
195
196(:~
197 : The insert-nodes-before function is an updating function that inserts
198 : copies of the given nodes into a collection at the position directly preceding the
199 : given target node.
200 :
201 : @param $name The name of the collection to which the nodes should be added.
202 : @param $target The node in the collection before which the $content
203 : sequence should be inserted.
204 : @param $content The sequences of nodes whose copies should be added to the collection.
205 :
206 : @return The result of the function is an empty XDM instance and a pending update list
207 : which, once applied, inserts the nodes into the collection.
208 :
209 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
210 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
211 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
212 : append-only, or queue.
213 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
214 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
215 : in the collection declaration) according to the rules for SequenceType Matching.
216 : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
217 : the collection $name.
218 :
219 : @deprecated please use the cdml:insert-before#3 function
220 :
221 :)
222declare updating function
223cdml:insert-nodes-before(
224 $name as xs:QName,
225 $target as node(),
226 $content as node()*) external;
227
228
229(:~
230 : The insert-before function is an updating function that inserts copies of the
231 : given items (nodes and/or json items) into a collection at the position
232 : directly preceding the given target item.
233 :
234 : @param $name The name of the collection to which the items should be added.
235 : @param $target The item in the collection before which the $content
236 : sequence should be inserted.
237 : @param $content The sequences of items whose copies should be added to the collection.
238 :
239 : @return The result of the function is an empty XDM instance and a pending update list
240 : which, once applied, inserts the items into the collection.
241 :
242 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
243 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
244 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
245 : append-only, or queue.
246 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
247 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
248 : in the collection declaration) according to the rules for SequenceType Matching.
249 : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
250 : the collection $name.
251 :
252 :)
253declare updating function
254cdml:insert-before($name as xs:QName, $target as item(), $content as item()*) external;
255
256
257(:~
258 : The insert-nodes-after function is an updating function that inserts
259 : copies of the given nodes into a collection at the position directlry following the
260 : given target node.
261 :
262 : @param $name The name of the collection to which the nodes should be added.
263 : @param $target The node in the collection after which the $content
264 : sequence should be inserted.
265 : @param $content The sequences of nodes whose copies should be added to the collection.
266 :
267 : @return The result of the function is an empty XDM instance and a pending update list
268 : which, once applied, inserts the nodes into the collection.
269 :
270 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
271 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
272 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
273 : append-only, or queue.
274 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
275 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
276 : in the collection declaration) according to the rules for SequenceType Matching.
277 : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
278 : the collection $name.
279 :
280 : @deprecated please use the cdml:insert-after#3 function
281 :
282 :)
283declare updating function
284cdml:insert-nodes-after(
285 $name as xs:QName,
286 $target as node(),
287 $content as node()*) external;
288
289121
290(:~122(:~
291 : The insert-after function is an updating function that inserts copies of the123 : The insert-after function is an updating function that inserts copies of the
292 : given items (nodes and/or json items) into a collection at the position 124 : given items (nodes or JSON items) into a collection at the position
293 : directlry following the given target item.125 : directly following the given target item.
294 :126 :
295 : @param $name The name of the collection to which the items should be added.127 : @param $name The name of the collection to insert into.
296 : @param $target The item in the collection after which the $content128 : @param $target The item in the collection after which <code>$content</code>
297 : sequence should be inserted.129 : will be inserted.
298 : @param $content The sequences of items whose copies should be added to the collection.130 : @param $content The sequence of items whose copies to insert.
299 :131 : @return An empty XDM instance and a pending update list that, once applied,
300 : @return The result of the function is an empty XDM instance and a pending update list132 : inserts the items into the collection.
301 : which, once applied, inserts the items into the collection.133 : @error zerr:ZDDY0001 if the collection is not declared.
302 :134 : @error zerr:ZDDY0003 if the collection is not available.
303 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.135 : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
304 : @error zerr:ZDDY0003 if the collection identified by $name is not available.136 : @error zerr:ZDDY0012 if the collection is unordered.
305 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,137 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
306 : append-only, or queue.138 : type as specified in the collection declaration according to the rules for
307 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.139 : SequenceType Matching.
308 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified140 : @error zerr:ZDDY0011 if <code>$target</code> is not a node that is contained
309 : in the collection declaration) according to the rules for SequenceType Matching.141 : in the collection.
310 : @error zerr:ZDDY0011 if the $target node is not a node that is contained in142 :)
311 : the collection $name.143declare updating function cdml:insert-after( $name as xs:QName,
312 :144 $target as item(),
313 :)145 $content as item()* )
314declare updating function 146 external;
315cdml:insert-after($name as xs:QName, $target as item(), $content as item()*) external;147
316148(:~
317149 : Inserts copies of the given items (nodes or JSON items) into a collection at
318(:~150 : the position directly preceding the given target item.
319 : This function does the same as the insert-nodes function except151 :
320 : it immediately applies the resulting pending updates and returns the152 : @param $name The name of the collection to insert into.
321 : nodes that have been inserted.153 : @param $target The item in the collection before which <code>$content</code>
322 :154 : will be inserted.
323 : @param $name The name of the collection to which the nodes should be added.155 : @param $content The sequence of items whose copies to insert.
324 : @param $content The sequences of nodes whose copies should be added to the collection.156 : @return An empty XDM instance and a pending update list that, once applied,
325 :157 : inserts the items into the collection.
326 : @return The result of the function is the sequence of nodes that have been158 : @error zerr:ZDDY0001 if the collection is not declared.
327 : inserted into the collection.159 : @error zerr:ZDDY0003 if the collection is not available.
328 :160 : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
329 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.161 : @error zerr:ZDDY0012 if the collection is unordered.
330 : @error zerr:ZDDY0003 if the collection identified by $name is not available.162 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
331 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,163 : type as specified in the collection declaration according to the rules for
332 : const, or queue.164 : SequenceType Matching.
333 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified165 : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is
334 : in the collection declaration) according to the rules for SequenceType Matching.166 : contained in the collection.
335 :167 :)
336 : @see cdml:insert-nodes168declare updating function cdml:insert-before( $name as xs:QName,
337 :169 $target as item(),
338 : @deprecated please use the cdml:apply-insert#2 function170 $content as item()* )
339 :171 external;
340 :)172
341declare %an:sequential function 173(:~
342cdml:apply-insert-nodes($name as xs:QName, $content as node()*) as node()* external;174 : Inserts copies of the given items (nodes or JSON items) at the beginning of
343175 : a collection.
344176 :
345(:~177 : @param $name The name of the collection to insert into.
346 : This function does the same as the insert function except it immediately applies178 : @param $content The sequence of items whose copies to insert.
347 : the resulting pending updates and returns the items that have been inserted.179 : @return An empty XDM instance and a pending update list that, once applied,
348 :180 : inserts the items into the collection.
349 : @param $name The name of the collection to which the items should be added.181 : @error zerr:ZDDY0001 if the collection is not declared.
350 : @param $content The sequences of items whose copies should be added to the collection.182 : @error zerr:ZDDY0003 if the collection is not available.
351 :183 : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
352 : @return The result of the function is the sequence of items that have been184 : @error zerr:ZDDY0012 if the collection is unordered.
353 : inserted into the collection.185 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
354 :186 : type as specified in the collection declaration according to the rules for
355 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.187 : SequenceType Matching.
356 : @error zerr:ZDDY0003 if the collection identified by $name is not available.188 :)
357 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,189declare updating function cdml:insert-first( $name as xs:QName,
358 : const, or queue.190 $content as item()* )
359 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified191 external;
360 : in the collection declaration) according to the rules for SequenceType Matching.192
361 :193(:~
194 : Inserts copies of the given items (nodes or JSON items) at the end of a
195 : collection.
196 :
197 : @param $name The name of the collection to insert into.
198 : @param $content The sequence of itemss whose copies to insert.
199 : @return An empty XDM instance and a pending update list that, once applied,
200 : inserts the items into the collection.
201 : @error zerr:ZDDY0001 if the collection is not declared.
202 : @error zerr:ZDDY0003 if the collection is not available.
203 : @error zerr:ZDDY0006 if the collection is const.
204 : @error zerr:ZDDY0012 if the collection is unordered.
205 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
206 : type as specified in the collection declaration according to the rules for
207 : SequenceType Matching.
208 :)
209declare updating function cdml:insert-last( $name as xs:QName,
210 $content as item()* )
211 external;
212
213(:~
214 : This function does the same thing as <code>insert()</code> except it
215 : immediately applies the resulting pending updates and returns the items that
216 : have been inserted.
217 :
218 : @param $name The name of the collection to insert into.
219 : @param $content The sequence of items whose copies to insert.
220 : @return The sequence of items that have been inserted.
221 : @error zerr:ZDDY0001 if the collection is not declared.
222 : @error zerr:ZDDY0003 if the collection is not available.
223 : @error zerr:ZDDY0006 if the collection is append-only, const, or queue.
224 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
225 : type as specified in the collection declaration according to the rules for
226 : SequenceType Matching.
362 : @see cdml:insert227 : @see cdml:insert
363 :228 :)
364 :)229declare %an:sequential function cdml:apply-insert( $name as xs:QName,
365declare %an:sequential function 230 $content as item()* )
366cdml:apply-insert($name as xs:QName, $content as item()*) as item()* external;231 as item()* external;
367232
368(:~233(:~
369 : This function does the same as the insert-nodes-first function except234 : This function does the same thing as <code>insert-first()</code> except it
370 : it immediately applies the resulting pending updates and returns the235 : immediately applies the resulting pending updates and returns the items that
371 : nodes that have been inserted.236 : have been inserted.
372 :237 :
373 : @param $name The name of the collection to which the nodes should be added.238 : @param $name The name of the collection to insert into.
374 : @param $content The sequences of nodes whose copies should be added to the collection.239 : @param $content The sequence of items whose copies to insert.
375 :240 : @return The Sequence of items that have been inserted.
376 : @return The result of the function is the sequence of nodes that have been241 : @error zerr:ZDDY0001 if the collection is not declared.
377 : inserted into the collection.242 : @error zerr:ZDDY0003 if the collection is not available.
378 :243 : @error zerr:ZDDY0006 if the collection $name is append-only, const, or
379 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.244 : queue.
380 : @error zerr:ZDDY0003 if the collection identified by $name is not available.245 : @error zerr:ZDDY0012 if the collection is unordered.
381 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,246 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
382 : const, or queue.247 : type as specified in the collection declaration according to the rules for
383 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.248 : SequenceType Matching.
384 : @error zerr:ZDTY0001 if $content does not match the expected type according to the
385 : rules for SequenceType Matching.
386 :
387 : @see cdml:insert-nodes-first
388 :
389 : @deprecated please use the cdml:apply-insert-first#2 function
390 :
391 :)
392declare %an:sequential function
393cdml:apply-insert-nodes-first(
394 $name as xs:QName,
395 $content as node()*) as node()* external;
396
397
398(:~
399 : This function does the same as the insert-first function except it immediately
400 : applies the resulting pending updates and returns the items that have been
401 : inserted.
402 :
403 : @param $name The name of the collection to which the items should be added.
404 : @param $content The sequences of items whose copies should be added to the collection.
405 :
406 : @return The result of the function is the sequence of items that have been
407 : inserted into the collection.
408 :
409 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
410 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
411 : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only,
412 : const, or queue.
413 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
414 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
415 : in the collection declaration) according to the rules for SequenceType Matching.
416 :
417 : @see cdml:insert-first249 : @see cdml:insert-first
418 :250 :)
419 :)251declare %an:sequential function cdml:apply-insert-first( $name as xs:QName,
420declare %an:sequential function 252 $content as item()* )
421cdml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external;253 as item()* external;
422254
423(:~255(:~
424 : This function does the same as the insert-nodes-last function except256 : This function does the same thing as <code>insert-last()</code> except it
425 : it immediately applies the resulting pending updates and returns the257 : immediately applies the resulting pending updates and returns the items that
426 : nodes that have been inserted.258 : have been inserted.
427 :259 :
428 : @param $name The name of the collection to which the nodes should be added.260 : @param $name The name of the collection to insert into.
429 : @param $content The sequences of nodes whose copies should be added to the collection.261 : @param $content The sequence of items whose copies to insert.
430 :262 : @return The sequence of items that have been inserted.
431 : @return The result of the function is the sequence of nodes that have been263 : @error zerr:ZDDY0001 if the collection is not declared.
432 : inserted into the collection.264 : @error zerr:ZDDY0003 if the collection is not available.
433 :265 : @error zerr:ZDDY0006 if the collection is const.
434 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.266 : @error zerr:ZDDY0012 if the collection is unordered.
435 : @error zerr:ZDDY0003 if the collection identified by $name is not available.267 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
436 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.268 : type as specified in the collection declaration according to the rules for
437 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.269 : SequenceType Matching.
438 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
439 : in the collection declaration) according to the rules for SequenceType Matching.
440 :
441 : @see cdml:insert-nodes-last
442 :
443 : @deprecated please use the cdml:apply-insert-last#2 function
444 :
445 :)
446declare %an:sequential function
447cdml:apply-insert-nodes-last(
448 $name as xs:QName,
449 $content as node()*) as node()* external;
450
451
452(:~
453 : This function does the same as the insert-last function except it immediately
454 : applies the resulting pending updates and returns the items that have been
455 : inserted.
456 :
457 : @param $name The name of the collection to which the items should be added.
458 : @param $content The sequences of items whose copies should be added to the collection.
459 :
460 : @return The result of the function is the sequence of items that have been
461 : inserted into the collection.
462 :
463 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
464 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
465 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const.
466 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
467 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
468 : in the collection declaration) according to the rules for SequenceType Matching.
469 :
470 : @see cdml:insert-last270 : @see cdml:insert-last
471 :271 :)
472 :)272declare %an:sequential function cdml:apply-insert-last( $name as xs:QName,
473declare %an:sequential function 273 $content as item()* )
474cdml:apply-insert-last($name as xs:QName, $content as item()*) as item()* external;274 as item()* external;
475275
476276(:~
477(:~277 : This function does the same thing as <code>insert-before()</code> except it
478 : This function does the same as the insert-nodes-before function except278 : immediately applies the resulting pending updates and returns the items that
479 : it immediately applies the resulting pending updates and returns the279 : have been inserted.
480 : nodes that have been inserted.280 :
481 :281 : @param $name The name of the collection to insert into.
482 : @param $name The name of the collection to which the nodes should be added.282 : @param $target The item in the collection before which <code>$content</code>
483 : @param $target The node in the collection before which the $content283 : will be inserted.
484 : sequence should be inserted.284 : @param $content The sequence of items whose copies to insert.
485 : @param $content The sequences of nodes whose copies should be added to the collection.285 : @return The sequence of items that have been inserted.
486 :286 : @error zerr:ZDDY0001 if the collection is not declared.
487 : @return The result of the function is the sequence of nodes that have been287 : @error zerr:ZDDY0003 if the collection is not available.
488 : inserted into the collection.288 : @error zerr:ZDDY0006 if the collection $name is const, append-only, or
489 :289 : queue.
490 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.290 : @error zerr:ZDDY0012 if the collection is unordered.
491 : @error zerr:ZDDY0003 if the collection identified by $name is not available.291 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
492 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,292 : type as specified in the collection declaration according to the rules for
493 : append-only, or queue.293 : SequenceType Matching.
494 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.294 : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is
495 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified295 : contained in the collection.
496 : in the collection declaration) according to the rules for SequenceType Matching.
497 : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
498 : the collection $name.
499 :
500 : @see cdml:insert-nodes-before
501 :
502 : @deprecated please use the cdml:apply-insert-before#3 function
503 :
504 :)
505declare %an:sequential function
506cdml:apply-insert-nodes-before(
507 $name as xs:QName,
508 $target as node(),
509 $content as node()*) as node()* external;
510
511
512(:~
513 : This function does the same as the insert-before function except it immediately
514 : applies the resulting pending updates and returns the items that have been
515 : inserted.
516 :
517 : @param $name The name of the collection to which the items should be added.
518 : @param $target The item in the collection before which the $content
519 : sequence should be inserted.
520 : @param $content The sequences of items whose copies should be added to the collection.
521 :
522 : @return The result of the function is the sequence of items that have been
523 : inserted into the collection.
524 :
525 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
526 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
527 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
528 : append-only, or queue.
529 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
530 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
531 : in the collection declaration) according to the rules for SequenceType Matching.
532 : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
533 : the collection $name.
534 :
535 : @see cdml:insert-before296 : @see cdml:insert-before
536 :297 :)
537 :)298declare %an:sequential function cdml:apply-insert-before( $name as xs:QName,
538declare %an:sequential function 299 $target as item(),
539cdml:apply-insert-before(300 $content as item()* )
540 $name as xs:QName,301 as item()* external;
541 $target as item(),302
542 $content as item()*) as item()* external;303(:~
543304 : This function does the same thing as the <code>insert-after()</code>
544305 : function except it immediately applies the resulting pending updates and
545(:~306 : returns the items that have been inserted.
546 : This function does the same as the insert-nodes-after function except307 :
547 : it immediately applies the resulting pending updates and returns the308 : @param $name The name of the collection to insert into.
548 : nodes that have been inserted.309 : @param $target The item in the collection after which <code>$content</code>
549 :310 : will be inserted.
550 : @param $name The name of the collection to which the nodes should be added.311 : @param $content The sequence of items whose copies to insert.
551 : @param $target The node in the collection after which the $content312 : @return The sequence of items that have been inserted.
552 : sequence should be inserted.313 : @error zerr:ZDDY0001 if the collection is not declared.
553 : @param $content The sequences of nodes whose copies should be added to the collection.314 : @error zerr:ZDDY0003 if the collection is not available.
554 :315 : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
555 : @return The result of the function is the sequence of nodes that have been316 : @error zerr:ZDDY0012 if the collection is unordered.
556 : inserted into the collection.317 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
557 :318 : type as specified in the collection declaration according to the rules for
558 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.319 : SequenceType Matching.
559 : @error zerr:ZDDY0003 if the collection identified by $name is not available.320 : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection.
560 : @error zerr:ZDDY0006 if the modifier property of the collection $name is
561 : const, append-only, or queue.
562 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
563 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
564 : in the collection declaration) according to the rules for SequenceType Matching.
565 : @error zerr:ZDDY0011 if the $target node is not a node that is contained in
566 : the collection $name.
567 :
568 : @see cdml:insert-nodes-after
569 :
570 : @deprecated please use the cdml:apply-insert-after#3 function
571 :
572 :)
573declare %an:sequential function
574cdml:apply-insert-nodes-after(
575 $name as xs:QName,
576 $pos as node(),
577 $content as node()*) as node()* external;
578
579
580(:~
581 : This function does the same as the insert-after function except it immediately
582 : applies the resulting pending updates and returns the items that have been
583 : inserted.
584 :
585 : @param $name The name of the collection to which the items should be added.
586 : @param $target The item in the collection after which the $content
587 : sequence should be inserted.
588 : @param $content The sequences of items whose copies should be added to the collection.
589 :
590 : @return The result of the function is the sequence of items that have been
591 : inserted into the collection.
592 :
593 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
594 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
595 : @error zerr:ZDDY0006 if the modifier property of the collection $name is
596 : const, append-only, or queue.
597 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
598 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified
599 : in the collection declaration) according to the rules for SequenceType Matching.
600 : @error zerr:ZDDY0011 if the $target item is not an item that is contained in
601 : the collection $name.
602 :
603 : @see cdml:insert-after321 : @see cdml:insert-after
604 :322 :)
605 :)323declare %an:sequential function cdml:apply-insert-after( $name as xs:QName,
606declare %an:sequential function 324 $pos as item(),
607cdml:apply-insert-after(325 $content as item()* )
608 $name as xs:QName,326 as item()* external;
609 $pos as item(),327
610 $content as item()*) as item()* external;328(:~
611329 : Deletes items (nodes or JSON items) from a collection.
612330 :
613(:~331 : @param $items The items in the collection to delete.
614 : The delete-nodes function is an updating function that deletes zero of more332 :
615 : nodes from a collection. 333 : @return An empty XDM instance and a pending update list that, once applied,
616 :334 : deletes the items from their collections.
617 : @param $target the nodes in the collection that should be deleted.335 : @error zerr:ZDDY0001 if the collection is not declared.
618 :336 : @error zerr:ZDDY0003 if the collection is not available.
619 : @return The result of this function is an empty XDM instance and a pending update337 : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
620 : list which, once applied, deletes the nodes from their collections.338 : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a
621 :339 : collection or not all items belong to the same collection.
622 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.340 :)
623 : @error zerr:ZDDY0003 if the collection identified by $name is not available.341declare updating function cdml:delete( $items as item()* )
624 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,342 external;
625 : append-only, or queue.343
626 : @error zerr:ZDDY0011 if any node in the $target sequence is not a member of a344(:~
627 : collection or not all nodes of the $target sequence belong to the same345 : Deletes the first item from a collection.
628 : collection.346 :
629 :347 : @param $name The name of the collection to delete from.
630 : @deprecated please use the cdml:delete#1 function348 : @return An empty XDM instance and a pending update list that, once applied,
631 :349 : deletes the first item from the collection.
632 :)350 : @error zerr:ZDDY0001 if the collection is not declared.
633declare updating function 351 : @error zerr:ZDDY0003 if the collection is not available.
634cdml:delete-nodes($target as node()*) external;352 : @error zerr:ZDDY0006 if the collection is const or append-only.
635353 : @error zerr:ZDDY0012 if the collection is unordered.
636354 : @error zerr:ZDDY0011 if the collection is empty.
637(:~355 :)
638 : The delete function is an updating function that deletes zero of more items356declare updating function cdml:delete-first( $name as xs:QName )
639 : (nodes and/or json items) from a collection. 357 external;
640 :358
641 : @param $target the items in the collection that should be deleted.359(:~
642 :360 : Deletes the first <i>N</i> items from a collection.
643 : @return The result of this function is an empty XDM instance and a pending update361 :
644 : list which, once applied, deletes the items from their collections.362 : @param $name The name of the collection to delete from.
645 :363 : @param $number The number of items to delete.
646 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.364 : @return An empty XDM instance and a pending update list that, once applied,
647 : @error zerr:ZDDY0003 if the collection identified by $name is not available.365 : deletes the items from the collection.
648 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,366 : @error zerr:ZDDY0001 if the collection is not declared.
649 : append-only, or queue.367 : @error zerr:ZDDY0003 if the collection is not available.
650 : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of a368 : @error zerr:ZDDY0006 if the collection is const or append-only.
651 : collection or not all items of the $target sequence belong to the same369 : @error zerr:ZDDY0012 if the collection is unordered.
652 : collection.370 : @error zerr:ZDDY0011 if the collection contains less than
653 :371 : <code>$number</code> items.
654 :)372 :)
655declare updating function 373declare updating function cdml:delete-first( $name as xs:QName,
656cdml:delete($target as item()*) external;374 $number as xs:integer )
657375 external;
658376
659(:~377(:~
660 : The delete-node-first function is an updating function that deletes the378 : Deletes the last item from a collection.
661 : first node from an ordered collection.379 :
662 :380 : @param $name The name of the collection to delete from.
663 : @param $name The name of the collection from which the first node should be deleted.381 : @return An empty XDM instance and a pending update list that, once applied,
664 :382 : deletes the last item from the collection.
665 : @return The result of this function is an empty XDM instance and a pending update383 : @error zerr:ZDDY0001 if the collection is not declared.
666 : list which, once applied, deletes the first node from the collection.384 : @error zerr:ZDDY0003 if the collection is not available.
667 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.385 : @error zerr:ZDDY0006 if the collection is const, append-only, or queue.
668 : @error zerr:ZDDY0003 if the collection identified by $name is not available.386 : @error zerr:ZDDY0012 if the collection is unordered.
669 : @error zerr:ZDDY0006 if the modifier property of the collection $name is 387 : @error zerr:ZDDY0011 if the collection is empty.
670 : const or append-only.388 :)
671 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.389declare updating function cdml:delete-last( $name as xs:QName )
672 : @error zerr:ZDDY0011 If the collection is empty.390 external;
673 :391
674 : @deprecated please use the cdml:delete-first#1 function392(:~
675 :393 : Deletes the last <i>N</i> items from a collection.
676 :)394 :
677declare updating function 395 : @param $name The name of the collection to delete from.
678cdml:delete-node-first($name as xs:QName) external;396 : @param $number The number of items to delete.
679397 : @return An empty XDM instance and a pending update list that, once applied,
680398 : deletes the items.
681(:~399 : @error zerr:ZDDY0001 if the collection is not declared.
682 : The delete-first function is an updating function that deletes the first 400 : @error zerr:ZDDY0003 if the collection is not available.
683 : item from an ordered collection.401 : @error zerr:ZDDY0012 if the collection is unordered.
684 :402 : @error zerr:ZDDY0011 if the collection contains less than
685 : @param $name The name of the collection from which the first item should be deleted.403 : <code>$number</code> items.
686 :404 :)
687 : @return The result of this function is an empty XDM instance and a pending update405declare updating function cdml:delete-last( $name as xs:QName,
688 : list which, once applied, deletes the first item from the collection.406 $number as xs:integer )
689 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.407 external;
690 : @error zerr:ZDDY0003 if the collection identified by $name is not available.408
691 : @error zerr:ZDDY0006 if the modifier property of the collection $name is 409(:~
692 : const or append-only.410 : Edits the first supplied item so as to make it look exactly like a copy of
693 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.411 : the second supplied item while retaining its original identity.
694 : @error zerr:ZDDY0011 If the collection is empty.412 :
695 :413 : @param $target The target item to be edited.
696 :)414 : @param $content The item that serves as an edit goal.
697declare updating function 415 : @return An empty XDM instance and a pending update list that, once applied,
698cdml:delete-first($name as xs:QName) external;416 : performs the edit.
699417 : @error zerr:ZDDY0001 if the collection to which <code>$target</code> belongs
700418 : is not declared.
701(:~419 : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs
702 : The delete-nodes-first function is an updating function that deletes the420 : is not available.
703 : first n nodes from an ordered collection.421 : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs
704 :422 : is append-only, const, or queue.
705 : @param $name The name of the collection from which the first node should be deleted.423 : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection.
706 : @param $number The number of nodes that should be removed from the beginning of
707 : the collection.
708 :
709 : @return The result of this function is an empty XDM instance and a pending update
710 : list which, once applied, deletes the nodes from the collection.
711 :
712 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
713 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
714 : @error zerr:ZDDY0006 if the modifier property of the collection $name is
715 : const or append-only.
716 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
717 : @error zerr:ZDDY0011 If the collection contains less than $number nodes.
718 :
719 : @deprecated please use the cdml:delete-first#2 function
720 :
721 :)
722declare updating function
723cdml:delete-nodes-first($name as xs:QName, $number as xs:integer) external;
724
725
726(:~
727 : The delete-first function is an updating function that deletes the first N
728 : items from an ordered collection.
729 :
730 : @param $name The name of the collection from which the first N items should be deleted.
731 : @param $number The number N of items that should be removed from the beginning of
732 : the collection.
733 :
734 : @return The result of this function is an empty XDM instance and a pending update
735 : list which, once applied, deletes the items from the collection.
736 :
737 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
738 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
739 : @error zerr:ZDDY0006 if the modifier property of the collection $name is
740 : const or append-only.
741 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
742 : @error zerr:ZDDY0011 If the collection contains less than $number items.
743 :
744 :)
745declare updating function
746cdml:delete-first($name as xs:QName, $number as xs:integer) external;
747
748
749(:~
750 : The delete-node-last function is an updating function that deletes the
751 : last node from an ordered collection.
752 :
753 : @param $name The name of the collection from which the last node should be deleted.
754 :
755 : @return The result of this function is an empty XDM instance and a pending update
756 : list which, once applied, deletes the last node from the collection.
757 :
758 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
759 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
760 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
761 : append-only, or queue.
762 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
763 : @error zerr:ZDDY0011 If the collection is empty.
764 :
765 : @deprecated please use the cdml:delete-last#1 function
766 :)
767declare updating function
768cdml:delete-node-last($name as xs:QName) external;
769
770
771(:~
772 : The delete-last function is an updating function that deletes the last item
773 : from an ordered collection.
774 :
775 : @param $name The name of the collection from which the last item should be deleted.
776 :
777 : @return The result of this function is an empty XDM instance and a pending update
778 : list which, once applied, deletes the last item from the collection.
779 :
780 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
781 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
782 : @error zerr:ZDDY0006 if the modifier property of the collection $name is const,
783 : append-only, or queue.
784 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
785 : @error zerr:ZDDY0011 If the collection is empty.
786 :)
787declare updating function
788cdml:delete-last($name as xs:QName) external;
789
790
791(:~
792 : The delete-nodes-last function is an updating function that deletes the
793 : last n nodes from an ordered collection.
794 :
795 : @param $name The name of the collection from which the first node should be deleted.
796 : @param $number The number of nodes to delete.
797 :
798 : @return The result of this function is an empty XDM instance and a pending update
799 : list which, once applied, deletes the nodes.
800 :
801 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
802 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
803 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
804 : @error zerr:ZDDY0011 If the collection contains less than $number nodes.
805 :
806 : @deprecated please use the cdml:delete-last#2 function
807 :
808 :)
809declare updating function
810cdml:delete-nodes-last($name as xs:QName, $number as xs:integer) external;
811
812
813(:~
814 : The delete-last function is an updating function that deletes the last N items
815 : from an ordered collection.
816 :
817 : @param $name The name of the collection from which the last N items should be deleted.
818 : @param $number The number of items to delete.
819 :
820 : @return The result of this function is an empty XDM instance and a pending update
821 : list which, once applied, deletes the items.
822 :
823 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
824 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
825 : @error zerr:ZDDY0012 if the order property of the collection $name is unordered.
826 : @error zerr:ZDDY0011 If the collection contains less than $number items.
827 :
828 :)
829declare updating function
830cdml:delete-last($name as xs:QName, $number as xs:integer) external;
831
832
833(:~
834 : The edit function is an updating function that edits the first supplied
835 : item so as to make it look exactly like a copy of the second supplied item,
836 : while retaining its original identity.
837 :
838 : @param $target The target item ,that must be edited.
839 : @param $content The content item, that serves as an edit goal.
840 :
841 : @return The result of the function is an empty XDM instance and a pending update list
842 : which, once applied, performs the edit.
843 :
844 : @error zerr:ZDDY0001 if the collection to which $target belongs is not declared.
845 : @error zerr:ZDDY0003 if the collection to which $target belongs is not available.
846 : @error zerr:ZDDY0006 if the modifier property of the collection to which $target
847 : belongs is append-only, const, or queue.
848 : @error zerr:ZDDY0017 if the $target item is not a member of a collection.
849 : @error zerr:ZDDY0037 if the collection is append-only.424 : @error zerr:ZDDY0037 if the collection is append-only.
850 : @error zerr:ZDDY0038 if the collection is a queue.425 : @error zerr:ZDDY0038 if the collection is a queue.
851 : @error zerr:ZDDY0039 if the $target item is not a root.426 : @error zerr:ZDDY0039 if <code>$target</code> is not a root.
852 : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for427 : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the
853 : example because the target is a node and the content is an object).428 : content (for example, because the target is a node and the content is an
854 : @error zerr:ZDTY0001 if $content does not match the expected type (as specified429 : object).
855 : in the collection declaration) according to the rules for SequenceType Matching.430 : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected
856 :431 : type (as specified in the collection declaration) according to the rules for
432 : SequenceType Matching.
857 :)433 :)
858declare updating function 434declare updating function cdml:edit( $target as item(),
859cdml:edit($target as item(), $content as item()) external;435 $content as item() )
860436 external;
861437
862(:~438(:~
863 : The truncate function is an updating function that deletes the439 : Deletes the entire contents of collection.
864 : entire contents of collection.
865 :
866 : Please note that applying this function can not be undone in case440 : Please note that applying this function can not be undone in case
867 : an error happens during the application of the containing PUL.441 : an error happens during the application of the containing PUL.
868 :442 :
869 : @param $name The name of the collection whose content to delete443 : @param $name The name of the collection whose content to delete.
870 :444 : @return An empty XDM instance and a pending update list that, once applied,
871 : @return The result of this function is an empty XDM instance and a pending update445 : deletes the nodes.
872 : list which, once applied, deletes the nodes.446 : @error zerr:ZDDY0001 if the collection is not declared.
873 :447 : @error zerr:ZDDY0003 if the collection is not available.
874 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.448 :)
875 : @error zerr:ZDDY0003 if the collection identified by $name is not available.449declare updating function cdml:truncate( $name as xs:QName )
876 :450 external;
877 :)451
878declare updating function 452(:~
879cdml:truncate($name as xs:QName) external;453 : Gets the name of the collection the given item (node or JSON item) belongs
880454 : to.
881455 :
882(:~456 : @param $item The item for which to get the name of its collection.
883 : The collection function returns the sequence of nodes and/or json items457 : @return The name of the collection to which the given item belongs.
884 : that belong to the collection identified by the given name.458 : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
885 :459 :)
886 : @param $name The name of the collection.460declare function cdml:collection-name( $item as item() )
887 :461 as xs:QName external;
888 : @return The sequence contained in the given collection.462
889 :463(:~
890 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.464 : Gets the position of the given item (node or JSON item) within its
891 : @error zerr:ZDDY0003 if the collection identified by $name is not available.465 : collection.
892 :466 :
893 :)467 : @param $item The item to get the index of.
894declare function 468 : @return The position of <code>$item</code> in its collection.
895cdml:collection($name as xs:QName) as item()* external;469 : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection.
896470 : @error zerr:ZDDY0012 if the collection is unordered.
897471 :)
898(:~472declare function cdml:index-of( $item as item() )
899 : The collection function returns the sequence of nodes and/or json items473 as xs:integer external;
900 : that belong to the collection identified by the given name.474
901 :475(:===========================================================================:)
902 : @param $name The name of the collection.476
903 : @param $skip The number of collection items to skip.477(: vim:set et sw=2 ts=2: :)
904 :
905 : @return The sequence contained in the given collection.
906 :
907 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
908 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
909 :
910 :)
911declare function
912cdml:collection($name as xs:QName, $skip as xs:integer) as item()* external;
913
914
915(:~
916 : The collection function returns the sequence of nodes and/or json items
917 : that belong to the collection identified by the given name.
918 : The parameters $start and $skip can be used to skip over some items at
919 : the beginning of the collection. If both are given, both are applied:
920 : first $start to skip to the referenced item and then $skip to skip an
921 : additional number of items.
922 :
923 : @param $name The name of the collection.
924 : @param $start The reference to the first item to return. All items before
925 are skipped.
926 : @param $skip The number of collection items to skip.
927 :
928 : @return The sequence contained in the given collection.
929 :
930 : @error zerr:ZAPI0028 If the given URI is not a valid node
931 : position computed by the <tt>np:node-position</tt> function.
932 : @error zerr:ZDDY0001 if the collection identified by $name is not declared.
933 : @error zerr:ZDDY0003 if the collection identified by $name is not available.
934 : @error zerr:ZSTR0066 if the passed reference $start does not reference
935 : a node from the collection identified by $name.
936 :
937 :)
938declare function
939cdml:collection($name as xs:QName,
940 $start as xs:anyURI,
941 $skip as xs:integer) as item()* external;
942(:~
943 : The collection-name function returns the name of the collection the given
944 : item (node or json item) belongs to.
945 :
946 : @param $item The item for which to get the name of the collection
947 : @return The result of this function is a QName which identifies the collection
948 : to which the given item belongs to.
949 :
950 : @error zerr:ZDDY0011 if the given item does not belong to a collection.
951 :
952 :)
953declare function
954cdml:collection-name($item as item()) as xs:QName external;
955
956
957(:~
958 : The index-of function returns the position of the given item (node or
959 : json item) within its containing collection.
960 :
961 : @param $node The item to retrieve the index for.
962 :
963 : @return Returns the position as xs:integer of the given item in the collection.
964 :
965 : @error zerr:ZDDY0011 if the item is not stored in any collection.
966 : @error zerr:ZDDY0012 if the order property of the collection is unordered.
967 :
968 :)
969declare function
970cdml:index-of($item as item()) as xs:integer external;
971478
=== modified file 'modules/store/static/indexes/ddl.xq'
--- modules/com/zorba-xquery/www/modules/store/static/indexes/ddl.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/indexes/ddl.xq 2013-10-17 02:02:41 +0000
@@ -17,103 +17,99 @@
17:)17:)
1818
19(:~19(:~
20 : This modules defines a set of functions for managing indexes which are20 : This modules defines a set of functions for managing indexes that are
21 : declared in the prolog of a module.21 : declared in the prolog of a module.
22 :22 : <p/>
23 : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data23 : This module is part of
24 : Definition Facility</a>. All the indexes managed by this module24 : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
25 : have to be pre-declared in the prolog of a module. Please refer to the25 : All the indexes managed by this module have to be pre-declared in the prolog
26 : of a module.
27 : Please refer to the
26 : <a href="../zorba/data_lifecycle.html">general documentation</a>28 : <a href="../zorba/data_lifecycle.html">general documentation</a>
27 : for more information and examples.</p>29 : for more information and examples.
28 :30 :
29 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>31 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
30 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>32 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
31 : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml33 : @see http://zorba.io/modules/store/static/indexes/dml
32 : @see http://www.zorba-xquery.com/modules/store/static/collections/dml34 : @see http://zorba.io/modules/store/static/collections/dml
33 : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl35 : @see http://zorba.io/modules/store/static/collections/ddl
34 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl36 : @see http://zorba.io/modules/store/static/integrity-constraints/ddl
35 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml37 : @see http://zorba.io/modules/store/static/integrity-constraints/dml
36 : @see http://zorba.io/errors38 : @see http://zorba.io/errors
37 :39 :
38 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis40 : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
39 :
40 : @project Zorba/Data Store/Indexes/Static Data Definition41 : @project Zorba/Data Store/Indexes/Static Data Definition
41 :
42 :)42 :)
43module namespace iddl = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl";43module namespace iddl = "http://zorba.io/modules/store/static/indexes/ddl";
4444
45declare namespace zerr = "http://zorba.io/errors";45declare namespace zerr = "http://zorba.io/errors";
46declare namespace ver = "http://zorba.io/options/versioning";46declare namespace ver = "http://zorba.io/options/versioning";
47declare option ver:module-version "2.0";47declare option ver:module-version "2.0";
4848
49(:~49(:===========================================================================:)
50 : The function returns true if an index with the given QName is available.
51 : (i.e. has been created).
52 :
53 : @param $name The QName of the index that is being checked.
54 :
55 : @return true if the index is available and false otherwise.
56 :)
57declare function iddl:is-available-index($name as xs:QName) as xs:boolean external;
5850
59(:~51(:~
60 : The function returns a sequence of QNames representing the indexes that are52 : Gets the available indexes.
61 : available. The sequence will be empty if there are no indexes.
62 :53 :
63 : @return A sequence of QNames, one for each available index, or an empty54 : @return A sequence of QNames, one for each available index, or an empty
64 : sequence if none are.55 : sequence if none are.
65 :)56 :)
66declare function iddl:available-indexes() as xs:QName* external;57declare function iddl:available-indexes()
6758 as xs:QName* external;
68(:~59
69 : The create function is an updating function which creates the60(:~
70 : index with the given expanded QName and populates the index with its61 : Creates an index.
71 : values.62 :
72 :63 : @param $name The name of the index to create.
73 : @param $name The QName of the index to create.64 : @return An empty XDM instance and a pending update list that, once applied,
74 :65 : creates the index with the given name.
75 : @return The result of the function is an empty XDM instance and a pending66 :
76 : update list which, once applied, creates the index with the given67 : @error zerr:ZDDY0021 if <code>$name</code> is not equal to the name of any
77 : name.68 : resource in the statically known indexes.
78 :69 : @error zerr:ZDDY0022 if an index with <code>$name</code> already exists.
79 : @error zerr:ZDDY0021 if the expanded QName of $name is not equal 70 :)
80 : to the name of any resource in the statically known indexes.71declare updating function iddl:create( $name as xs:QName )
81 : @error zerr:ZDDY0022 if the index with the given name is already created.72 external;
82 :)73
83declare updating function iddl:create(74(:~
84 $name as xs:QName) external;75 : Gets a sequence of QNames representing the indexes that have been declared
8576 : in the prolog of the static context.
86(:~77 :
87 : The delete function is an updating function that deletes78 : @return A sequence of QNames, one for each created collection, or an emtpy
88 : the index with the given expanded QName.79 : sequence.
89 :80 :)
90 : @param $name The QName of the index to delete.81declare function iddl:declared-indexes()
91 :82 as xs:QName* external;
92 : @return The result of the function is an empty XDM instance and a pending83
93 : update list which, once applied, deletes the index with the given name.84(:~
94 :85 : Deletes an index.
95 : @error zerr:ZDDY0009 If available indexes does not provide a mapping for86 :
96 : the expanded QName $name.87 : @param $name The name of the index to delete.
97 :88 : @return An empty XDM instance and a pending update list that, once applied,
98 :)89 : deletes the index with the given name.
99declare updating function iddl:delete(90 : @error zerr:ZDDY0009 if the index does not exist.
100 $name as xs:QName) external;91 :)
10192declare updating function iddl:delete( $name as xs:QName )
102(:~93 external;
103 : The function returns true if a index with the given94
104 : QName is declared in the prolog of the static context.95(:~
105 :96 : Gets whether an index exists.
106 : @param $name The QName of the index that is being checked.97 :
107 :98 : @param $name The name of the index that is being checked.
108 : @return true if the index is declared or false otherwise.99 : @return true if the index is available; false otherwise.
109 :)100 :)
110declare function iddl:is-declared-index(101declare function iddl:is-available-index( $name as xs:QName )
111 $name as xs:QName) as xs:boolean external;102 as xs:boolean external;
112103
113(:~104(:~
114 : The function returns a sequence of QNames representing the indexes that have105 : Gets whether an index has been declared in the prolog of the static context.
115 : been declared in the prolog of the static context.106 :
116 :107 : @param $name The name of the index that is being checked.
117 : @return A sequence of QNames, one for each created collection, or an emtpy sequence.108 : @return true if the index was declared; false otherwise.
118 :)109 :)
119declare function iddl:declared-indexes() as xs:QName* external;110declare function iddl:is-declared-index( $name as xs:QName )
111 as xs:boolean external;
112
113(:===========================================================================:)
114
115(: vim:set et sw=2 ts=2: :)
120116
=== modified file 'modules/store/static/indexes/dml.xq'
--- modules/com/zorba-xquery/www/modules/store/static/indexes/dml.xq 2013-09-26 23:15:11 +0000
+++ modules/store/static/indexes/dml.xq 2013-10-17 02:02:41 +0000
@@ -1,7 +1,7 @@
1xquery version "3.0";1xquery version "3.0";
22
3(:3(:
4 : Copyright 2006-2009 The FLWOR Foundation.4 : Copyright 2006-2013 The FLWOR Foundation.
5 :5 :
6 : Licensed under the Apache License, Version 2.0 (the "License");6 : Licensed under the Apache License, Version 2.0 (the "License");
7 : you may not use this file except in compliance with the License.7 : you may not use this file except in compliance with the License.
@@ -19,353 +19,344 @@
19(:~19(:~
20 : This module defines a set of functions to probe and refresh indexes which are20 : This module defines a set of functions to probe and refresh indexes which are
21 : declared in the prolog of a module.21 : declared in the prolog of a module.
22 :22 : <p/>
23 : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data23 : This module is part of
24 : Definition Facility</a>. All the indexes managed by this module24 : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>.
25 : have to be pre-declared in the prolog of a library module. Please refer to the25 : All the indexes managed by this module have to be pre-declared in the prolog
26 : of a library module.
27 : Please refer to the
26 : <a href="../zorba/data_lifecycle.html">general documentation</a>28 : <a href="../zorba/data_lifecycle.html">general documentation</a>
27 : for more information and examples.</p>29 : for more information and examples.
28 :30 :
29 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>31 : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a>
30 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>32 : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a>
31 : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl33 : @see http://zorba.io/modules/store/static/indexes/ddl
32 : @see http://www.zorba-xquery.com/modules/store/static/collections/dml34 : @see http://zorba.io/modules/store/static/collections/dml
33 : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl35 : @see http://zorba.io/modules/store/static/collections/ddl
34 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl36 : @see http://zorba.io/modules/store/static/integrity-constraints/ddl
35 : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml37 : @see http://zorba.io/modules/store/static/integrity-constraints/dml
36 : @see http://zorba.io/errors38 : @see http://zorba.io/errors
37 :39 :
38 : @author Zorba Team40 : @author Zorba Team
39 :
40 : @project Zorba/Data Store/Indexes/Static Data Manipulation41 : @project Zorba/Data Store/Indexes/Static Data Manipulation
41 :
42 :)42 :)
43module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";43module namespace idml = "http://zorba.io/modules/store/static/indexes/dml";
4444
45declare namespace an = "http://zorba.io/annotations";
45declare namespace zerr = "http://zorba.io/errors";46declare namespace zerr = "http://zorba.io/errors";
46declare namespace an = "http://zorba.io/annotations";
4747
48declare namespace ver = "http://zorba.io/options/versioning";48declare namespace ver = "http://zorba.io/options/versioning";
49
50declare option ver:module-version "2.0";49declare option ver:module-version "2.0";
5150
51(:===========================================================================:)
52
52(:~53(:~
53 : <p>The probe-index-point-value function retrieves from an index the domain
54 : nodes associated by value equality with a given <strong>search tuple</strong>.
55 : The search tuple consists of a number of <strong>search keys</strong>, where
56 : each search key is either an atomic item or the empty sequence. The number
57 : of search keys given must be equal to the number of keys declared for the
58 : index. Since the number of keys differs from one index to another, this
59 : function is variadic.</p>
60 :
61 : <p>The result of the function is either an error or the set of domain nodes for
62 : which the following xquery expression returns true:</p>
63 :
64 : <pre>
65 : $key1 eq $node/keyExpr1 and ... and $keyM eq $node/keyExprM
66 : </pre>
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches