Merge lp:~zorba-coders/zorba/bug-1189862 into lp:zorba
- bug-1189862
- Merge into trunk
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 | ||||||||
Related bugs: |
|
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_
Description of the change
Renamed this module, plus:
* Majorly cleaned-up.
* @deprecated functions removed.
* Renamed integrity_
https:/
https:/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "BuildZorbaUbuntu" failed.
Check compiler output at http://
- 11674. By Paul J. Lucas
-
Intermediate check-in.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "BuildZorbaUbuntu" failed.
Check compiler output at http://
- 11675. By Paul J. Lucas
-
Intermediate check-in.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "BuildZorbaUbuntu" failed.
Check compiler output at http://
- 11676. By Paul J. Lucas
-
Intermediate check-in.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
- 11677. By Paul J. Lucas
-
Intermediate check-in.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "TestZorbaUbuntu" failed.
2469 tests failed (8573 total tests run).
Check test results at http://
- 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.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "TestZorbaUbuntu" failed.
39 tests failed (8573 total tests run).
Check test results at http://
- 11682. By Paul J. Lucas
-
Intermediate check-in.
Paul J. Lucas (paul-lucas) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
https:/
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "TestZorbaUbuntu" failed.
2 tests failed (8573 total tests run).
Check test results at http://
- 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.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
https:/
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "ZorbaVQ" failed.
Check console output at http://
- 11688. By Paul J. Lucas
-
Merge from trunk.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
https:/
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Voting criteria failed for the following merge proposals:
https:/
Votes: {'Approve': 1}
https:/
Votes: {'Approve': 1, 'Pending': 1}
https:/
Votes: {'Approve': 1, 'Pending': 1}
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "CommitZorba" failed.
Check console output at http://
Matthias Brantner (matthias-brantner) : | # |
Matthias Brantner (matthias-brantner) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
https:/
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue succeeded - proposal merged!
Preview Diff
1 | === modified file 'doc/cxx/examples/context.cpp' |
2 | --- doc/cxx/examples/context.cpp 2013-09-17 21:12:49 +0000 |
3 | +++ doc/cxx/examples/context.cpp 2013-10-17 02:02:41 +0000 |
4 | @@ -375,7 +375,7 @@ |
5 | std::unique_ptr<std::stringstream> lQuery(new std::stringstream()); |
6 | (*lQuery) |
7 | << "module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl |
8 | - << "import module namespace dml = 'http://www.zorba-xquery.com/modules/store/static/collections/dml';" << std::endl |
9 | + << "import module namespace dml = 'http://zorba.io/modules/store/static/collections/dml';" << std::endl |
10 | << "declare namespace an = 'http://zorba.io/annotations';" << std::endl |
11 | << "declare variable $mymodule:var := 'myvar';" << std::endl |
12 | << "declare collection mymodule:collection;" << std::endl |
13 | @@ -409,7 +409,7 @@ |
14 | Zorba_CompilerHints_t hints; |
15 | std::stringstream lProlog; |
16 | lProlog << "import module namespace mymodule = 'http://zorba.io/mymodule';" << std::endl |
17 | - << "import module namespace ddl = 'http://www.zorba-xquery.com/modules/store/static/collections/ddl';" |
18 | + << "import module namespace ddl = 'http://zorba.io/modules/store/static/collections/ddl';" |
19 | << std::endl |
20 | << "declare function local:collections() { " << std::endl |
21 | << " ddl:declared-collections()" << std::endl |
22 | |
23 | === modified file 'doc/zorba/data_lifecycle.dox' |
24 | --- doc/zorba/data_lifecycle.dox 2013-09-17 03:48:02 +0000 |
25 | +++ doc/zorba/data_lifecycle.dox 2013-10-17 02:02:41 +0000 |
26 | @@ -39,32 +39,32 @@ |
27 | <tr> |
28 | <td>Collections</td> |
29 | <td>DDL</td> |
30 | - <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> |
31 | + <td><a href="../modules/zorba.io_modules_store_static_collections_ddl.html">http://zorba.io/modules/store/static/collections/ddl</a></td> |
32 | </tr> |
33 | <tr> |
34 | <td>Collections</td> |
35 | <td>DML</td> |
36 | - <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> |
37 | - </tr> |
38 | - <tr> |
39 | - <td>Indexes</td> |
40 | - <td>DDL</td> |
41 | - <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> |
42 | - </tr> |
43 | - <tr> |
44 | - <td>Indexes</td> |
45 | - <td>DML</td> |
46 | - <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> |
47 | - </tr> |
48 | - <tr> |
49 | - <td>Integrity Constraints</td> |
50 | - <td>DDL</td> |
51 | - <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> |
52 | - </tr> |
53 | - <tr> |
54 | - <td>Integrity Constraints</td> |
55 | - <td>DML</td> |
56 | - <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> |
57 | + <td><a href="../modules/zorba.io_modules_store_static_collections_dml.html">http://zorba.io/modules/store/static/collections/dml</a></td> |
58 | + </tr> |
59 | + <tr> |
60 | + <td>Indexes</td> |
61 | + <td>DDL</td> |
62 | + <td><a href="../modules/zorba.io_modules_store_static_indexes_ddl.html">http://zorba.io/modules/store/static/indexes/ddl</a></td> |
63 | + </tr> |
64 | + <tr> |
65 | + <td>Indexes</td> |
66 | + <td>DML</td> |
67 | + <td><a href="../modules/zorba.io_modules_store_static_indexes_dml.html">http://zorba.io/modules/store/static/indexes/dml</a></td> |
68 | + </tr> |
69 | + <tr> |
70 | + <td>Integrity Constraints</td> |
71 | + <td>DDL</td> |
72 | + <td><a href="../modules/zorba.io_modules_store_static_integrity_constraints_ddl.html">http://zorba.io/modules/store/static/integrity_constraints/ddl</a></td> |
73 | + </tr> |
74 | + <tr> |
75 | + <td>Integrity Constraints</td> |
76 | + <td>DML</td> |
77 | + <td><a href="../modules/zorba.io_modules_store_static_integrity_constraints_dml.html">http://zorba.io/modules/store/static/integrity_constraints/dml</a></td> |
78 | </tr> |
79 | </table> |
80 | |
81 | @@ -83,27 +83,27 @@ |
82 | <tr> |
83 | <td>Collections</td> |
84 | <td>DDL</td> |
85 | - <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> |
88 | <tr> |
89 | <td>Collections</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> |
92 | + <td><a href="../modules/zorba.io_modules_store_dynamic_collections_dml.html">http://zorba.io/modules/store/dynamic/collections/dml</a></td> |
93 | </tr> |
94 | <tr> |
95 | <td>W3C Collections</td> |
96 | <td>DDL</td> |
97 | - <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> |
98 | + <td><a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_ddl.html">http://zorba.io/modules/store/dynamic/collections/w3c/ddl</a></td> |
99 | </tr> |
100 | <tr> |
101 | <td>W3C Collections</td> |
102 | <td>DML</td> |
103 | - <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> |
104 | + <td><a href="../modules/zorba.io_modules_store_dynamic_collections_w3c_dml.html">http://zorba.io/modules/store/dynamic/collections/w3c/dml</a></td> |
105 | </tr> |
106 | <tr> |
107 | <td>Documents</td> |
108 | <td>DDL / DML</td> |
109 | - <td><a href="../modules/www.zorba-xquery.com_modules_store_dynamic_documents.html">http://www.zorba-xquery.com/modules/store/dynamic/documents</a></td> |
110 | + <td><a href="../modules/zorba.io_modules_store_dynamic_documents.html">http://zorba.io/modules/store/documents</a></td> |
111 | </tr> |
112 | <tr> |
113 | <td>Unordered Maps</td> |
114 | |
115 | === modified file 'doc/zorba/link_crawler2.dox' |
116 | --- doc/zorba/link_crawler2.dox 2013-08-09 09:04:36 +0000 |
117 | +++ doc/zorba/link_crawler2.dox 2013-10-17 02:02:41 +0000 |
118 | @@ -18,7 +18,7 @@ |
119 | :) |
120 | |
121 | import module namespace http = "http://www.zorba-xquery.com/modules/http-client"; |
122 | -import module namespace map = "http://www.zorba-xquery.com/modules/store/data-structures/unordered-map"; |
123 | +import module namespace map = "http://zorba.io/modules/store/data-structures/unordered-map"; |
124 | import module namespace html = "http://www.zorba-xquery.com/modules/converters/html"; |
125 | import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml"; |
126 | import module namespace file = "http://expath.org/ns/file"; |
127 | |
128 | === modified file 'doc/zorba/modules_top.dox' |
129 | --- doc/zorba/modules_top.dox 2013-09-17 03:48:02 +0000 |
130 | +++ doc/zorba/modules_top.dox 2013-10-17 02:02:41 +0000 |
131 | @@ -13,7 +13,7 @@ |
132 | |
133 | - <a href="../modules/www.w3.org_2005_xpath-functions.html">xpath</a> |
134 | - <a href="../modules/zorba.io_modules_node.html">XDM</a> |
135 | - - <a href="../modules/www.zorba-xquery.com_modules_store_dynamic_collections_ddl.html">store</a> |
136 | + - <a href="../modules/zorba.io_modules_store_dynamic_collections_ddl.html">store</a> |
137 | - <a href="../modules/www.zorba-xquery.com_modules_introspection_sctx.html">introspection</a> |
138 | - <a href="../modules/www.zorba-xquery.com_modules_reflection.html">reflection</a> |
139 | - <a href="../modules/expath.org_ns_file.html">file</a> |
140 | |
141 | === modified file 'doc/zorba/options.dox' |
142 | --- doc/zorba/options.dox 2013-08-23 11:15:04 +0000 |
143 | +++ doc/zorba/options.dox 2013-10-17 02:02:41 +0000 |
144 | @@ -348,7 +348,7 @@ |
145 | \paragraph variadic_annotation Variadic Functions |
146 | A 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. |
147 | |
148 | -For 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: |
149 | +For 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: |
150 | |
151 | \code |
152 | declare %an:variadic %an:sequential function map:create( |
153 | @@ -517,7 +517,7 @@ |
154 | <ul> |
155 | <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. |
156 | \code |
157 | -import module namespace db = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; |
158 | +import module namespace db = "http://zorba.io/modules/store/dynamic/collections/dml"; |
159 | |
160 | declare namespace ext = "http://zorba.io/extensions"; |
161 | |
162 | |
163 | === modified file 'doc/zorba/web_crawler.dox' |
164 | --- doc/zorba/web_crawler.dox 2013-08-09 09:04:36 +0000 |
165 | +++ doc/zorba/web_crawler.dox 2013-10-17 02:02:41 +0000 |
166 | @@ -14,7 +14,7 @@ |
167 | |
168 | \code |
169 | import module namespace http = "http://www.zorba-xquery.com/modules/http-client"; |
170 | -import module namespace map = "http://www.zorba-xquery.com/modules/store/data-structures/unordered-map"; |
171 | +import module namespace map = "http://zorba.io/modules/store/data-structures/unordered-map"; |
172 | import module namespace html = "http://www.zorba-xquery.com/modules/converters/html"; |
173 | import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml"; |
174 | import module namespace file = "http://expath.org/ns/file"; |
175 | |
176 | === modified file 'doc/zorba/xqddf.dox' |
177 | --- doc/zorba/xqddf.dox 2013-09-17 16:14:45 +0000 |
178 | +++ doc/zorba/xqddf.dox 2013-10-17 02:02:41 +0000 |
179 | @@ -14,12 +14,12 @@ |
180 | |
181 | |
182 | <ul> |
183 | - <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> |
184 | - <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> |
185 | - <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> |
186 | - <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> |
187 | - <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> |
188 | - <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> |
189 | + <li><a href="../modules/zorba.io_modules_store_static_collections_dml.html">http://zorba.io/modules/store/static/collections/dml</a> (prefix: cdml)</li> |
190 | + <li><a href="../modules/zorba.io_modules_store_static_collections_ddl.html">http://zorba.io/modules/store/static/collections/ddl</a> (prefix: cddl)</li> |
191 | + <li><a href="../modules/zorba.io_modules_store_static_indexes_dml.html">http://zorba.io/modules/store/static/indexes/dml</a> (prefix: idml)</li> |
192 | + <li><a href="../modules/zorba.io_modules_store_static_indexes_ddl.html">http://zorba.io/modules/store/static/indexes/ddl</a> (prefix: iddl)</li> |
193 | + <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> |
194 | + <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> |
195 | </ul> |
196 | |
197 | As usual, these modules must be imported by any other module that wants to invoke any of the functions. |
198 | @@ -55,7 +55,7 @@ |
199 | For brevity, in the remaining of this document we will use the term "collection" to |
200 | mean <a href="#collection">collection</a>. For backward compatibility with |
201 | the W3C XQuery specification, Zorba retains some basic support for W3C |
202 | -collections (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>). |
203 | +collections (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>). |
204 | However, users are encouraged to use <a href="#collection">collections</a> instead. |
205 | |
206 | Zorba supports five kinds of operations on collections: <a |
207 | @@ -161,7 +161,7 @@ |
208 | \code |
209 | (: "admin-script-1" :) |
210 | |
211 | - import module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; |
212 | + import module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl"; |
213 | |
214 | import module namespace news-data = "http://www.news.org/data"; |
215 | |
216 | @@ -222,7 +222,7 @@ |
217 | \code |
218 | (: "user-script-1":) |
219 | |
220 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
221 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
222 | |
223 | import module namespace http = "http://www.zorba-xquery.com/modules/http-client"; |
224 | |
225 | @@ -257,7 +257,7 @@ |
226 | \code |
227 | (: admin-script2 :) |
228 | |
229 | - import module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; |
230 | + import module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl"; |
231 | |
232 | import module namespace news-data = "http://www.news.org/data"; |
233 | |
234 | @@ -1010,7 +1010,7 @@ |
235 | |
236 | module namespace news-data = "http://www.news.org/data"; |
237 | |
238 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
239 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
240 | |
241 | import schema namespace news-schemas = "http://www.news.org/schemas"; |
242 | |
243 | @@ -1078,7 +1078,7 @@ |
244 | \code |
245 | (: The "admin-script-3" script :) |
246 | |
247 | - import module namespace iddf = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl"; |
248 | + import module namespace iddf = "http://zorba.io/modules/store/static/indexes/ddl"; |
249 | |
250 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
251 | |
252 | @@ -1156,7 +1156,7 @@ |
253 | \code |
254 | (: The "probe-1" query :) |
255 | |
256 | - import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml"; |
257 | + import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml"; |
258 | |
259 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
260 | |
261 | @@ -1167,7 +1167,7 @@ |
262 | \code |
263 | (: The "probe-2" query :) |
264 | |
265 | - import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml"; |
266 | + import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml"; |
267 | |
268 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
269 | |
270 | @@ -1178,7 +1178,7 @@ |
271 | \code |
272 | (: The "probe-3" query :) |
273 | |
274 | - import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml"; |
275 | + import module namespace idml = "http://zorba.io/modules/store/static/indexes/dml"; |
276 | |
277 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
278 | |
279 | @@ -1189,7 +1189,7 @@ |
280 | \code |
281 | (: The "no-probe-1" query :) |
282 | |
283 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
284 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
285 | |
286 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
287 | |
288 | @@ -1200,7 +1200,7 @@ |
289 | \code |
290 | (: The "no-probe-2" query :) |
291 | |
292 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
293 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
294 | |
295 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
296 | |
297 | @@ -1215,7 +1215,7 @@ |
298 | \code |
299 | (: The "probe-3" query :) |
300 | |
301 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
302 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
303 | |
304 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
305 | |
306 | @@ -1265,7 +1265,7 @@ |
307 | \code |
308 | (: The "index-maintenance" query :) |
309 | |
310 | - import module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
311 | + import module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
312 | |
313 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
314 | |
315 | @@ -1286,7 +1286,7 @@ |
316 | \code |
317 | (: The "admin-script-4" query :) |
318 | |
319 | - import module namespace iddl = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl"; |
320 | + import module namespace iddl = "http://zorba.io/modules/store/static/indexes/ddl"; |
321 | |
322 | import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib"; |
323 | |
324 | @@ -1978,7 +1978,7 @@ |
325 | Each node in the sequence represents one key contained in the index and has the following structure: |
326 | |
327 | \code |
328 | - <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml"> |
329 | + <key xmlns="http://zorba.io/modules/store/static/indexes/dml"> |
330 | <attribute value="key_1"/> |
331 | ... |
332 | <attribute value="key_n"/> |
333 | @@ -2461,4 +2461,4 @@ |
334 | \n <a name="ERRZDDY0034" id="ERRZDDY0034"></a>zerr:ZDDY0034, Index range-value |
335 | probe has search keys with incompatible types |
336 | </strong> |
337 | -*/ |
338 | \ No newline at end of file |
339 | +*/ |
340 | |
341 | === modified file 'doc/zorba/xqdoc/images/modules.svg' |
342 | --- doc/zorba/xqdoc/images/modules.svg 2013-10-16 21:47:22 +0000 |
343 | +++ doc/zorba/xqdoc/images/modules.svg 2013-10-17 02:02:41 +0000 |
344 | @@ -1364,63 +1364,63 @@ |
345 | </g> |
346 | <!-- 14 --> |
347 | <g id="node86" class="node"><title>14</title> |
348 | -<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"> |
349 | +<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"> |
350 | <ellipse fill="white" stroke="white" cx="4258" cy="-385" rx="27" ry="18"/> |
351 | <text text-anchor="middle" x="4258" y="-381.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text> |
352 | </a> |
353 | </g> |
354 | <!-- 15 --> |
355 | <g id="node88" class="node"><title>15</title> |
356 | -<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"> |
357 | +<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"> |
358 | <ellipse fill="white" stroke="white" cx="4258" cy="-538" rx="27" ry="18"/> |
359 | <text text-anchor="middle" x="4258" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text> |
360 | </a> |
361 | </g> |
362 | <!-- 18 --> |
363 | <g id="node90" class="node"><title>18</title> |
364 | -<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"> |
365 | +<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"> |
366 | <ellipse fill="white" stroke="white" cx="4613" cy="-660" rx="27" ry="18"/> |
367 | <text text-anchor="middle" x="4613" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text> |
368 | </a> |
369 | </g> |
370 | <!-- 19 --> |
371 | <g id="node92" class="node"><title>19</title> |
372 | -<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"> |
373 | +<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"> |
374 | <ellipse fill="white" stroke="white" cx="4460" cy="-660" rx="27" ry="18"/> |
375 | <text text-anchor="middle" x="4460" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text> |
376 | </a> |
377 | </g> |
378 | <!-- 16 --> |
379 | <g id="node94" class="node"><title>16</title> |
380 | -<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"> |
381 | +<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"> |
382 | <ellipse fill="white" stroke="white" cx="4439" cy="-538" rx="27" ry="18"/> |
383 | <text text-anchor="middle" x="4439" y="-534.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text> |
384 | </a> |
385 | </g> |
386 | <!-- 16->14 --> |
387 | <g id="edge176" class="edge"><title>16->14</title> |
388 | -<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"> |
389 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/ddl, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
390 | <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"/> |
391 | <polygon fill="black" stroke="black" points="4284.16,-403.079 4274.22,-399.403 4279.7,-408.473 4284.16,-403.079"/> |
392 | </a> |
393 | </g> |
394 | <!-- 17 --> |
395 | <g id="node96" class="node"><title>17</title> |
396 | -<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"> |
397 | +<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"> |
398 | <ellipse fill="white" stroke="white" cx="4299" cy="-660" rx="27" ry="18"/> |
399 | <text text-anchor="middle" x="4299" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text> |
400 | </a> |
401 | </g> |
402 | <!-- 17->15 --> |
403 | <g id="edge180" class="edge"><title>17->15</title> |
404 | -<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"> |
405 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
406 | <path fill="none" stroke="black" d="M4293.3,-642.315C4286.51,-622.456 4275.1,-589.042 4267.09,-565.604"/> |
407 | <polygon fill="black" stroke="black" points="4270.33,-564.262 4263.78,-555.931 4263.71,-566.525 4270.33,-564.262"/> |
408 | </a> |
409 | </g> |
410 | <!-- 17->16 --> |
411 | <g id="edge178" class="edge"><title>17->16</title> |
412 | -<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"> |
413 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/w3c/ddl"> |
414 | <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"/> |
415 | <polygon fill="black" stroke="black" points="4434.79,-566.654 4434.6,-556.061 4428.14,-564.459 4434.79,-566.654"/> |
416 | </a> |
417 | @@ -1434,14 +1434,14 @@ |
418 | </g> |
419 | <!-- 70->14 --> |
420 | <g id="edge246" class="edge"><title>70->14</title> |
421 | -<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"> |
422 | +<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
423 | <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"/> |
424 | <polygon fill="black" stroke="black" points="4243.73,-411.64 4246.74,-401.483 4238.05,-407.544 4243.73,-411.64"/> |
425 | </a> |
426 | </g> |
427 | <!-- 70->15 --> |
428 | <g id="edge248" class="edge"><title>70->15</title> |
429 | -<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"> |
430 | +<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
431 | <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"/> |
432 | <polygon fill="black" stroke="black" points="4231.91,-558.832 4238.63,-550.642 4228.27,-552.853 4231.91,-558.832"/> |
433 | </a> |
434 | @@ -1455,14 +1455,14 @@ |
435 | </g> |
436 | <!-- 72->14 --> |
437 | <g id="edge250" class="edge"><title>72->14</title> |
438 | -<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"> |
439 | +<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
440 | <path fill="none" stroke="black" d="M4167.86,-642.334C4184,-596.452 4229.16,-468.005 4248.75,-412.312"/> |
441 | <polygon fill="black" stroke="black" points="4252.08,-413.39 4252.09,-402.795 4245.47,-411.068 4252.08,-413.39"/> |
442 | </a> |
443 | </g> |
444 | <!-- 72->15 --> |
445 | <g id="edge252" class="edge"><title>72->15</title> |
446 | -<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"> |
447 | +<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
448 | <path fill="none" stroke="black" d="M4174.55,-643.312C4191.1,-622.626 4220.35,-586.063 4239.45,-562.183"/> |
449 | <polygon fill="black" stroke="black" points="4242.24,-564.307 4245.75,-554.312 4236.77,-559.935 4242.24,-564.307"/> |
450 | </a> |
451 | @@ -1476,35 +1476,35 @@ |
452 | </g> |
453 | <!-- 13 --> |
454 | <g id="node105" class="node"><title>13</title> |
455 | -<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"> |
456 | +<a xlink:href="../zorba.io_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/documents"> |
457 | <ellipse fill="white" stroke="white" cx="3804" cy="-660" rx="49.0941" ry="18"/> |
458 | <text text-anchor="middle" x="3804" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">documents</text> |
459 | </a> |
460 | </g> |
461 | <!-- 20 --> |
462 | <g id="node108" class="node"><title>20</title> |
463 | -<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"> |
464 | +<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"> |
465 | <ellipse fill="white" stroke="white" cx="3663" cy="-660" rx="27" ry="18"/> |
466 | <text text-anchor="middle" x="3663" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text> |
467 | </a> |
468 | </g> |
469 | <!-- 21 --> |
470 | <g id="node110" class="node"><title>21</title> |
471 | -<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"> |
472 | +<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"> |
473 | <ellipse fill="white" stroke="white" cx="3510" cy="-660" rx="27" ry="18"/> |
474 | <text text-anchor="middle" x="3510" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text> |
475 | </a> |
476 | </g> |
477 | <!-- 22 --> |
478 | <g id="node113" class="node"><title>22</title> |
479 | -<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"> |
480 | +<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"> |
481 | <ellipse fill="white" stroke="white" cx="3341" cy="-660" rx="27" ry="18"/> |
482 | <text text-anchor="middle" x="3341" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">ddl</text> |
483 | </a> |
484 | </g> |
485 | <!-- 23 --> |
486 | <g id="node115" class="node"><title>23</title> |
487 | -<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"> |
488 | +<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"> |
489 | <ellipse fill="white" stroke="white" cx="3188" cy="-660" rx="27" ry="18"/> |
490 | <text text-anchor="middle" x="3188" y="-656.3" font-family="Times,serif" font-size="14.00" fill="red">dml</text> |
491 | </a> |
492 | @@ -2166,4 +2166,4 @@ |
493 | </a> |
494 | </g> |
495 | </g> |
496 | -</svg> |
497 | \ No newline at end of file |
498 | +</svg> |
499 | |
500 | === modified file 'doc/zorba/xqdoc/images/modules_new.svg' |
501 | --- doc/zorba/xqdoc/images/modules_new.svg 2013-10-16 22:24:04 +0000 |
502 | +++ doc/zorba/xqdoc/images/modules_new.svg 2013-10-17 02:02:41 +0000 |
503 | @@ -1370,63 +1370,63 @@ |
504 | </g> |
505 | <!-- 6 --> |
506 | <g id="node86" class="node"><title>6</title> |
507 | -<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"> |
508 | +<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"> |
509 | <ellipse fill="white" stroke="white" cx="6457" cy="-407" rx="27" ry="18.3848"/> |
510 | <text text-anchor="middle" x="6457" y="-403.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text> |
511 | </a> |
512 | </g> |
513 | <!-- 7 --> |
514 | <g id="node88" class="node"><title>7</title> |
515 | -<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"> |
516 | +<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"> |
517 | <ellipse fill="white" stroke="white" cx="6459" cy="-571" rx="28.9914" ry="18.3848"/> |
518 | <text text-anchor="middle" x="6459" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text> |
519 | </a> |
520 | </g> |
521 | <!-- 10 --> |
522 | <g id="node90" class="node"><title>10</title> |
523 | -<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"> |
524 | +<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"> |
525 | <ellipse fill="white" stroke="white" cx="6891" cy="-701" rx="27" ry="18.3848"/> |
526 | <text text-anchor="middle" x="6891" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text> |
527 | </a> |
528 | </g> |
529 | <!-- 11 --> |
530 | <g id="node92" class="node"><title>11</title> |
531 | -<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"> |
532 | +<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"> |
533 | <ellipse fill="white" stroke="white" cx="6706" cy="-701" rx="28.9914" ry="18.3848"/> |
534 | <text text-anchor="middle" x="6706" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text> |
535 | </a> |
536 | </g> |
537 | <!-- 8 --> |
538 | <g id="node94" class="node"><title>8</title> |
539 | -<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"> |
540 | +<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"> |
541 | <ellipse fill="white" stroke="white" cx="6674" cy="-571" rx="27" ry="18.3848"/> |
542 | <text text-anchor="middle" x="6674" y="-567.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text> |
543 | </a> |
544 | </g> |
545 | <!-- 8->6 --> |
546 | <g id="edge173" class="edge"><title>8->6</title> |
547 | -<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"> |
548 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/ddl, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
549 | <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"/> |
550 | <polygon fill="black" stroke="black" points="6486.69,-422.858 6476.45,-420.11 6482.74,-428.639 6486.69,-422.858"/> |
551 | </a> |
552 | </g> |
553 | <!-- 9 --> |
554 | <g id="node96" class="node"><title>9</title> |
555 | -<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"> |
556 | +<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"> |
557 | <ellipse fill="white" stroke="white" cx="6513" cy="-701" rx="28.9914" ry="18.3848"/> |
558 | <text text-anchor="middle" x="6513" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text> |
559 | </a> |
560 | </g> |
561 | <!-- 9->7 --> |
562 | <g id="edge177" class="edge"><title>9->7</title> |
563 | -<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"> |
564 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
565 | <path fill="none" stroke="black" d="M6505.49,-682.924C6496.38,-660.998 6480.94,-623.818 6470.37,-598.372"/> |
566 | <polygon fill="black" stroke="black" points="6473.51,-596.815 6466.44,-588.922 6467.05,-599.5 6473.51,-596.815"/> |
567 | </a> |
568 | </g> |
569 | <!-- 9->8 --> |
570 | <g id="edge175" class="edge"><title>9->8</title> |
571 | -<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"> |
572 | +<a xlink:title="FROM: http://zorba.io/modules/store/dynamic/collections/w3c/dml, TO: http://zorba.io/modules/store/dynamic/collections/w3c/ddl"> |
573 | <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"/> |
574 | <polygon fill="black" stroke="black" points="6671.36,-599.908 6670.51,-589.347 6664.59,-598.13 6671.36,-599.908"/> |
575 | </a> |
576 | @@ -1440,14 +1440,14 @@ |
577 | </g> |
578 | <!-- 53->6 --> |
579 | <g id="edge227" class="edge"><title>53->6</title> |
580 | -<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"> |
581 | +<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
582 | <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"/> |
583 | <polygon fill="black" stroke="black" points="6442.27,-433.862 6445.19,-423.678 6436.56,-429.819 6442.27,-433.862"/> |
584 | </a> |
585 | </g> |
586 | <!-- 53->7 --> |
587 | <g id="edge229" class="edge"><title>53->7</title> |
588 | -<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"> |
589 | +<a xlink:title="FROM: http://zorba.io/modules/queue, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
590 | <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"/> |
591 | <polygon fill="black" stroke="black" points="6431.04,-591.837 6437.8,-583.683 6427.43,-585.838 6431.04,-591.837"/> |
592 | </a> |
593 | @@ -1461,14 +1461,14 @@ |
594 | </g> |
595 | <!-- 51->6 --> |
596 | <g id="edge223" class="edge"><title>51->6</title> |
597 | -<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"> |
598 | +<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/ddl"> |
599 | <path fill="none" stroke="black" d="M6359.51,-682.609C6377.2,-632.579 6426.29,-493.805 6447.28,-434.475"/> |
600 | <polygon fill="black" stroke="black" points="6450.59,-435.603 6450.63,-425.009 6443.99,-433.269 6450.59,-435.603"/> |
601 | </a> |
602 | </g> |
603 | <!-- 51->7 --> |
604 | <g id="edge225" class="edge"><title>51->7</title> |
605 | -<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"> |
606 | +<a xlink:title="FROM: http://zorba.io/modules/stack, TO: http://zorba.io/modules/store/dynamic/collections/dml"> |
607 | <path fill="none" stroke="black" d="M6367.08,-683.737C6385.57,-661.052 6418.17,-621.077 6439.16,-595.331"/> |
608 | <polygon fill="black" stroke="black" points="6441.93,-597.474 6445.54,-587.512 6436.5,-593.05 6441.93,-597.474"/> |
609 | </a> |
610 | @@ -1482,35 +1482,35 @@ |
611 | </g> |
612 | <!-- 5 --> |
613 | <g id="node105" class="node"><title>5</title> |
614 | -<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"> |
615 | +<a xlink:href="../zorba.io_modules_store_dynamic_documents.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/store/documents"> |
616 | <ellipse fill="white" stroke="white" cx="5907" cy="-701" rx="65.0538" ry="18.3848"/> |
617 | <text text-anchor="middle" x="5907" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">documents</text> |
618 | </a> |
619 | </g> |
620 | <!-- 12 --> |
621 | <g id="node108" class="node"><title>12</title> |
622 | -<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"> |
623 | +<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"> |
624 | <ellipse fill="white" stroke="white" cx="5734" cy="-701" rx="27" ry="18.3848"/> |
625 | <text text-anchor="middle" x="5734" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text> |
626 | </a> |
627 | </g> |
628 | <!-- 13 --> |
629 | <g id="node110" class="node"><title>13</title> |
630 | -<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"> |
631 | +<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"> |
632 | <ellipse fill="white" stroke="white" cx="5549" cy="-701" rx="28.9914" ry="18.3848"/> |
633 | <text text-anchor="middle" x="5549" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text> |
634 | </a> |
635 | </g> |
636 | <!-- 14 --> |
637 | <g id="node113" class="node"><title>14</title> |
638 | -<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"> |
639 | +<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"> |
640 | <ellipse fill="white" stroke="white" cx="5347" cy="-701" rx="27" ry="18.3848"/> |
641 | <text text-anchor="middle" x="5347" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">ddl</text> |
642 | </a> |
643 | </g> |
644 | <!-- 15 --> |
645 | <g id="node115" class="node"><title>15</title> |
646 | -<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"> |
647 | +<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"> |
648 | <ellipse fill="white" stroke="white" cx="5162" cy="-701" rx="28.9914" ry="18.3848"/> |
649 | <text text-anchor="middle" x="5162" y="-697.4" font-family="Times Roman,serif" font-size="14.00" fill="red">dml</text> |
650 | </a> |
651 | @@ -2210,4 +2210,4 @@ |
652 | </a> |
653 | </g> |
654 | </g> |
655 | -</svg> |
656 | \ No newline at end of file |
657 | +</svg> |
658 | |
659 | === modified file 'doc/zorba/xqdoc/src/zorba_module_dependencies.xqy' |
660 | --- doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-16 21:47:22 +0000 |
661 | +++ doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-17 02:02:41 +0000 |
662 | @@ -29,8 +29,8 @@ |
663 | import module namespace dot = "http://www.zorba-xquery.com/modules/image/graphviz"; |
664 | import module namespace xqd = "http://zorba.io/modules/xqdoc"; |
665 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
666 | -import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
667 | -import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; |
668 | +import module namespace dml = "http://zorba.io/modules/store/static/collections/dml"; |
669 | +import module namespace ddl = "http://zorba.io/modules/store/static/collections/ddl"; |
670 | import module namespace menu = "http://www.zorba-xquery.com/modules/xqdoc/menu"; |
671 | import module namespace xqdoc-html = "http://www.zorba-xquery.com/xqdoc-html" at "xqdoc-html.xqy"; |
672 | |
673 | @@ -116,7 +116,7 @@ |
674 | insert node <module uri="{$moduleURI}" |
675 | isCore="{data($module/@isCore)}"/> as last into $z:ZorbaManifest; |
676 | |
677 | - dml:apply-insert-nodes($z:collection, $xqdoc); |
678 | + dml:apply-insert($z:collection, $xqdoc); |
679 | |
680 | } |
681 | } |
682 | @@ -136,7 +136,7 @@ |
683 | |
684 | declare %an:sequential function z:delete-collections() |
685 | { |
686 | - dml:delete-nodes(dml:collection(xs:QName("z:collection"))); |
687 | + dml:delete(dml:collection(xs:QName("z:collection"))); |
688 | ddl:delete(xs:QName("z:collection")); |
689 | }; |
690 | |
691 | @@ -481,4 +481,4 @@ |
692 | z:edges_modules()," |
693 | }" |
694 | ) |
695 | -}; |
696 | \ No newline at end of file |
697 | +}; |
698 | |
699 | === modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt' |
700 | --- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-16 21:47:22 +0000 |
701 | +++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-17 02:02:41 +0000 |
702 | @@ -14,28 +14,6 @@ |
703 | |
704 | # Subdirectories |
705 | |
706 | -DECLARE_ZORBA_MODULE(FILE store/documents/dynamic.xq VERSION 2.0 |
707 | - URI "http://www.zorba-xquery.com/modules/store/dynamic/documents") |
708 | -DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/ddl.xq VERSION 2.0 |
709 | - URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl") |
710 | -DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/dml.xq VERSION 2.0 |
711 | - URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml") |
712 | -DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/ddl.xq VERSION 2.0 |
713 | - URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl") |
714 | -DECLARE_ZORBA_MODULE(FILE store/dynamic/collections/w3c/dml.xq VERSION 2.0 |
715 | - URI "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml") |
716 | -DECLARE_ZORBA_MODULE(FILE store/static/collections/ddl.xq VERSION 2.0 |
717 | - URI "http://www.zorba-xquery.com/modules/store/static/collections/ddl") |
718 | -DECLARE_ZORBA_MODULE(FILE store/static/collections/dml.xq VERSION 2.0 |
719 | - URI "http://www.zorba-xquery.com/modules/store/static/collections/dml") |
720 | -DECLARE_ZORBA_MODULE(FILE store/static/indexes/ddl.xq VERSION 2.0 |
721 | - URI "http://www.zorba-xquery.com/modules/store/static/indexes/ddl") |
722 | -DECLARE_ZORBA_MODULE(FILE store/static/indexes/dml.xq VERSION 2.0 |
723 | - URI "http://www.zorba-xquery.com/modules/store/static/indexes/dml") |
724 | -DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/ddl.xq VERSION 2.0 |
725 | - URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl") |
726 | -DECLARE_ZORBA_MODULE(FILE store/static/integrity_constraints/dml.xq VERSION 2.0 |
727 | - URI "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml") |
728 | DECLARE_ZORBA_MODULE(FILE xqdoc/batch.xq VERSION 2.0 |
729 | URI "http://www.zorba-xquery.com/modules/xqdoc/batch") |
730 | DECLARE_ZORBA_MODULE(FILE xqdoc/html.xq VERSION 2.0 |
731 | |
732 | === removed directory 'modules/com/zorba-xquery/www/modules/store' |
733 | === removed directory 'modules/com/zorba-xquery/www/modules/store/data-structures' |
734 | === removed directory 'modules/com/zorba-xquery/www/modules/store/documents' |
735 | === modified file 'modules/store/CMakeLists.txt' |
736 | --- modules/store/CMakeLists.txt 2013-08-24 23:44:26 +0000 |
737 | +++ modules/store/CMakeLists.txt 2013-10-17 02:02:41 +0000 |
738 | @@ -14,3 +14,29 @@ |
739 | |
740 | DECLARE_ZORBA_MODULE(FILE unordered-maps.xq VERSION 1.0 |
741 | URI "http://zorba.io/modules/unordered-maps") |
742 | + |
743 | +DECLARE_ZORBA_MODULE(FILE documents.xq VERSION 2.0 |
744 | + URI "http://zorba.io/modules/store/documents") |
745 | + |
746 | +DECLARE_ZORBA_MODULE(FILE dynamic/collections/ddl.xq VERSION 2.0 |
747 | + URI "http://zorba.io/modules/store/dynamic/collections/ddl") |
748 | +DECLARE_ZORBA_MODULE(FILE dynamic/collections/dml.xq VERSION 2.0 |
749 | + URI "http://zorba.io/modules/store/dynamic/collections/dml") |
750 | +DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/ddl.xq VERSION 2.0 |
751 | + URI "http://zorba.io/modules/store/dynamic/collections/w3c/ddl") |
752 | +DECLARE_ZORBA_MODULE(FILE dynamic/collections/w3c/dml.xq VERSION 2.0 |
753 | + URI "http://zorba.io/modules/store/dynamic/collections/w3c/dml") |
754 | +DECLARE_ZORBA_MODULE(FILE static/collections/ddl.xq VERSION 2.0 |
755 | + URI "http://zorba.io/modules/store/static/collections/ddl") |
756 | +DECLARE_ZORBA_MODULE(FILE static/collections/dml.xq VERSION 2.0 |
757 | + URI "http://zorba.io/modules/store/static/collections/dml") |
758 | +DECLARE_ZORBA_MODULE(FILE static/indexes/ddl.xq VERSION 2.0 |
759 | + URI "http://zorba.io/modules/store/static/indexes/ddl") |
760 | +DECLARE_ZORBA_MODULE(FILE static/indexes/dml.xq VERSION 2.0 |
761 | + URI "http://zorba.io/modules/store/static/indexes/dml") |
762 | +DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/ddl.xq VERSION 2.0 |
763 | + URI "http://zorba.io/modules/store/static/integrity-constraints/ddl") |
764 | +DECLARE_ZORBA_MODULE(FILE static/integrity-constraints/dml.xq VERSION 2.0 |
765 | + URI "http://zorba.io/modules/store/static/integrity-constraints/dml") |
766 | + |
767 | +# vim:set et sw=2 ts=2: |
768 | |
769 | === renamed file 'modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq' => 'modules/store/documents.xq' |
770 | --- modules/com/zorba-xquery/www/modules/store/documents/dynamic.xq 2013-09-26 23:15:11 +0000 |
771 | +++ modules/store/documents.xq 2013-10-17 02:02:41 +0000 |
772 | @@ -1,7 +1,7 @@ |
773 | xquery version "3.0"; |
774 | |
775 | (: |
776 | - : Copyright 2006-2009 The FLWOR Foundation. |
777 | + : Copyright 2006-2013 The FLWOR Foundation. |
778 | : |
779 | : Licensed under the Apache License, Version 2.0 (the "License"); |
780 | : you may not use this file except in compliance with the License. |
781 | @@ -20,100 +20,114 @@ |
782 | : This module defines a set of functions which manage documents that |
783 | : are persisted in the store. Specifically, it contains functions |
784 | : to put, remove, list, or retrieve documents. |
785 | - : |
786 | - : <p>Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a> for |
787 | - : more information about the lifecycle management and manipulation of documents.</p> |
788 | + : <p/> |
789 | + : Please refer to <a href="../zorba/data_lifecycle.html">our documentation</a> |
790 | + : for more information about the lifecycle management and manipulation of |
791 | + : documents. |
792 | : |
793 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
794 | : @see http://zorba.io/errors |
795 | - : |
796 | : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
797 | - : |
798 | : @project Zorba/Data Store/Documents |
799 | :) |
800 | -module namespace doc = "http://www.zorba-xquery.com/modules/store/dynamic/documents"; |
801 | +module namespace doc = "http://zorba.io/modules/store/documents"; |
802 | |
803 | declare namespace zerr = "http://zorba.io/errors"; |
804 | declare namespace err = "http://www.w3.org/2005/xqt-errors"; |
805 | declare namespace ver = "http://zorba.io/options/versioning"; |
806 | declare option ver:module-version "2.0"; |
807 | |
808 | -(:~ |
809 | - : Adds a document to the store. The document is bound to the URI |
810 | - : given as first parameter. This URI is the name of the document and |
811 | - : can be used by the doc:document() function to retrieve |
812 | - : the document from the store. |
813 | - : |
814 | - : The semantics of the function is similar to the fn:put function. The difference |
815 | - : is that this function accepts only document nodes as parameters. |
816 | - : Please note that this function does not try to fetch the document from the |
817 | - : external resource identified by $uri. Instead, the file or http-client |
818 | - : modules can be used to retrieve the resource as string and fn:parse-xml can be used |
819 | - : to parse the string returning a document. |
820 | - : |
821 | - : @param $uri The URI of the document. If a relative URI is given, the URI |
822 | - : is made absolute using the static base URI of the module. |
823 | - : @param $doc The document node to be added to the store. |
824 | - : |
825 | - : @return an empty XDM instance and a pending update list which, when |
826 | - : applied, adds the given document to the store. |
827 | - : |
828 | - : @error zerr:ZAPI0020 if the store already contains a document for the given $uri. |
829 | - : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized. |
830 | - : |
831 | - :) |
832 | -declare updating function doc:put( |
833 | - $uri as xs:string, |
834 | - $doc as document-node()) external; |
835 | - |
836 | -(:~ |
837 | - : Removes the document with the given URI from the store. |
838 | - : |
839 | - : @param $uri The URI of the document to remove. If a relative URI is given, |
840 | - : the URI is made absolute using the static base URI of the module. |
841 | - |
842 | - : @return Returns an empty XDM instance and a pending update list which, when |
843 | - : applied, removes the document bound to the given URI. |
844 | - : |
845 | - : @error zerr:ZXQD0002 if no document with the given URI exists in the store. |
846 | - : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized. |
847 | - :) |
848 | -declare updating function doc:remove($uri as xs:string) external; |
849 | - |
850 | -(:~ |
851 | - : Returns the document with the given URI from the store. |
852 | +(:===========================================================================:) |
853 | + |
854 | +(:~ |
855 | + : Retrieves a sequence of URIs of documents bound in the store. |
856 | + : |
857 | + : @return The list of URIs of the available documents in the store or the |
858 | + : empty sequence if none. |
859 | + :) |
860 | +declare function doc:available-documents() |
861 | + as xs:string* external; |
862 | + |
863 | +(:~ |
864 | + : Gets the document with the given URI from the store. |
865 | : |
866 | : The difference to fn:doc is that this function does not attempt to retrieve |
867 | : the resource from the file system or the web before returning it. |
868 | : Its only responsibility is to return the document from the store that was |
869 | : bound using fn:put or doc:put. |
870 | : |
871 | - : @param $uri The URI of the document to retrieve. If a relative URI is given, |
872 | - : the URI is made absolute using the static base URI of the module. |
873 | - : |
874 | + : @param $uri The URI of the document to retrieve. |
875 | + : If a relative URI is given, the URI is made absolute using the static base |
876 | + : URI of the module. |
877 | : @return Returns the document bound to the given URI. |
878 | - : |
879 | : @error zerr:ZXQD0002 if no document with the given URI exists in the store. |
880 | - : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized. |
881 | - :) |
882 | -declare function doc:document($uri as xs:string) as document-node() external; |
883 | - |
884 | -(:~ |
885 | - : Retrieves a sequence of URIs of documents bound in the store. |
886 | - : |
887 | - : @return The list of URIs of the available documents in the store. The empty |
888 | - : sequence is returned if not document exists in the store. |
889 | - :) |
890 | -declare function doc:available-documents() as xs:string* external; |
891 | + : @error err:FODC0004 if the given URI is not valid or couldn't be made |
892 | + : absolute. |
893 | + :) |
894 | +declare function doc:document( $uri as xs:string ) |
895 | + as document-node() external; |
896 | |
897 | (:~ |
898 | : Returns true if a document with the given URI exists in the store. |
899 | : |
900 | - : @param $uri The URI of the document to check for. If a relative URI is given, |
901 | + : @param $uri The URI of the document to check for. |
902 | + : If a relative URI is given, the URI is made absolute using the static base |
903 | + : URI of the module. |
904 | + : |
905 | + : @return Returns true if a document with the given URI exists in the store or |
906 | + : false otherwise. |
907 | + : @error err:FODC0004 if the given URI is not valid or couldn't be made |
908 | + : absolute. |
909 | + :) |
910 | +declare function doc:is-available-document( $uri as xs:string ) |
911 | + as xs:boolean external; |
912 | + |
913 | +(:~ |
914 | + : Adds a document to the store. |
915 | + : The document is bound to the URI given as first parameter. |
916 | + : This URI is the name of the document and can be used by the |
917 | + : <code>doc:document()</code> function to retrieve the document from the |
918 | + : store. |
919 | + : <p/> |
920 | + : The semantics of the function is similar to the <code>fn:put()</code> |
921 | + : function. |
922 | + : The difference is that this function accepts only document nodes as |
923 | + : parameters. |
924 | + : Please note that this function does not try to fetch the document from the |
925 | + : external resource identified by the URI. |
926 | + : Instead, the file or http-client modules can be used to retrieve the |
927 | + : resource as string and <code>fn:parse-xml()</code> can be used to parse the |
928 | + : string returning a document. |
929 | + : |
930 | + : @param $uri The URI of the document. |
931 | + : If a relative URI is given, the URI is made absolute using the static base |
932 | + : URI of the module. |
933 | + : @param $doc The document node to be added to the store. |
934 | + : @return An empty XDM instance and a pending update list that, when applied, |
935 | + : adds the given document to the store. |
936 | + : @error zerr:ZAPI0020 if the store already contains a document for the given |
937 | + : URI. |
938 | + : @error err:FODC0004 if the given URI is not valid or couldn't be made |
939 | + : absolute. |
940 | + :) |
941 | +declare updating function doc:put( $uri as xs:string, |
942 | + $doc as document-node() ) |
943 | + external; |
944 | + |
945 | +(:~ |
946 | + : Removes the document with the given URI from the store. |
947 | + : |
948 | + : @param $uri The URI of the document to remove. If a relative URI is given, |
949 | : the URI is made absolute using the static base URI of the module. |
950 | - : |
951 | - : @return Returns true if a document with the given URI exists in the store or false otherwise. |
952 | - : |
953 | - : @error err:FODC0004 if the given URI is not valid or couldn't be absolutized. |
954 | + : @return Returns an empty XDM instance and a pending update list that, when |
955 | + : applied, removes the document bound to the given URI. |
956 | + : @error zerr:ZXQD0002 if no document with the given URI exists in the store. |
957 | + : @error err:FODC0004 if the given URI is not valid or couldn't be made |
958 | + : absolute. |
959 | :) |
960 | -declare function doc:is-available-document($uri as xs:string) as xs:boolean external; |
961 | +declare updating function doc:remove( $uri as xs:string ) |
962 | + external; |
963 | + |
964 | +(:===========================================================================:) |
965 | + |
966 | +(: vim:set et sw=2 ts=2: :) |
967 | |
968 | === renamed directory 'modules/com/zorba-xquery/www/modules/store/dynamic' => 'modules/store/dynamic' |
969 | === modified file 'modules/store/dynamic/collections/ddl.xq' |
970 | --- modules/com/zorba-xquery/www/modules/store/dynamic/collections/ddl.xq 2013-09-26 23:15:11 +0000 |
971 | +++ modules/store/dynamic/collections/ddl.xq 2013-10-17 02:02:41 +0000 |
972 | @@ -1,7 +1,7 @@ |
973 | xquery version "3.0"; |
974 | |
975 | (: |
976 | - : Copyright 2006-2009 The FLWOR Foundation. |
977 | + : Copyright 2006-2013 The FLWOR Foundation. |
978 | : |
979 | : Licensed under the Apache License, Version 2.0 (the "License"); |
980 | : you may not use this file except in compliance with the License. |
981 | @@ -17,103 +17,89 @@ |
982 | :) |
983 | |
984 | (:~ |
985 | - : This modules defines a set of functions for managing persistent, ordered, and |
986 | - : updatable collections. |
987 | - : |
988 | - : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html"> |
989 | - : more information</a> about the lifecycle management and the manipulation of such |
990 | - : collections.</p> |
991 | + : This modules defines a set of functions for managing persistent, ordered, |
992 | + : and updatable collections. |
993 | + : <p/> |
994 | + : Please refer to our documentation for |
995 | + : <a href="../zorba/data_lifecycle.html">more information</a> |
996 | + : about the lifecycle management and the manipulation of such collections. |
997 | : |
998 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
999 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml |
1000 | + : @see http://zorba.io/modules/store/dynamic/collections/dml |
1001 | : @see http://zorba.io/errors |
1002 | : |
1003 | : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
1004 | - : |
1005 | : @project Zorba/Data Store/Collections/Dynamic Data Definition |
1006 | - : |
1007 | :) |
1008 | -module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; |
1009 | +module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/ddl"; |
1010 | |
1011 | declare namespace zerr = "http://zorba.io/errors"; |
1012 | declare namespace ver = "http://zorba.io/options/versioning"; |
1013 | declare option ver:module-version "2.0"; |
1014 | |
1015 | - |
1016 | -(:~ |
1017 | - : The create function is an updating function which creates |
1018 | - : the collection with the given expanded QName. |
1019 | - : |
1020 | - : @param $name The QName of the collection to create. |
1021 | - : |
1022 | - : @return The result of the function is an empty XDM instance and a |
1023 | - : pending update list which, once applied, creates a collection |
1024 | - : with the given name. |
1025 | - : |
1026 | - : @error zerr:ZDDY0002 if a collection with the given expanded QName already |
1027 | - : exists. |
1028 | - : |
1029 | - :) |
1030 | -declare updating function ddl:create($name as xs:QName) external; |
1031 | - |
1032 | - |
1033 | -(:~ |
1034 | - : The create function is an updating function which creates |
1035 | - : the collection with the given expanded QName. Moreover, it adds copies |
1036 | - : of the sequence $content to the new collection. |
1037 | - : |
1038 | - : @param $name The QName of the collection to create. |
1039 | - : @param $content The sequences of items (nodes and/or json items) that should |
1040 | - : be added to the new collection. |
1041 | - : |
1042 | - : @return The result of the function is an empty XDM instance and a |
1043 | - : pending update list which, once applied, creates a collection |
1044 | - : with the given name and inserts the given items into it. |
1045 | - : |
1046 | - : @error zerr:ZDDY0002 if a collection with the given expanded QName already |
1047 | - : exists. |
1048 | - : |
1049 | +(:===========================================================================:) |
1050 | + |
1051 | +(:~ |
1052 | + : Gets the QNames of the collections that are available, if any. |
1053 | + : |
1054 | + : @return A sequence comprising one QName for each available collection |
1055 | + : or an emtpy sequence if no collections are available. |
1056 | + :) |
1057 | +declare function ddl:available-collections() |
1058 | + as xs:QName* external; |
1059 | + |
1060 | +(:~ |
1061 | + : Creates a collection. |
1062 | + : |
1063 | + : @param $name The name of the collection to create. |
1064 | + : @return An empty XDM instance and a pending update list that, once applied, |
1065 | + : creates a collection with the given name. |
1066 | + : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists. |
1067 | + :) |
1068 | +declare updating function ddl:create( $name as xs:QName ) |
1069 | + external; |
1070 | + |
1071 | +(:~ |
1072 | + : Creates a collection and adds the given sequence as content to the new |
1073 | + : collection. |
1074 | + : |
1075 | + : @param $name The name of the collection to create. |
1076 | + : @param $content The sequence of items (nodes or JSON items) |
1077 | + : to be added to the new collection. |
1078 | + : @return An empty XDM instance and a pending update list that, once applied, |
1079 | + : creates a collection with the given name and inserts the given items into |
1080 | + : it. |
1081 | + : @error zerr:ZDDY0002 if a collection with the given name already exists. |
1082 | : @see ddl:create |
1083 | - : @see ddl:insert-nodes-last |
1084 | - : |
1085 | - :) |
1086 | -declare updating function ddl:create($name as xs:QName, $content as item()*) external; |
1087 | - |
1088 | - |
1089 | -(:~ |
1090 | - : The delete function is an updating function that removes |
1091 | - : the collection with the given expanded QName. |
1092 | - : |
1093 | - : @param $name The QName of the collection to delete. |
1094 | - : |
1095 | - : @return The result of the function is an empty XDM instance and a pending |
1096 | - : update list which, once applied, deletes the collection with the given |
1097 | - : name. |
1098 | - : |
1099 | - : @error zerr:ZDDY0003 if the collection with the given name does not exist. |
1100 | - : @error zerr:ZDDY0015 if any of the in-scope variables references an item that |
1101 | - : belongs to the collection with QName $name. |
1102 | - : |
1103 | - :) |
1104 | -declare updating function ddl:delete($coll as xs:QName) external; |
1105 | - |
1106 | - |
1107 | -(:~ |
1108 | - : The function returns true if a collection with the given QName is available. |
1109 | + : @see ddl:insert-last |
1110 | + :) |
1111 | +declare updating function ddl:create( $name as xs:QName, |
1112 | + $content as item()* ) |
1113 | + external; |
1114 | + |
1115 | +(:~ |
1116 | + : Deletes the collection having the given name. |
1117 | + : |
1118 | + : @param $name The name of the collection to delete. |
1119 | + : @return An empty XDM instance and a pending update list that, once applied, |
1120 | + : deletes the collection with the given name. |
1121 | + : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is |
1122 | + : not available. |
1123 | + : @error zerr:ZDDY0015 if any of the in-scope variables references an item |
1124 | + : that belongs to the collection with QName <code>$name</code>. |
1125 | + :) |
1126 | +declare updating function ddl:delete( $name as xs:QName ) |
1127 | + external; |
1128 | + |
1129 | +(:~ |
1130 | + : Gets whether a collection with the given name is available. |
1131 | : |
1132 | : @param $name The QName of the collection that is being checked. |
1133 | - : |
1134 | : @return true if the collection is available and false otherwise. |
1135 | - : |
1136 | - :) |
1137 | -declare function ddl:is-available-collection($name as xs:QName) as xs:boolean external; |
1138 | - |
1139 | - |
1140 | -(:~ |
1141 | - : The function returns a sequence of QNames of the collections that are |
1142 | - : available. The sequence will be empty if there are no collections. |
1143 | - : |
1144 | - : @return A sequence of QNames, one for each available collection, or an emtpy sequence. |
1145 | - : |
1146 | - :) |
1147 | -declare function ddl:available-collections() as xs:QName* external; |
1148 | + :) |
1149 | +declare function ddl:is-available-collection( $name as xs:QName ) |
1150 | + as xs:boolean external; |
1151 | + |
1152 | +(:===========================================================================:) |
1153 | + |
1154 | +(: vim:set et sw=2 ts=2: :) |
1155 | |
1156 | === modified file 'modules/store/dynamic/collections/dml.xq' |
1157 | --- modules/com/zorba-xquery/www/modules/store/dynamic/collections/dml.xq 2013-09-26 23:15:11 +0000 |
1158 | +++ modules/store/dynamic/collections/dml.xq 2013-10-17 02:02:41 +0000 |
1159 | @@ -1,7 +1,7 @@ |
1160 | xquery version "3.0"; |
1161 | |
1162 | (: |
1163 | - : Copyright 2006-2009 The FLWOR Foundation. |
1164 | + : Copyright 2006-2013 The FLWOR Foundation. |
1165 | : |
1166 | : Licensed under the Apache License, Version 2.0 (the "License"); |
1167 | : you may not use this file except in compliance with the License. |
1168 | @@ -17,22 +17,21 @@ |
1169 | :) |
1170 | |
1171 | (:~ |
1172 | - : This modules provides a set of functions to modify a collection and retrieve the items |
1173 | - : contained in a particular collection. |
1174 | - : |
1175 | - : <p>Please refer to our documentation for <a href="../zorba/data_lifecycle.html"> |
1176 | - : more information</a> about the lifecycle management and the manipulation of such |
1177 | - : collections.</p> |
1178 | + : This modules provides a set of functions to modify a collection |
1179 | + : and retrieve the items contained in a particular collection. |
1180 | + : <p/> |
1181 | + : Please refer to our documentation for |
1182 | + : <a href="../zorba/data_lifecycle.html">more information</a> |
1183 | + : about the lifecycle management and the manipulation of such collections. |
1184 | : |
1185 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
1186 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl |
1187 | + : @see http://zorba.io/modules/store/dynamic/collections/ddl |
1188 | : @see http://zorba.io/errors |
1189 | : |
1190 | : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
1191 | - : |
1192 | : @project Zorba/Data Store/Collections/Dynamic Data Manipulation |
1193 | :) |
1194 | -module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; |
1195 | +module namespace dml = "http://zorba.io/modules/store/dynamic/collections/dml"; |
1196 | |
1197 | declare namespace zerr = "http://zorba.io/errors"; |
1198 | declare namespace an = "http://zorba.io/annotations"; |
1199 | @@ -40,675 +39,306 @@ |
1200 | declare namespace ver = "http://zorba.io/options/versioning"; |
1201 | declare option ver:module-version "2.0"; |
1202 | |
1203 | - |
1204 | -(:~ |
1205 | - : The insert-nodes-first function is an updating function that inserts copies of the |
1206 | - : given nodes at the beginning of the collection. |
1207 | - : |
1208 | - : @param $name The name of the collection to which the nodes should be added. |
1209 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1210 | - : |
1211 | - : @return The result of the function is an empty XDM instance and a pending update list |
1212 | - : which, once applied, inserts the nodes into the collection. |
1213 | - : |
1214 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1215 | - : |
1216 | - : @deprecated please use the cdml:insert-first#2 function |
1217 | - : |
1218 | - :) |
1219 | -declare updating function |
1220 | -dml:insert-nodes-first($name as xs:QName, $content as node()*) external; |
1221 | - |
1222 | - |
1223 | -(:~ |
1224 | - : The insert-first function is an updating function that inserts copies of the |
1225 | - : given items (nodes or json items) at the beginning of the collection. |
1226 | - : |
1227 | - : @param $name The name of the collection to which the items should be added. |
1228 | - : @param $content The sequences of items whose copies should be added to the collection. |
1229 | - : |
1230 | - : @return The result of the function is an empty XDM instance and a pending update |
1231 | - : list which, once applied, inserts the items into the collection. |
1232 | - : |
1233 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1234 | - : |
1235 | - :) |
1236 | -declare updating function |
1237 | -dml:insert-first($name as xs:QName, $content as item()*) external; |
1238 | - |
1239 | - |
1240 | -(:~ |
1241 | - : The insert-nodes-last function is an updating function that inserts copies of the |
1242 | - : given nodes at the end of the collection. |
1243 | - : |
1244 | - : @param $name The name of the collection to which the nodes should be added. |
1245 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1246 | - : |
1247 | - : @return The result of the function is an empty XDM instance and a pending update list |
1248 | - : which, once applied, inserts the nodes into the collection. |
1249 | - : |
1250 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1251 | - : |
1252 | - : @deprecated please use the cdml:insert-last#2 function |
1253 | - : |
1254 | - :) |
1255 | -declare updating function |
1256 | -dml:insert-nodes-last($name as xs:QName, $content as node()*) external; |
1257 | - |
1258 | - |
1259 | -(:~ |
1260 | - : The insert-last function is an updating function that inserts copies of the |
1261 | - : given items (nodes or json items) at the end of the collection. |
1262 | - : |
1263 | - : @param $name The name of the collection to which the items should be added. |
1264 | - : @param $content The sequences of items whose copies should be added to the collection. |
1265 | - : |
1266 | - : @return The result of the function is an empty XDM instance and a pending update list |
1267 | - : which, once applied, inserts the items into the collection. |
1268 | - : |
1269 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1270 | - : |
1271 | - :) |
1272 | -declare updating function |
1273 | -dml:insert-last($name as xs:QName, $content as item()*) external; |
1274 | - |
1275 | - |
1276 | -(:~ |
1277 | - : The insert-nodes-before function is an updating function that inserts |
1278 | - : copies of the given nodes into a collection at the position directly preceding the |
1279 | - : given target node. |
1280 | - : |
1281 | - : @param $name The name of the collection to which the nodes should be added. |
1282 | - : @param $target The node in the collection before which the $content |
1283 | - : sequence should be inserted. |
1284 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1285 | - : |
1286 | - : @return The result of the function is an empty XDM instance and a pending update list |
1287 | - : which, once applied, inserts the nodes into the collection. |
1288 | - : |
1289 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1290 | - : @error zerr:ZDDY0011 if the target node is not contained in the collection. |
1291 | - : |
1292 | - : @deprecated please use the cdml:insert-before#3 function |
1293 | - : |
1294 | - :) |
1295 | -declare updating function |
1296 | -dml:insert-nodes-before( |
1297 | - $name as xs:QName, |
1298 | - $target as node(), |
1299 | - $content as node()*) external; |
1300 | - |
1301 | -(:~ |
1302 | - : The insert-before function is an updating function that inserts copies of |
1303 | - : the given items (nodes or json items) into a collection at the position |
1304 | - : directly preceding the given target item. |
1305 | - : |
1306 | - : @param $name The name of the collection to which the items should be added. |
1307 | - : @param $target The item in the collection before which the $content |
1308 | - : sequence should be inserted. |
1309 | - : @param $content The sequences of items whose copies should be added to the collection. |
1310 | - : |
1311 | - : @return The result of the function is an empty XDM instance and a pending update list |
1312 | - : which, once applied, inserts the items into the collection. |
1313 | - : |
1314 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1315 | - : @error zerr:ZDDY0011 if the target item is not contained in the collection. |
1316 | - : |
1317 | - :) |
1318 | -declare updating function |
1319 | -dml:insert-before($name as xs:QName, $target as item(), $content as item()*) external; |
1320 | - |
1321 | - |
1322 | -(:~ |
1323 | - : The insert-nodes-after function is an updating function that inserts |
1324 | - : copies of the given nodes into a collection at the position directly following the |
1325 | - : given target node. |
1326 | - : |
1327 | - : @param $name The name of the collection to which the nodes should be added. |
1328 | - : @param $target The node in the collection after which the $content |
1329 | - : sequence should be inserted. |
1330 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1331 | - : |
1332 | - : @return The result of the function is an empty XDM instance and a pending update list |
1333 | - : which, once applied, inserts the nodes into the collection. |
1334 | - : |
1335 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1336 | - : @error zerr:ZDDY0011 if the target node is not contained in the collection. |
1337 | - : |
1338 | - : @deprecated please use the cdml:insert-after#3 function |
1339 | - : |
1340 | - :) |
1341 | -declare updating function |
1342 | -dml:insert-nodes-after( |
1343 | - $name as xs:QName, |
1344 | - $pos as node(), |
1345 | - $content as node()*) external; |
1346 | - |
1347 | - |
1348 | -(:~ |
1349 | - : The insert-after function is an updating function that inserts copies of |
1350 | - : the given items (nodes and/or json items) into a collection at the position |
1351 | - : directly following the given target item. |
1352 | - : |
1353 | - : @param $name The name of the collection to which the items should be added. |
1354 | - : @param $target The item in the collection after which the $content |
1355 | - : sequence should be inserted. |
1356 | - : @param $content The sequences of items whose copies should be added to the collection. |
1357 | - : |
1358 | - : @return The result of the function is an empty XDM instance and a pending update list |
1359 | - : which, once applied, inserts the items into the collection. |
1360 | - : |
1361 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1362 | - : @error zerr:ZDDY0011 if the target node is not contained in the collection. |
1363 | - : |
1364 | - :) |
1365 | -declare updating function |
1366 | -dml:insert-after($name as xs:QName, $pos as item(), $content as item()*) external; |
1367 | - |
1368 | - |
1369 | -(:~ |
1370 | - : This function does the same as the insert-nodes-first function except |
1371 | - : it immediately applies the resulting pending updates and returns the |
1372 | - : nodes that have been inserted. |
1373 | - : |
1374 | - : @param $name The name of the collection to which the nodes should be added. |
1375 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1376 | - : |
1377 | - : @return The result of the function is the sequence of nodes that have been |
1378 | - : inserted into the collection. |
1379 | - : |
1380 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1381 | - : |
1382 | - : @see dml:insert-nodes-first |
1383 | - : |
1384 | - : @deprecated please use the cdml:apply-insert-first#2 function |
1385 | - : |
1386 | - :) |
1387 | -declare %an:sequential function |
1388 | -dml:apply-insert-nodes-first( |
1389 | - $name as xs:QName, |
1390 | - $content as node()*) as node()* external; |
1391 | - |
1392 | - |
1393 | -(:~ |
1394 | - : This function does the same as the insert-first function except it immediately |
1395 | - : applies the resulting pending updates and returns the items that have been inserted. |
1396 | - : |
1397 | - : @param $name The name of the collection to which the items should be added. |
1398 | - : @param $content The sequences of items whose copies should be added to the collection. |
1399 | - : |
1400 | - : @return The result of the function is the sequence of items that have been |
1401 | - : inserted into the collection. |
1402 | - : |
1403 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1404 | - : |
1405 | +(:===========================================================================:) |
1406 | + |
1407 | +(:~ |
1408 | + : Inserts copies of the given items (nodes or JSON items) |
1409 | + : into a collection at the position directly preceding the given target item. |
1410 | + : |
1411 | + : @param $name The name of the collection to insert into. |
1412 | + : @param $target The item in the collection before which <code>$content</code> |
1413 | + : will be inserted. |
1414 | + : @param $content The sequence of items whose copies to insert. |
1415 | + : @return An empty XDM instance and a pending update list that, once applied, |
1416 | + : inserts the items into the collection. |
1417 | + : @error zerr:ZDDY0003 if the collection is not available. |
1418 | + : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection. |
1419 | + :) |
1420 | +declare updating function dml:insert-before( $name as xs:QName, |
1421 | + $target as item(), |
1422 | + $content as item()* ) |
1423 | + external; |
1424 | + |
1425 | +(:~ |
1426 | + : Inserts copies of the given items (nodes or JSON items) |
1427 | + : at the beginning of the collection. |
1428 | + : |
1429 | + : @param $name The name of the collection to insert into. |
1430 | + : @param $content The sequence of items whose copies to insert. |
1431 | + : @return An empty XDM instance and a pending update list that, once applied, |
1432 | + : inserts the items into the collection. |
1433 | + : @error zerr:ZDDY0003 if the collection is not available. |
1434 | + :) |
1435 | +declare updating function dml:insert-first( $name as xs:QName, |
1436 | + $content as item()* ) |
1437 | + external; |
1438 | + |
1439 | +(:~ |
1440 | + : Inserts copies of the given items (nodes or JSON items) |
1441 | + : at the end of the collection. |
1442 | + : |
1443 | + : @param $name The name of the collection to insert into. |
1444 | + : @param $content The sequence of items whose copies to insert. |
1445 | + : @return An empty XDM instance and a pending update list that, once applied, |
1446 | + : inserts the items into the collection. |
1447 | + : @error zerr:ZDDY0003 if the collection is not available. |
1448 | + :) |
1449 | +declare updating function dml:insert-last( $name as xs:QName, |
1450 | + $content as item()* ) |
1451 | + external; |
1452 | + |
1453 | +(:~ |
1454 | + : Inserts copies of the given items (nodes or JSON items) |
1455 | + : into a collection at the position directly following the given target item. |
1456 | + : |
1457 | + : @param $name The name of the collection to insert into. |
1458 | + : @param $target The item in the collection after which <code>$content</code> |
1459 | + : will be inserted. |
1460 | + : @param $content The sequence of items whose copies to insert. |
1461 | + : @return An empty XDM instance and a pending update list that, once applied, |
1462 | + : inserts the items into the collection. |
1463 | + : @error zerr:ZDDY0003 if the collection is not available. |
1464 | + : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection. |
1465 | + :) |
1466 | +declare updating function dml:insert-after( $name as xs:QName, |
1467 | + $pos as item(), |
1468 | + $content as item()* ) |
1469 | + external; |
1470 | + |
1471 | +(:~ |
1472 | + : This function does the same thing as <code>insert-first()</code> except it |
1473 | + : immediately applies the resulting pending updates and returns the items that |
1474 | + : have been inserted. |
1475 | + : |
1476 | + : @param $name The name of the collection to insert into. |
1477 | + : @param $content The sequence of items whose copies to insert. |
1478 | + : @return The sequence of items that have been inserted. |
1479 | + : @error zerr:ZDDY0003 if the collection is not available. |
1480 | : @see dml:insert-first |
1481 | - : |
1482 | - :) |
1483 | -declare %an:sequential function |
1484 | -dml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external; |
1485 | - |
1486 | - |
1487 | -(:~ |
1488 | - : This function does the same as the insert-nodes-last function except |
1489 | - : it immediately applies the resulting pending updates and returns the |
1490 | - : nodes that have been inserted. |
1491 | - : |
1492 | - : @param $name The name of the collection to which the nodes should be added. |
1493 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1494 | - : |
1495 | - : @return The result of the function is the sequence of nodes that have been |
1496 | - : inserted into the collection. |
1497 | - : |
1498 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1499 | - : |
1500 | - : @see dml:insert-nodes-last |
1501 | - : |
1502 | - : @deprecated please use the cdml:apply-insert-last#2 function |
1503 | - : |
1504 | - :) |
1505 | -declare %an:sequential function dml:apply-insert-nodes-last( |
1506 | - $name as xs:QName, |
1507 | - $content as node()*) as node()* external; |
1508 | - |
1509 | - |
1510 | -(:~ |
1511 | - : This function does the same as the insert-last function except it immediately |
1512 | - : applies the resulting pending updates and returns the items that have been |
1513 | - : inserted. |
1514 | - : |
1515 | - : @param $name The name of the collection to which the items should be added. |
1516 | - : @param $content The sequences of items whose copies should be added to the collection. |
1517 | - : |
1518 | - : @return The result of the function is the sequence of items that have been |
1519 | - : inserted into the collection. |
1520 | - : |
1521 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1522 | - : |
1523 | + :) |
1524 | +declare %an:sequential function dml:apply-insert-first( $name as xs:QName, |
1525 | + $content as item()* ) |
1526 | + as item()* external; |
1527 | + |
1528 | +(:~ |
1529 | + : This function does the same thing as <code>insert-last()</code> except it |
1530 | + : immediately applies the resulting pending updates and returns the items that |
1531 | + : have been inserted. |
1532 | + : |
1533 | + : @param $name The name of the collection to insert into. |
1534 | + : @param $content The sequence of items whose copies to insert. |
1535 | + : @return The sequence of items that have been inserted. |
1536 | + : @error zerr:ZDDY0003 if the collection is not available. |
1537 | : @see dml:insert-last |
1538 | - : |
1539 | - :) |
1540 | -declare %an:sequential function dml:apply-insert-last( |
1541 | - $name as xs:QName, |
1542 | - $content as item()*) as item()* external; |
1543 | - |
1544 | - |
1545 | -(:~ |
1546 | - : This function does the same as the insert-nodes-before function except |
1547 | - : it immediately applies the resulting pending updates and returns the |
1548 | - : nodes that have been inserted. |
1549 | - : |
1550 | - : @param $name The name of the collection to which the nodes should be added. |
1551 | - : @param $target The node in the collection before which the $content |
1552 | - : sequence should be inserted. |
1553 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1554 | - : |
1555 | - : @return The result of the function is the sequence of nodes that have been |
1556 | - : inserted into the collection. |
1557 | - : |
1558 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1559 | - : |
1560 | - : @see dml:insert-nodes-before |
1561 | - : |
1562 | - : @deprecated please use the cdml:apply-insert-before#3 function |
1563 | - : |
1564 | - :) |
1565 | -declare %an:sequential function |
1566 | -dml:apply-insert-nodes-before( |
1567 | - $name as xs:QName, |
1568 | - $target as node(), |
1569 | - $content as node()*) as node()* external; |
1570 | - |
1571 | - |
1572 | -(:~ |
1573 | - : This function does the same as the insert-before function except it immediately |
1574 | - : applies the resulting pending updates and returns the items that have been |
1575 | - : inserted. |
1576 | - : |
1577 | - : @param $name The name of the collection to which the items should be added. |
1578 | - : @param $target The item in the collection before which the $content |
1579 | - : sequence should be inserted. |
1580 | - : @param $content The sequences of items whose copies should be added to the collection. |
1581 | - : |
1582 | - : @return The result of the function is the sequence of items that have been |
1583 | - : inserted into the collection. |
1584 | - : |
1585 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1586 | - : |
1587 | + :) |
1588 | +declare %an:sequential function dml:apply-insert-last( $name as xs:QName, |
1589 | + $content as item()* ) |
1590 | + as item()* external; |
1591 | + |
1592 | +(:~ |
1593 | + : This function does the same thing as <code>insert-before()</code> except it |
1594 | + : immediately applies the resulting pending updates and returns the items that |
1595 | + : have been inserted. |
1596 | + : |
1597 | + : @param $name The name of the collection to insert into. |
1598 | + : @param $target The item in the collection before which <code>$content</code> |
1599 | + : will be inserted. |
1600 | + : @param $content The sequence of items whose copies to insert. |
1601 | + : @return The sequence of items that have been inserted. |
1602 | + : @error zerr:ZDDY0003 if the collection is not available. |
1603 | : @see dml:insert-before |
1604 | - : |
1605 | - :) |
1606 | -declare %an:sequential function |
1607 | -dml:apply-insert-before( |
1608 | - $name as xs:QName, |
1609 | - $target as item(), |
1610 | - $content as item()*) as item()* external; |
1611 | - |
1612 | - |
1613 | -(:~ |
1614 | - : This function does the same as the insert-nodes-after function except |
1615 | - : it immediately applies the resulting pending updates and returns the |
1616 | - : nodes that have been inserted. |
1617 | - : |
1618 | - : @param $name The name of the collection to which the nodes should be added. |
1619 | - : @param $target The node in the collection after which the $content |
1620 | - : sequence should be inserted. |
1621 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
1622 | - : |
1623 | - : @return The result of the function is the sequence of nodes that have been |
1624 | - : inserted into the collection. |
1625 | - : |
1626 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1627 | - : |
1628 | - : @see dml:insert-nodes-after |
1629 | - : |
1630 | - : @deprecated please use the cdml:apply-insert-after#3 function |
1631 | - : |
1632 | - :) |
1633 | -declare %an:sequential function |
1634 | -dml:apply-insert-nodes-after( |
1635 | - $name as xs:QName, |
1636 | - $pos as node(), |
1637 | - $content as node()*) as node()* external; |
1638 | - |
1639 | - |
1640 | -(:~ |
1641 | - : This function does the same as the insert-after function except it immediately |
1642 | - : applies the resulting pending updates and returns the items that have been |
1643 | - : inserted. |
1644 | - : |
1645 | - : @param $name The name of the collection to which the items should be added. |
1646 | - : @param $target The item in the collection after which the $content |
1647 | - : sequence should be inserted. |
1648 | - : @param $content The sequences of items whose copies should be added to the collection. |
1649 | - : |
1650 | - : @return The result of the function is the sequence of items that have been |
1651 | - : inserted into the collection. |
1652 | - : |
1653 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
1654 | - : |
1655 | + :) |
1656 | +declare %an:sequential function dml:apply-insert-before( $name as xs:QName, |
1657 | + $target as item(), |
1658 | + $content as item()* ) |
1659 | + as item()* external; |
1660 | + |
1661 | +(:~ |
1662 | + : This function does the same thing as <code>insert-after()</code> except it |
1663 | + : immediately applies the resulting pending updates and returns the items that |
1664 | + : have been inserted. |
1665 | + : |
1666 | + : @param $name The name of the collection to insert into. |
1667 | + : @param $target The item in the collection after which <code>$content</code> |
1668 | + : will be inserted. |
1669 | + : @param $content The sequence of items whose copies to insert. |
1670 | + : @return The sequence of items that have been inserted. |
1671 | + : @error zerr:ZDDY0003 if the collection is not available. |
1672 | + : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection. |
1673 | : @see dml:insert-after |
1674 | - : |
1675 | - :) |
1676 | -declare %an:sequential function |
1677 | -dml:apply-insert-after( |
1678 | - $name as xs:QName, |
1679 | - $pos as item(), |
1680 | - $content as item()*) as item()* external; |
1681 | - |
1682 | - |
1683 | -(:~ |
1684 | - : The delete-nodes function is an updating function that deletes zero of more |
1685 | - : nodes from a collection. |
1686 | - : |
1687 | - : @param $target the nodes in the collection that should be deleted. |
1688 | - : |
1689 | - : @return The result of this function is an empty XDM instance and a pending update |
1690 | - : list which, once applied, deletes the nodes from their collections. |
1691 | - : |
1692 | - : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of |
1693 | - : a collection or not all nodes of the $target sequence belong to the same |
1694 | - : collection. |
1695 | - : |
1696 | - : @deprecated please use the cdml:delete#1 function |
1697 | - : |
1698 | - :) |
1699 | -declare updating function |
1700 | -dml:delete-nodes($target as node()*) external; |
1701 | - |
1702 | - |
1703 | -(:~ |
1704 | - : The delete function is an updating function that deletes zero of more items |
1705 | - : (nodes and/or json items) from a collection. |
1706 | - : |
1707 | - : @param $target the items in the collection that should be deleted. |
1708 | - : |
1709 | - : @return The result of this function is an empty XDM instance and a pending update |
1710 | - : list which, once applied, deletes the items from their collections. |
1711 | - : |
1712 | - : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of |
1713 | - : a collection or not all items of the $target sequence belong to the |
1714 | - : same collection. |
1715 | - : |
1716 | - :) |
1717 | -declare updating function |
1718 | -dml:delete($target as item()*) external; |
1719 | - |
1720 | - |
1721 | -(:~ |
1722 | - : The delete-node-first function is an updating function that deletes the |
1723 | - : first node from a collection. |
1724 | - : |
1725 | - : @param $name The name of the collection from which the first node should be deleted. |
1726 | - : |
1727 | - : @return The result of this function is an empty XDM instance and a pending update |
1728 | - : list which, once applied, deletes the first node from the collection. |
1729 | - : |
1730 | - : @error zerr:ZDDY0011 if the collection doesn't contain any node. |
1731 | - : |
1732 | - : @deprecated please use the cdml:delete-first#1 function |
1733 | - : |
1734 | - :) |
1735 | -declare updating function |
1736 | -dml:delete-node-first($name as xs:QName) external; |
1737 | - |
1738 | - |
1739 | -(:~ |
1740 | - : The delete-first function is an updating function that deletes the first item |
1741 | - : from a collection. |
1742 | - : |
1743 | - : @param $name The name of the collection from which the first item should be deleted. |
1744 | - : |
1745 | - : @return The result of this function is an empty XDM instance and a pending update |
1746 | - : list which, once applied, deletes the first item from the collection. |
1747 | - : |
1748 | - : @error zerr:ZDDY0011 if the collection doesn't contain any item. |
1749 | - : |
1750 | - :) |
1751 | -declare updating function |
1752 | -dml:delete-first($name as xs:QName) external; |
1753 | - |
1754 | - |
1755 | -(:~ |
1756 | - : The delete-nodes-first function is an updating function that deletes the |
1757 | - : first n nodes from a collection. |
1758 | - : |
1759 | - : @param $name The name of the collection from which the first node should be deleted. |
1760 | - : @param $number The number of nodes that should be removed from the beginning of |
1761 | - : the collection. |
1762 | - : |
1763 | - : @return The result of this function is an empty XDM instance and a pending update |
1764 | - : list which, once applied, deletes the nodes from the collection. |
1765 | - : |
1766 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes. |
1767 | - : |
1768 | - : @deprecated please use the cdml:delete-first#2 function |
1769 | - : |
1770 | - :) |
1771 | -declare updating function |
1772 | -dml:delete-nodes-first($name as xs:QName, $number as xs:integer) external; |
1773 | - |
1774 | - |
1775 | -(:~ |
1776 | - : The delete-first function is an updating function that deletes the first N |
1777 | - : items from a collection. |
1778 | - : |
1779 | - : @param $name The name of the collection from which the first N items should be deleted. |
1780 | - : @param $number The number N of items that should be removed from the beginning of |
1781 | - : the collection. |
1782 | - : |
1783 | - : @return The result of this function is an empty XDM instance and a pending update |
1784 | - : list which, once applied, deletes the items from the collection. |
1785 | - : |
1786 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items. |
1787 | - : |
1788 | - :) |
1789 | -declare updating function |
1790 | -dml:delete-first($name as xs:QName, $number as xs:integer) external; |
1791 | - |
1792 | - |
1793 | -(:~ |
1794 | - : The delete-node-last function is an updating function that deletes the |
1795 | - : last node from a collection. |
1796 | - : |
1797 | - : @param $name The name of the collection from which the last node should be deleted. |
1798 | - : |
1799 | - : @return The result of this function is an empty XDM instance and a pending update |
1800 | - : list which, once applied, deletes the last node from the collection. |
1801 | - : |
1802 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
1803 | - : for the expanded QName $name. |
1804 | - : @error zerr:ZDDY0011 if the collection doesn't contain any node. |
1805 | - : |
1806 | - : @deprecated please use the cdml:delete-last#1 function |
1807 | - : |
1808 | - :) |
1809 | -declare updating function |
1810 | -dml:delete-node-last($name as xs:QName) external; |
1811 | - |
1812 | - |
1813 | -(:~ |
1814 | - : The delete-last function is an updating function that deletes the last item |
1815 | - : from a collection. |
1816 | - : |
1817 | - : @param $name The name of the collection from which the last item should be deleted. |
1818 | - : |
1819 | - : @return The result of this function is an empty XDM instance and a pending update |
1820 | - : list which, once applied, deletes the last item from the collection. |
1821 | - : |
1822 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
1823 | - : for the expanded QName $name. |
1824 | - : @error zerr:ZDDY0011 if the collection doesn't contain any item. |
1825 | - : |
1826 | - :) |
1827 | -declare updating function |
1828 | -dml:delete-last($name as xs:QName) external; |
1829 | - |
1830 | - |
1831 | -(:~ |
1832 | - : The delete-nodes-last function is an updating function that deletes the |
1833 | - : last n nodes from an ordered collection. |
1834 | - : |
1835 | - : @param $name The name of the collection from which the first node should be deleted. |
1836 | - : @param $number The number of nodes to delete. |
1837 | - : |
1838 | - : @return The result of this function is an empty XDM instance and a pending update |
1839 | - : list which, once applied, deletes the last n nodes. |
1840 | - : |
1841 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
1842 | - : for the expanded QName $name. |
1843 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes. |
1844 | - : |
1845 | - : @deprecated please use the cdml:delete-last#2 function |
1846 | - : |
1847 | - :) |
1848 | -declare updating function |
1849 | -dml:delete-nodes-last($name as xs:QName, $number as xs:integer) external; |
1850 | - |
1851 | - |
1852 | -(:~ |
1853 | - : The delete-last function is an updating function that deletes the last N |
1854 | - : items from an ordered collection. |
1855 | - : |
1856 | - : @param $name The name of the collection from which the lsat N items should be deleted. |
1857 | - : @param $number The number N of items to delete. |
1858 | - : |
1859 | - : @return The result of this function is an empty XDM instance and a pending update |
1860 | - : list which, once applied, deletes the last N items. |
1861 | - : |
1862 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
1863 | - : for the expanded QName $name. |
1864 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of items. |
1865 | - : |
1866 | - :) |
1867 | -declare updating function |
1868 | -dml:delete-last($name as xs:QName, $number as xs:integer) external; |
1869 | - |
1870 | - |
1871 | -(:~ |
1872 | - : The edit function is an updating function that edits the first supplied |
1873 | - : item so as to make it look exactly like a copy of the second supplied item, |
1874 | - : while retaining its original identity. |
1875 | - : |
1876 | - : @param $target The target item ,that must be edited. |
1877 | - : @param $content The content item, that serves as an edit goal. |
1878 | - : |
1879 | - : @return The result of the function is an empty XDM instance and a pending update list |
1880 | - : which, once applied, performs the replacement. |
1881 | - : |
1882 | - : @error zerr:ZDDY0003 if the collection to which $target belongs is not available. |
1883 | - : @error zerr:ZDDY0006 if the modifier property of the collection to which $target |
1884 | - : belongs is append-only, const, or queue. |
1885 | - : @error zerr:ZDDY0017 if the $target item is not a member of a collection. |
1886 | + :) |
1887 | +declare %an:sequential function dml:apply-insert-after( $name as xs:QName, |
1888 | + $target as item(), |
1889 | + $content as item()* ) |
1890 | + as item()* external; |
1891 | + |
1892 | +(:~ |
1893 | + : Gets the sequence of nodes or JSON items from a collection. |
1894 | + : |
1895 | + : @param $name The name of the collection. |
1896 | + : @return The sequence contained in the given collection. |
1897 | + : @error zerr:ZDDY0003 if the collection is not available. |
1898 | + :) |
1899 | +declare function dml:collection( $name as xs:QName ) |
1900 | + as item()* external; |
1901 | + |
1902 | +(:~ |
1903 | + : Gets the sequence of items (nodes or JSON items) from a collection. |
1904 | + : |
1905 | + : @param $name The name of the collection. |
1906 | + : @param $skip The number of collection items to skip. |
1907 | + : @return The sub-sequence contained in the given collection. |
1908 | + : @error zerr:ZDDY0003 if the collection is not available. |
1909 | + :) |
1910 | +declare function dml:collection( $name as xs:QName, |
1911 | + $skip as xs:integer ) |
1912 | + as item()* external; |
1913 | + |
1914 | +(:~ |
1915 | + : Gets the sequence of items (nodes or JSON items) from a collection. |
1916 | + : The parameters <code>$start</code> and <code>$skip</code> can be used to |
1917 | + : skip over items at the beginning of the collection. |
1918 | + : If both are given, both are applied: first, <code>$start</code> to skip to |
1919 | + : that item and then <code>$skip</code> to skip that additional number of |
1920 | + : items. |
1921 | + : |
1922 | + : @param $name The name of the collection. |
1923 | + : @param $start A reference to the first item to return. |
1924 | + : @param $skip The additional number of items to skip. |
1925 | + : @return The sub-sequence from the given collection. |
1926 | + : @error zerr:ZAPI0028 If the given URI is not a valid node position computed |
1927 | + : by the <code>np:node-position</code> function. |
1928 | + : @error zerr:ZDDY0003 if the collection is not available. |
1929 | + : @error zerr:ZSTR0066 If <code>$start</code> does not reference a node from |
1930 | + : the collection <code>$name</code>. |
1931 | + :) |
1932 | +declare function dml:collection( $name as xs:QName, |
1933 | + $start as xs:anyURI, |
1934 | + $skip as xs:integer ) |
1935 | + as item()* external; |
1936 | + |
1937 | +(:~ |
1938 | + : Gets the name of the collection the given item (node or JSON item) belongs |
1939 | + : to. |
1940 | + : |
1941 | + : @param $item The item for which to get the name of the collection. |
1942 | + : @return The name of the collection to which <code>$item</code> belongs. |
1943 | + : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection. |
1944 | + :) |
1945 | +declare function dml:collection-name( $item as item() ) |
1946 | + as xs:QName external; |
1947 | + |
1948 | +(:~ |
1949 | + : Deletes items (nodes or JSON items) from a collection. |
1950 | + : |
1951 | + : @param $items The items in the collection to delete. |
1952 | + : @return An empty XDM instance and a pending update list that, once applied, |
1953 | + : deletes the items from their collections. |
1954 | + : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a |
1955 | + : collection or not all items belong to the same collection. |
1956 | + :) |
1957 | +declare updating function dml:delete( $items as item()* ) |
1958 | + external; |
1959 | + |
1960 | +(:~ |
1961 | + : Deletes the first item from a collection. |
1962 | + : |
1963 | + : @param $name The name of the collection to delete from. |
1964 | + : @return An empty XDM instance and a pending update list that, once applied, |
1965 | + : deletes the first item from the collection. |
1966 | + : @error zerr:ZDDY0011 if the collection is empty. |
1967 | + :) |
1968 | +declare updating function dml:delete-first( $name as xs:QName ) |
1969 | + external; |
1970 | + |
1971 | +(:~ |
1972 | + : Deletes the first <i>N</i> items from a collection. |
1973 | + : |
1974 | + : @param $name The name of the collection to delete from. |
1975 | + : @param $number The number of items to delete. |
1976 | + : @return An empty XDM instance and a pending update list that, once applied, |
1977 | + : deletes the items from the collection. |
1978 | + : @error zerr:ZDDY0003 if the collection is not available. |
1979 | + : @error zerr:ZDDY0011 if the collection contains less than |
1980 | + : <code>$number</code> items. |
1981 | + :) |
1982 | +declare updating function dml:delete-first( $name as xs:QName, |
1983 | + $number as xs:integer ) |
1984 | + external; |
1985 | + |
1986 | +(:~ |
1987 | + : Deletes the last item from a collection. |
1988 | + : |
1989 | + : @param $name The name of the collection to delete from. |
1990 | + : @return An empty XDM instance and a pending update list that, once applied, |
1991 | + : deletes the last item from the collection. |
1992 | + : @error zerr:ZDDY0003 if the collection is not available. |
1993 | + : @error zerr:ZDDY0011 if the collection is empty. |
1994 | + :) |
1995 | +declare updating function dml:delete-last( $name as xs:QName ) |
1996 | + external; |
1997 | + |
1998 | +(:~ |
1999 | + : Deletes the last <i>N</i> items from a collection. |
2000 | + : |
2001 | + : @param $name The name of the collection to delete from. |
2002 | + : @param $number The number of items to delete. |
2003 | + : @return An empty XDM instance and a pending update list that, once applied, |
2004 | + : deletes the last N items. |
2005 | + : @error zerr:ZDDY0003 if the collection is not available. |
2006 | + : @error zerr:ZDDY0011 if the collection contains less than |
2007 | + : <code>$number</code> items. |
2008 | + :) |
2009 | +declare updating function dml:delete-last( $name as xs:QName, |
2010 | + $number as xs:integer ) |
2011 | + external; |
2012 | + |
2013 | +(:~ |
2014 | + : Edits the first supplied item so as to make it look exactly like a copy of |
2015 | + : the second supplied item while retaining its original identity. |
2016 | + : |
2017 | + : @param $target The target item to be edited. |
2018 | + : @param $content The item that serves as an edit goal. |
2019 | + : @return An empty XDM instance and a pending update list that, once applied, |
2020 | + : performs the edit. |
2021 | + : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs |
2022 | + : is not available. |
2023 | + : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs |
2024 | + : is append-only, const, or queue. |
2025 | + : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection. |
2026 | : @error zerr:ZDDY0037 if the collection is append-only. |
2027 | : @error zerr:ZDDY0038 if the collection is a queue. |
2028 | - : @error zerr:ZDDY0039 if the $target item is not a root. |
2029 | - : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for |
2030 | - : example because the target is a node and the content is an object). |
2031 | - : |
2032 | - :) |
2033 | -declare updating function |
2034 | -dml:edit($target as item(), $content as item()) external; |
2035 | - |
2036 | - |
2037 | -(:~ |
2038 | - : The truncate function is an updating function that deletes the |
2039 | - : entire contents of collection. |
2040 | - : |
2041 | - : @param $name The name of the collection whose content to delete |
2042 | - : |
2043 | - : @return The result of this function is an empty XDM instance and a pending update |
2044 | - : list which, once applied, deletes the nodes. |
2045 | - : |
2046 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2047 | - :) |
2048 | -declare updating function dml:truncate($name as xs:QName) external; |
2049 | - |
2050 | - |
2051 | -(:~ |
2052 | - : The collection function returns the sequence of nodes and/or json items |
2053 | - : that belong to the collection identified by the given name. |
2054 | - : |
2055 | - : @param $name The name of the collection. |
2056 | - : |
2057 | - : @return The sequence contained in the given collection. |
2058 | - : |
2059 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
2060 | - : for the expanded QName $name. |
2061 | - : |
2062 | - :) |
2063 | -declare function dml:collection($name as xs:QName) as item()* external; |
2064 | - |
2065 | - |
2066 | -(:~ |
2067 | - : The collection function returns the sequence of nodes and/or json items |
2068 | - : that belong to the collection identified by the given name. |
2069 | - : |
2070 | - : @param $name The name of the collection. |
2071 | - : @param $skip The number of collection items to skip. |
2072 | - : |
2073 | - : @return The sequence contained in the given collection. |
2074 | - : |
2075 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
2076 | - : for the expanded QName $name. |
2077 | - : |
2078 | - :) |
2079 | -declare function |
2080 | -dml:collection($name as xs:QName, $skip as xs:integer) as item()* external; |
2081 | - |
2082 | - |
2083 | -(:~ |
2084 | - : The collection function returns the sequence of nodes and/or json items |
2085 | - : that belong to the collection identified by the given name. |
2086 | - : The parameters $start and $skip can be used to skip over some items at |
2087 | - : the beginning of the collection. If both are given, both are applied: |
2088 | - : first $start to skip to the referenced item and then $skip to skip an |
2089 | - : additional number of items. |
2090 | - : |
2091 | - : @param $name The name of the collection. |
2092 | - : @param $start A reference to the first item to return. All items before |
2093 | - are skipped. |
2094 | - : @param $skip The number of collection items to skip. |
2095 | - : |
2096 | - : @return The sequence contained in the given collection. |
2097 | - : |
2098 | - : @error zerr:ZAPI0028 If the given URI is not a valid node |
2099 | - : position computed by the <tt>np:node-position</tt> function. |
2100 | - : @error zerr:ZDDY0003 If available collections does not provide a mapping |
2101 | - : for the expanded QName $name. |
2102 | - : @error zerr:ZSTR0066 If the passed reference $start does not reference |
2103 | - : a node from the collection identified by $name. |
2104 | - : |
2105 | - :) |
2106 | -declare function |
2107 | -dml:collection($name as xs:QName, |
2108 | - $start as xs:anyURI, |
2109 | - $skip as xs:integer) as item()* external; |
2110 | - |
2111 | - |
2112 | -(:~ |
2113 | - : The collection-name function returns the name of the collection the given |
2114 | - : item (node or json item) belongs to. |
2115 | - : |
2116 | - : @param $item The item for which to get the name of the collection |
2117 | - : @return The result of this function is a QName which identifies the collection |
2118 | - : to which the given item belongs to. |
2119 | - : |
2120 | - : @error zerr:ZDDY0011 if the given item does not belong to a collection. |
2121 | - : |
2122 | - :) |
2123 | -declare function dml:collection-name($item as item()) as xs:QName external; |
2124 | - |
2125 | - |
2126 | -(:~ |
2127 | - : The index-of function returns the position of the given item (node or |
2128 | - : json item) within its containing the collection. |
2129 | - : |
2130 | - : @param $item The item to retrieve the index from. |
2131 | - : |
2132 | - : @return Returns the position as xs:integer of the given item in the collection. |
2133 | - : |
2134 | - : @error zerr:ZDDY0011 if the item is not contained in any collection. |
2135 | - : |
2136 | - :) |
2137 | -declare function dml:index-of($item as item()) as xs:integer external; |
2138 | + : @error zerr:ZDDY0039 if <code>$target</code> is not a root. |
2139 | + : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the |
2140 | + : content (for example, because the target is a node and the content is an |
2141 | + : object). |
2142 | + :) |
2143 | +declare updating function dml:edit( $target as item(), |
2144 | + $content as item() ) |
2145 | + external; |
2146 | + |
2147 | +(:~ |
2148 | + : Gets the position of the given item (node or JSON item) within its |
2149 | + : collection. |
2150 | + : |
2151 | + : @param $item The item to get the index of. |
2152 | + : @return The position of <code>$item</code> in its collection. |
2153 | + : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection. |
2154 | + :) |
2155 | +declare function dml:index-of( $item as item() ) |
2156 | + as xs:integer external; |
2157 | + |
2158 | +(:~ |
2159 | + : Deletes the entire contents of a collection. |
2160 | + : |
2161 | + : @param $name The name of the collection whose contents to delete. |
2162 | + : @return An empty XDM instance and a pending update list that, once applied, |
2163 | + : deletes the contents. |
2164 | + : @error zerr:ZDDY0003 if the collection is not available. |
2165 | + :) |
2166 | +declare updating function dml:truncate( $name as xs:QName ) |
2167 | + external; |
2168 | + |
2169 | +(:===========================================================================:) |
2170 | + |
2171 | +(: vim:set et sw=2 ts=2: :) |
2172 | |
2173 | === modified file 'modules/store/dynamic/collections/w3c/ddl.xq' |
2174 | --- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/ddl.xq 2013-09-26 23:15:11 +0000 |
2175 | +++ modules/store/dynamic/collections/w3c/ddl.xq 2013-10-17 02:02:41 +0000 |
2176 | @@ -1,7 +1,7 @@ |
2177 | xquery version "3.0"; |
2178 | |
2179 | (: |
2180 | - : Copyright 2006-2009 The FLWOR Foundation. |
2181 | + : Copyright 2006-2013 The FLWOR Foundation. |
2182 | : |
2183 | : Licensed under the Apache License, Version 2.0 (the "License"); |
2184 | : you may not use this file except in compliance with the License. |
2185 | @@ -17,146 +17,140 @@ |
2186 | :) |
2187 | |
2188 | (:~ |
2189 | - : This modules defines a set of functions for managing persistent, ordered, and |
2190 | - : updatable collections. |
2191 | - : |
2192 | - : <p>Such collections are identified by a URI as defined in the XQuery specification. |
2193 | - : However, please note that we do not advice users to use collections identified by URIs. |
2194 | - : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle |
2195 | - : documentation</a>. It gives an overview over serveral ways to work with collections, |
2196 | - : documents, and other data-structures.</p> |
2197 | + : This modules defines a set of functions for managing persistent, ordered, |
2198 | + : and updatable collections. |
2199 | + : <p/> |
2200 | + : Such collections are identified by a URI as defined in the XQuery |
2201 | + : specification. |
2202 | + : However, please note that we do not advise users to use collections |
2203 | + : identified by URIs. |
2204 | + : Instead, we refer to the |
2205 | + : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>. |
2206 | + : It gives an overview of several ways to work with collections, documents, |
2207 | + : and other data-structures. |
2208 | : |
2209 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
2210 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml |
2211 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl |
2212 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml |
2213 | + : @see http://zorba.io/modules/store/dynamic/collections/w3c/dml |
2214 | + : @see http://zorba.io/modules/store/dynamic/collections/ddl |
2215 | + : @see http://zorba.io/modules/store/dynamic/collections/dml |
2216 | : @see http://zorba.io/errors |
2217 | : |
2218 | : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
2219 | - : |
2220 | : @project Zorba/Data Store/Collections/W3C Data Definition |
2221 | :) |
2222 | -module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl"; |
2223 | +module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl"; |
2224 | |
2225 | -import module namespace qddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; |
2226 | +import module namespace qddl = "http://zorba.io/modules/store/dynamic/collections/ddl"; |
2227 | |
2228 | declare namespace zerr = "http://zorba.io/errors"; |
2229 | declare namespace ver = "http://zorba.io/options/versioning"; |
2230 | declare option ver:module-version "2.0"; |
2231 | |
2232 | +(:===========================================================================:) |
2233 | + |
2234 | (:~ |
2235 | - : Function used for internal purposes only. It converts a URI |
2236 | - : given as string into a reserved QName. This QName is used |
2237 | - : in the module to be able to store collections identified by |
2238 | - : URIs using dynamic collections which are identified by QNames. |
2239 | - : |
2240 | - : @param $name URI to convert to a reserved QName. |
2241 | - : |
2242 | + : THIS FUNCTION IS FOR INTERNAL USE ONLY. |
2243 | + : Converts a URI given as a string into a reserved QName. |
2244 | + : This QName is used in the module to be able to store collections identified |
2245 | + : by URIs using dynamic collections that are identified by QNames. |
2246 | + : |
2247 | + : @param $uri URI to convert to a reserved QName. |
2248 | : @return The reserved QName for the given URI. |
2249 | - : |
2250 | - :) |
2251 | -declare function ddl:to-qname($name as xs:string) as xs:QName |
2252 | -{ |
2253 | - fn:QName($name, "zorba-internal-name-for-w3c-collections") |
2254 | -}; |
2255 | - |
2256 | -(:~ |
2257 | - : Function used for internal purposes only. It returns the namespace |
2258 | - : component of the given QName. |
2259 | - : |
2260 | - : @param $name QName whose namespace component should be returned |
2261 | - : |
2262 | - : @return the namespace componentn of the given QName |
2263 | - :) |
2264 | -declare function ddl:from-qname($name as xs:QName) as xs:string |
2265 | -{ |
2266 | - fn:namespace-uri-from-QName($name) |
2267 | -}; |
2268 | - |
2269 | -(:~ |
2270 | - : The function returns true if a collection with the given URI is available |
2271 | - : (i.e. has been created). |
2272 | - : |
2273 | - : @param $name The URI of the collection that is being checked. |
2274 | - : |
2275 | + :) |
2276 | +declare function ddl:to-qname( $uri as xs:string ) |
2277 | + as xs:QName |
2278 | +{ |
2279 | + fn:QName( $uri, "zorba-internal-name-for-w3c-collections" ) |
2280 | +}; |
2281 | + |
2282 | +(:~ |
2283 | + : THIS FUNCTION IS FOR INTERNAL USE ONLY. |
2284 | + : Gets the namespace component of the given QName. |
2285 | + : |
2286 | + : @param $name The QName whose namespace component should be returned. |
2287 | + : @return The namespace component of <code>$name</code> |
2288 | + :) |
2289 | +declare function ddl:from-qname( $name as xs:QName ) |
2290 | + as xs:string |
2291 | +{ |
2292 | + fn:namespace-uri-from-QName( $name ) |
2293 | +}; |
2294 | + |
2295 | +(:~ |
2296 | + : Checks whether a collection with the given URI exists. |
2297 | + : |
2298 | + : @param $uri The URI of the collection to check. |
2299 | : @return true if the collection is available and false otherwise. |
2300 | - : |
2301 | :) |
2302 | -declare function ddl:is-available-collection($coll-name as xs:string) as xs:boolean |
2303 | +declare function ddl:is-available-collection( $uri as xs:string ) |
2304 | + as xs:boolean |
2305 | { |
2306 | - qddl:is-available-collection(ddl:to-qname($coll-name)) |
2307 | + qddl:is-available-collection( ddl:to-qname( $uri ) ) |
2308 | }; |
2309 | |
2310 | (:~ |
2311 | : The function returns a sequence of URIs of the collections that are |
2312 | : available. The sequence will be empty if there are no collections. |
2313 | : |
2314 | - : @return A sequence of URIs, one for each available collection, or an emtpy sequence. |
2315 | - : |
2316 | + : @return A sequence of URIs, one for each available collection, or an emtpy |
2317 | + : sequence. |
2318 | :) |
2319 | -declare function ddl:available-collections() as xs:string* |
2320 | +declare function ddl:available-collections() |
2321 | + as xs:string* |
2322 | { |
2323 | for $c in qddl:available-collections() |
2324 | - where fn:local-name-from-QName($c) eq "zorba-internal-name-for-w3c-collections" |
2325 | - return ddl:from-qname($c) |
2326 | -}; |
2327 | - |
2328 | -(:~ |
2329 | - : The create function is an updating function which creates |
2330 | - : the collection with the given URI and the empty-sequence as contents. |
2331 | - : |
2332 | - : @param $name The URI of the collection to create. |
2333 | - : |
2334 | - : @return The result of the function is an empty XDM instance and a |
2335 | - : pending update list which, once applied, creates a collection |
2336 | - : with the given name. |
2337 | - : |
2338 | - : @error zerr:ZDDY0002 if a collection with the given URI already exists. |
2339 | - : |
2340 | - :) |
2341 | -declare updating function ddl:create($coll-name as xs:string) |
2342 | -{ |
2343 | - qddl:create(ddl:to-qname($coll-name)) |
2344 | -}; |
2345 | - |
2346 | -(:~ |
2347 | - : The create function is an updating function which creates |
2348 | - : the collection with the given URI. Moreover, it adds copies |
2349 | - : of the sequence $content to the new collection. |
2350 | - : |
2351 | - : @param $name The URI of the collection to create. |
2352 | - : @param $content The sequences of nodes that should be added to the new collection. |
2353 | - : |
2354 | - : @return The result of the function is an empty XDM instance and a |
2355 | - : pending update list which, once applied, creates a collection |
2356 | - : with the given name and inserts the given nodes into it. |
2357 | - : |
2358 | - : @error zerr:ZDDY0002 if a collection with the given URI already exists. |
2359 | - : |
2360 | - :) |
2361 | -declare updating function ddl:create( |
2362 | - $coll-name as xs:string, |
2363 | - $content as node()*) |
2364 | -{ |
2365 | - qddl:create(ddl:to-qname($coll-name), $content) |
2366 | -}; |
2367 | - |
2368 | -(:~ |
2369 | - : The delete function is an updating function that removes |
2370 | - : the collection with the given URI. |
2371 | - : |
2372 | - : @param $name The URI of the collection to delete. |
2373 | - : |
2374 | - : @return The result of the function is an empty XDM instance and a pending |
2375 | - : update list which, once applied, deletes the collection with the given |
2376 | - : name. |
2377 | - : |
2378 | - : @error zerr:ZDDY0003 if the URI $name is not equal to any of the available collections. |
2379 | - : @error zerr:ZDDY0015 if any of the in-scope variables references a node that |
2380 | - : belongs to the collection with the given URI. |
2381 | - : |
2382 | - :) |
2383 | -declare updating function ddl:delete($coll-name as xs:string) |
2384 | -{ |
2385 | - qddl:delete(ddl:to-qname($coll-name)) |
2386 | -}; |
2387 | + where fn:local-name-from-QName( $c ) |
2388 | + eq "zorba-internal-name-for-w3c-collections" |
2389 | + return ddl:from-qname( $c ) |
2390 | +}; |
2391 | + |
2392 | +(:~ |
2393 | + : Creates the collection with the given URI. |
2394 | + : |
2395 | + : @param $uri The URI of the collection to create. |
2396 | + : @return An empty XDM instance and a pending update list that, once applied, |
2397 | + : creates a collection with the given URI. |
2398 | + : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already |
2399 | + : exists. |
2400 | + :) |
2401 | +declare updating function ddl:create( $uri as xs:string ) |
2402 | +{ |
2403 | + qddl:create( ddl:to-qname( $uri ) ) |
2404 | +}; |
2405 | + |
2406 | +(:~ |
2407 | + : Creates the collection with the given URI and adds copies of the given |
2408 | + : sequence to the new collection. |
2409 | + : |
2410 | + : @param $uri The URI of the collection to create. |
2411 | + : @param $content The sequence of nodes to add to the new collection. |
2412 | + : @return An empty XDM instance and a pending update list that, once applied, |
2413 | + : creates a collection identified by <code>$uri</code> and inserts |
2414 | + : <code>$content</code> into it. |
2415 | + : @error zerr:ZDDY0002 if a collection identified by <code>$uri</code> already |
2416 | + : exists. |
2417 | + :) |
2418 | +declare updating function ddl:create( $uri as xs:string, |
2419 | + $content as node()* ) |
2420 | +{ |
2421 | + qddl:create( ddl:to-qname( $uri ), $content ) |
2422 | +}; |
2423 | + |
2424 | +(:~ |
2425 | + : Deletes the collection with the given URI. |
2426 | + : |
2427 | + : @param $uri The URI of the collection to delete. |
2428 | + : @return An empty XDM instance and a pending update list that, once applied, |
2429 | + : deletes the collection identified by <code>$uri</code>. |
2430 | + : @error zerr:ZDDY0003 if the collection is not available. |
2431 | + : @error zerr:ZDDY0015 if any of the in-scope variables reference a node that |
2432 | + : belongs to the collection identified by <code>$uri</code>. |
2433 | + :) |
2434 | +declare updating function ddl:delete( $uri as xs:string ) |
2435 | +{ |
2436 | + qddl:delete( ddl:to-qname( $uri ) ) |
2437 | +}; |
2438 | + |
2439 | +(:===========================================================================:) |
2440 | + |
2441 | +(: vim:set et sw=2 ts=2: :) |
2442 | |
2443 | === modified file 'modules/store/dynamic/collections/w3c/dml.xq' |
2444 | --- modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/dml.xq 2013-09-26 23:15:11 +0000 |
2445 | +++ modules/store/dynamic/collections/w3c/dml.xq 2013-10-17 02:02:41 +0000 |
2446 | @@ -1,7 +1,7 @@ |
2447 | xquery version "3.0"; |
2448 | |
2449 | (: |
2450 | - : Copyright 2006-2009 The FLWOR Foundation. |
2451 | + : Copyright 2006-2013 The FLWOR Foundation. |
2452 | : |
2453 | : Licensed under the Apache License, Version 2.0 (the "License"); |
2454 | : you may not use this file except in compliance with the License. |
2455 | @@ -17,30 +17,32 @@ |
2456 | :) |
2457 | |
2458 | (:~ |
2459 | - : This modules provides a set of functions to modify a collection and retrieve the nodes |
2460 | - : contained in a particular collection. |
2461 | - : |
2462 | - : <p>Such collections are identified by a URI as defined in the XQuery specification. |
2463 | - : However, please note that we do not advice users to use collections identified by URIs. |
2464 | - : Instead, we refer to the <a href="../zorba/data_lifecycle.html">data lifecycle |
2465 | - : documentation</a>. It gives an overview over serveral ways to work with collections, |
2466 | - : documents, and other data-structures.</p> |
2467 | + : This modules provides a set of functions to modify a collection and retrieve |
2468 | + : the nodes contained in a particular collection. |
2469 | + : <p/> |
2470 | + : Such collections are identified by a URI as defined in the XQuery |
2471 | + : specification. |
2472 | + : However, please note that we do not advice users to use collections |
2473 | + : identified by URIs. |
2474 | + : Instead, we refer to the |
2475 | + : <a href="../zorba/data_lifecycle.html">data lifecycle documentation</a>. |
2476 | + : It gives an overview of several ways to work with collections, documents, |
2477 | + : and other data-structures. |
2478 | : |
2479 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
2480 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl |
2481 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl |
2482 | - : @see http://www.zorba-xquery.com/modules/store/dynamic/collections/dml |
2483 | + : @see http://zorba.io/modules/store/dynamic/collections/w3c/ddl |
2484 | + : @see http://zorba.io/modules/store/dynamic/collections/ddl |
2485 | + : @see http://zorba.io/modules/store/dynamic/collections/dml |
2486 | : @see http://zorba.io/errors |
2487 | : |
2488 | : @author Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
2489 | - : |
2490 | : @project Zorba/Data Store/Collections/W3C Data Manipulation |
2491 | :) |
2492 | -module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/dml"; |
2493 | - |
2494 | -import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl"; |
2495 | - |
2496 | -import module namespace qdml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; |
2497 | +module namespace dml = "http://zorba.io/modules/store/dynamic/collections/w3c/dml"; |
2498 | + |
2499 | +import module namespace ddl = "http://zorba.io/modules/store/dynamic/collections/w3c/ddl"; |
2500 | + |
2501 | +import module namespace qdml = "http://zorba.io/modules/store/dynamic/collections/dml"; |
2502 | |
2503 | declare namespace zerr = "http://zorba.io/errors"; |
2504 | declare namespace an = "http://zorba.io/annotations"; |
2505 | @@ -48,332 +50,274 @@ |
2506 | declare namespace ver = "http://zorba.io/options/versioning"; |
2507 | declare option ver:module-version "2.0"; |
2508 | |
2509 | -(:~ |
2510 | - : The insert-nodes-first function is an updating function that inserts copies of the |
2511 | - : given nodes at the beginning of the collection. |
2512 | - : |
2513 | - : @param $name The name of the collection to which the nodes should be added. |
2514 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2515 | - : |
2516 | - : @return The result of the function is an empty XDM instance and a pending update list |
2517 | - : which, once applied, inserts the nodes into the collection. |
2518 | - : |
2519 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2520 | - : |
2521 | - :) |
2522 | -declare updating function dml:insert-nodes-first( |
2523 | - $name as xs:string, |
2524 | - $content as node()*) |
2525 | -{ |
2526 | - qdml:insert-nodes-first(ddl:to-qname($name), $content) |
2527 | -}; |
2528 | - |
2529 | -(:~ |
2530 | - : The insert-nodes-last function is an updating function that inserts copies of the |
2531 | - : given nodes at the end of the collection. |
2532 | - : |
2533 | - : @param $name The name of the collection to which the nodes should be added. |
2534 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2535 | - : |
2536 | - : @return The result of the function is an empty XDM instance and a pending update list |
2537 | - : which, once applied, inserts the nodes into the collection. |
2538 | - : |
2539 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2540 | - : |
2541 | - :) |
2542 | -declare updating function dml:insert-nodes-last( |
2543 | - $name as xs:string, |
2544 | - $content as node()*) |
2545 | -{ |
2546 | - qdml:insert-nodes-last(ddl:to-qname($name), $content) |
2547 | -}; |
2548 | - |
2549 | -(:~ |
2550 | - : The insert-nodes-before function is an updating function that inserts |
2551 | - : copies of the given nodes into a collection at the position directly preceding the |
2552 | - : given target node. |
2553 | - : |
2554 | - : @param $name The name of the collection to which the nodes should be added. |
2555 | - : @param $target The node in the collection before which the $content |
2556 | - : sequence should be inserted. |
2557 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2558 | - : |
2559 | - : @return The result of the function is an empty XDM instance and a pending update list |
2560 | - : which, once applied, inserts the nodes into the collection. |
2561 | - : |
2562 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2563 | - : @error zerr:ZDDY0011 if the target node is not contained in the collection. |
2564 | - : |
2565 | - :) |
2566 | -declare updating function dml:insert-nodes-before($name as xs:string, |
2567 | - $target as node(), |
2568 | - $content as node()*) |
2569 | -{ |
2570 | - qdml:insert-nodes-before(ddl:to-qname($name), $target, $content) |
2571 | -}; |
2572 | - |
2573 | -(:~ |
2574 | - : The insert-nodes-after function is an updating function that inserts |
2575 | - : copies of the given nodes into a collection at the position directlry following the |
2576 | - : given target node. |
2577 | - : |
2578 | - : @param $name The name of the collection to which the nodes should be added. |
2579 | - : @param $target The node in the collection after which the $content |
2580 | - : sequence should be inserted. |
2581 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2582 | - : |
2583 | - : @return The result of the function is an empty XDM instance and a pending update list |
2584 | - : which, once applied, inserts the nodes into the collection. |
2585 | - : |
2586 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2587 | - : @error zerr:ZDDY0011 if the target node is not contained in the collection. |
2588 | - : |
2589 | - :) |
2590 | -declare updating function dml:insert-nodes-after($name as xs:string, |
2591 | +(:===========================================================================:) |
2592 | + |
2593 | +(:~ |
2594 | + : Inserts copies of the given nodes at the beginning of the collection. |
2595 | + : |
2596 | + : @param $name The name of the collection to insert into. |
2597 | + : @param $content The sequence of nodes whose copies will be inserted. |
2598 | + : @return An empty XDM instance and a pending update list that, once applied, |
2599 | + : inserts <code>$content</code> into the collection. |
2600 | + : @error zerr:ZDDY0003 if the collection is not available. |
2601 | + :) |
2602 | +declare updating function dml:insert-nodes-first( $name as xs:string, |
2603 | + $content as node()* ) |
2604 | +{ |
2605 | + qdml:insert-first( ddl:to-qname( $name ), $content ) |
2606 | +}; |
2607 | + |
2608 | +(:~ |
2609 | + : Inserts copies of the given nodes at the end of the collection. |
2610 | + : |
2611 | + : @param $name The name of the collection to insert into. |
2612 | + : @param $content The sequence of nodes whose copies will be inserted. |
2613 | + : @return An empty XDM instance and a pending update list that, once applied, |
2614 | + : inserts the nodes into the collection. |
2615 | + : @error zerr:ZDDY0003 if the collection is not available. |
2616 | + :) |
2617 | +declare updating function dml:insert-nodes-last( $name as xs:string, |
2618 | + $content as node()* ) |
2619 | +{ |
2620 | + qdml:insert-last( ddl:to-qname( $name ), $content ) |
2621 | +}; |
2622 | + |
2623 | +(:~ |
2624 | + : Inserts copies of the given nodes into a collection at the position directly |
2625 | + : preceding the given target node. |
2626 | + : |
2627 | + : @param $name The name of the collection to insert into. |
2628 | + : @param $target The node in the collection before which <code>$content</code> |
2629 | + : will be inserted. |
2630 | + : @param $content The sequences of nodes whose copies will be inserted. |
2631 | + : @return An empty XDM instance and a pending update list that, once applied, |
2632 | + : inserts the nodes into the collection. |
2633 | + : @error zerr:ZDDY0003 if the collection is not available. |
2634 | + : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the |
2635 | + : collection. |
2636 | + :) |
2637 | +declare updating function dml:insert-nodes-before( $name as xs:string, |
2638 | + $target as node(), |
2639 | + $content as node()* ) |
2640 | +{ |
2641 | + qdml:insert-before( ddl:to-qname( $name ), $target, $content ) |
2642 | +}; |
2643 | + |
2644 | +(:~ |
2645 | + : Inserts copies of the given nodes into a collection at the position |
2646 | + : directly following the given target node. |
2647 | + : |
2648 | + : @param $name The name of the collection to insert into. |
2649 | + : @param $target The node in the collection after which <code>$content</code> |
2650 | + : will be inserted. |
2651 | + : @param $content The sequence of nodes whose copies will be inserted. |
2652 | + : @return An empty XDM instance and a pending update list that, once applied, |
2653 | + : inserts the nodes into the collection. |
2654 | + : @error zerr:ZDDY0003 if the collection is not available. |
2655 | + : @error zerr:ZDDY0011 if <code>$target</code> node is not contained in the |
2656 | + : collection. |
2657 | + :) |
2658 | +declare updating function dml:insert-nodes-after( $name as xs:string, |
2659 | $pos as node(), |
2660 | - $content as node()*) |
2661 | + $content as node()* ) |
2662 | { |
2663 | - qdml:insert-nodes-after(ddl:to-qname($name), $pos, $content) |
2664 | + qdml:insert-after( ddl:to-qname( $name ), $pos, $content ) |
2665 | }; |
2666 | |
2667 | - |
2668 | (:~ |
2669 | - : This function does the same as the insert-nodes function except |
2670 | - : it immediately applies the resulting pending updates and returns the |
2671 | + : This function does the same as the <code>insert-nodes()</code> function |
2672 | + : except it immediately applies the resulting pending updates and returns the |
2673 | : nodes that have been inserted. |
2674 | : |
2675 | - : @param $name The name of the collection to which the nodes should be added. |
2676 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2677 | - : |
2678 | - : @return The result of the function is the sequence of nodes that have been |
2679 | - : inserted into the collection. |
2680 | - : |
2681 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2682 | - : |
2683 | + : @param $name The name of the collection to insert into. |
2684 | + : @param $content The sequence of nodes whose copies will be inserted. |
2685 | + : @return The sequence of nodes that have been inserted. |
2686 | + : @error zerr:ZDDY0003 if the collection is not available. |
2687 | : @see dml:insert-nodes-first |
2688 | - : |
2689 | :) |
2690 | -declare %an:sequential function dml:apply-insert-nodes-first( |
2691 | - $name as xs:string, |
2692 | - $content as node()*) as node()* |
2693 | +declare %an:sequential function |
2694 | +dml:apply-insert-nodes-first( $name as xs:string, $content as node()* ) |
2695 | + as node()* |
2696 | { |
2697 | - qdml:apply-insert-nodes-first(ddl:to-qname($name), $content) |
2698 | + qdml:apply-insert-first( ddl:to-qname( $name ), $content ) |
2699 | }; |
2700 | |
2701 | (:~ |
2702 | - : This function does the same as the insert-nodes-last function except |
2703 | - : it immediately applies the resulting pending updates and returns the |
2704 | + : This function does the same as the <code>insert-nodes-last()</code> function |
2705 | + : except it immediately applies the resulting pending updates and returns the |
2706 | : nodes that have been inserted. |
2707 | : |
2708 | - : @param $name The name of the collection to which the nodes should be added. |
2709 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2710 | - : |
2711 | - : @return The result of the function is the sequence of nodes that have been |
2712 | - : inserted into the collection. |
2713 | - : |
2714 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2715 | - : |
2716 | + : @param $name The name of the collection to insert into. |
2717 | + : @param $content The sequence of nodes whose copies will be inserted. |
2718 | + : @return The sequence of nodes that have been inserted. |
2719 | + : @error zerr:ZDDY0003 if the collection is not available. |
2720 | : @see dml:insert-nodes-last |
2721 | - : |
2722 | :) |
2723 | -declare %an:sequential function dml:apply-insert-nodes-last( |
2724 | - $name as xs:string, |
2725 | - $content as node()*) as node()* |
2726 | +declare %an:sequential function |
2727 | +dml:apply-insert-nodes-last( $name as xs:string, $content as node()* ) |
2728 | + as node()* |
2729 | { |
2730 | - qdml:apply-insert-nodes-last(ddl:to-qname($name), $content) |
2731 | + qdml:apply-insert-last( ddl:to-qname( $name ), $content ) |
2732 | }; |
2733 | |
2734 | (:~ |
2735 | - : This function does the same as the insert-nodes-before function except |
2736 | - : it immediately applies the resulting pending updates and returns the |
2737 | - : nodes that have been inserted. |
2738 | - : |
2739 | - : @param $name The name of the collection to which the nodes should be added. |
2740 | - : @param $target The node in the collection before which the $content |
2741 | - : sequence should be inserted. |
2742 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2743 | - : |
2744 | - : @return The result of the function is the sequence of nodes that have been |
2745 | - : inserted into the collection. |
2746 | - : |
2747 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2748 | - : |
2749 | + : This function does the same as the <code>insert-nodes-before()</code> |
2750 | + : function except it immediately applies the resulting pending updates and |
2751 | + : returns the nodes that have been inserted. |
2752 | + : |
2753 | + : @param $name The name of the collection to insert into. |
2754 | + : @param $target The node in the collection before which <code>$content</code> |
2755 | + : will be inserted. |
2756 | + : @param $content The sequence of nodes whose copies will be inserted. |
2757 | + : @return The sequence of nodes that have been inserted. |
2758 | + : @error zerr:ZDDY0003 if the collection is not available. |
2759 | : @see dml:insert-nodes-before |
2760 | - : |
2761 | :) |
2762 | -declare %an:sequential function dml:apply-insert-nodes-before( |
2763 | - $name as xs:string, |
2764 | - $target as node(), |
2765 | - $content as node()*) as node()* |
2766 | +declare %an:sequential function |
2767 | +dml:apply-insert-nodes-before( $name as xs:string, |
2768 | + $target as node(), |
2769 | + $content as node()* ) |
2770 | + as node()* |
2771 | { |
2772 | - qdml:apply-insert-nodes-before(ddl:to-qname($name), $target, $content) |
2773 | + qdml:apply-insert-before( ddl:to-qname( $name ), $target, $content ) |
2774 | }; |
2775 | |
2776 | (:~ |
2777 | - : This function does the same as the insert-nodes-after function except |
2778 | - : it immediately applies the resulting pending updates and returns the |
2779 | - : nodes that have been inserted. |
2780 | - : |
2781 | - : @param $name The name of the collection to which the nodes should be added. |
2782 | - : @param $target The node in the collection after which the $content |
2783 | - : sequence should be inserted. |
2784 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
2785 | - : |
2786 | - : @return The result of the function is the sequence of nodes that have been |
2787 | - : inserted into the collection. |
2788 | - : |
2789 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
2790 | - : |
2791 | + : This function does the same as the <code>insert-nodes-after()</code> |
2792 | + : function except it immediately applies the resulting pending updates and |
2793 | + : returns the nodes that have been inserted. |
2794 | + : |
2795 | + : @param $name The name of the collection to insert into. |
2796 | + : @param $target The node in the collection after which <code>$content</code> |
2797 | + : will be inserted. |
2798 | + : @param $content The sequence of nodes whose copies will be inserted. |
2799 | + : @return The sequence of nodes that have been inserted. |
2800 | + : @error zerr:ZDDY0003 if the collection is not available. |
2801 | : @see dml:insert-nodes-after |
2802 | - : |
2803 | - :) |
2804 | -declare %an:sequential function dml:apply-insert-nodes-after( |
2805 | - $name as xs:string, |
2806 | - $pos as node(), |
2807 | - $content as node()*) as node()* |
2808 | -{ |
2809 | - qdml:apply-insert-nodes-after(ddl:to-qname($name), $pos, $content) |
2810 | -}; |
2811 | - |
2812 | -(:~ |
2813 | - : The delete-nodes function is an updating function that deletes zero of more |
2814 | - : nodes from a collection. |
2815 | - : |
2816 | - : @param $target the nodes in the collection that should be deleted. |
2817 | - : |
2818 | - : @return The result of this function is an empty XDM instance and a pending update |
2819 | - : list which, once applied, deletes the nodes from their collections. |
2820 | - : |
2821 | - : @error zerr:ZDDY0011 if any nodes in the $target sequence is not a member of a collection |
2822 | - : or not all nodes of the $target sequence belong to the same collection. |
2823 | - : the collection identified by the $name parameter. |
2824 | - : |
2825 | - :) |
2826 | -declare updating function dml:delete-nodes($target as node()*) |
2827 | -{ |
2828 | - qdml:delete-nodes($target) |
2829 | -}; |
2830 | - |
2831 | -(:~ |
2832 | - : The delete-node-first function is an updating function that deletes the |
2833 | - : first node from a collection. |
2834 | - : |
2835 | - : @param $name The name of the collection from which the first node should be deleted. |
2836 | - : |
2837 | - : @return The result of this function is an empty XDM instance and a pending update |
2838 | - : list which, once applied, deletes the first node from the collection. |
2839 | - : |
2840 | - : @error zerr:ZDDY0011 if the collection doesn't contain any node. |
2841 | - : |
2842 | - :) |
2843 | -declare updating function dml:delete-node-first($name as xs:string) |
2844 | -{ |
2845 | - qdml:delete-node-first(ddl:to-qname($name)) |
2846 | -}; |
2847 | - |
2848 | -(:~ |
2849 | - : The delete-nodes-first function is an updating function that deletes the |
2850 | - : first n nodes from a collection. |
2851 | - : |
2852 | - : @param $name The name of the collection from which the first node should be deleted. |
2853 | - : @param $number The number of nodes that should be removed from the beginning of |
2854 | - : the collection. |
2855 | - : |
2856 | - : @return The result of this function is an empty XDM instance and a pending update |
2857 | - : list which, once applied, deletes the nodes from the collection. |
2858 | - : |
2859 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes. |
2860 | - :) |
2861 | -declare updating function dml:delete-nodes-first( |
2862 | - $name as xs:string, |
2863 | - $number as xs:integer) |
2864 | -{ |
2865 | - qdml:delete-nodes-first(ddl:to-qname($name), $number) |
2866 | -}; |
2867 | - |
2868 | -(:~ |
2869 | - : The delete-node-last function is an updating function that deletes the |
2870 | - : last node from a collection. |
2871 | - : |
2872 | - : @param $name The name of the collection from which the first node should be deleted. |
2873 | - : |
2874 | - : @return The result of this function is an empty XDM instance and a pending update |
2875 | - : list which, once applied, deletes the last node from the collection. |
2876 | - : |
2877 | - : @error zerr:ZDDY0009 If available collections does not provide a mapping |
2878 | - : for the URI $name. |
2879 | - : @error zerr:ZDDY0011 if the collection doesn't contain any node. |
2880 | - :) |
2881 | -declare updating function dml:delete-node-last($name as xs:string) |
2882 | -{ |
2883 | - qdml:delete-node-last(ddl:to-qname($name)) |
2884 | -}; |
2885 | - |
2886 | -(:~ |
2887 | - : The delete-nodes-last function is an updating function that deletes the |
2888 | - : last n nodes from an ordered collection. |
2889 | - : |
2890 | - : @param $name The name of the collection from which the first node should be deleted. |
2891 | - : @param $number The number of nodes to delete. |
2892 | - : |
2893 | - : @return The result of this function is an empty XDM instance and a pending update |
2894 | - : list which, once applied, deletes the last n nodes. |
2895 | - : |
2896 | - : @error zerr:ZDDY0009 If available collections does not provide a mapping |
2897 | - : for the URI $name. |
2898 | - : @error zerr:ZDDY0011 if the collection doesn't contain the given number of nodes. |
2899 | - :) |
2900 | -declare updating function dml:delete-nodes-last( |
2901 | - $name as xs:string, |
2902 | - $number as xs:integer) |
2903 | -{ |
2904 | - qdml:delete-nodes-last(ddl:to-qname($name), $number) |
2905 | -}; |
2906 | - |
2907 | -(:~ |
2908 | - : The index-of function return the index of the given node in the collection. |
2909 | - : |
2910 | - : @param node The node to retrieve the index from. |
2911 | - : |
2912 | - : @return Returns the position as xs:integer of the given node in the collection. |
2913 | - : |
2914 | - : @error zerr:ZDDY0011 if node is not contained in any collection. |
2915 | - : |
2916 | - :) |
2917 | -declare function dml:index-of($node as node()) as xs:integer |
2918 | -{ |
2919 | - qdml:index-of($node) |
2920 | -}; |
2921 | - |
2922 | -(:~ |
2923 | - : The collection function returns the sequence of nodes of the collection |
2924 | - : identified by the given name. |
2925 | + :) |
2926 | +declare %an:sequential function |
2927 | +dml:apply-insert-nodes-after( $name as xs:string, |
2928 | + $pos as node(), |
2929 | + $content as node()* ) |
2930 | + as node()* |
2931 | +{ |
2932 | + qdml:apply-insert-after( ddl:to-qname( $name ), $pos, $content ) |
2933 | +}; |
2934 | + |
2935 | +(:~ |
2936 | + : Gets the sequence of nodes of the collection identified by the given name. |
2937 | : |
2938 | : @param $name The name of the collection. |
2939 | - : |
2940 | : @return The sequence contained in the given collection. |
2941 | - : |
2942 | - : @error zerr:ZDDY0009 If available collections does not provide a mapping |
2943 | - : for the URI $name. |
2944 | - : |
2945 | - :) |
2946 | -declare function dml:collection($name as xs:string) as node()* |
2947 | -{ |
2948 | - qdml:collection(ddl:to-qname($name)) |
2949 | -}; |
2950 | - |
2951 | -(:~ |
2952 | - : This function returns the name of the collection the given node belongs |
2953 | - : to. |
2954 | - : |
2955 | - : @param $node The node for which to get the name of the collection |
2956 | - : @return The result of this function is a URI which identifies the collection |
2957 | - : to which the given node belongs to. |
2958 | - : |
2959 | - : @error zerr:ZDDY0011 if the given node does not belong to a collection. |
2960 | - : |
2961 | - :) |
2962 | -declare function dml:collection-name($node as node()) as xs:string |
2963 | -{ |
2964 | - ddl:from-qname(qdml:collection-name($node)) |
2965 | -}; |
2966 | + : @error zerr:ZDDY0003 if the collection is not available. |
2967 | + :) |
2968 | +declare function dml:collection( $name as xs:string ) |
2969 | + as node()* |
2970 | +{ |
2971 | + qdml:collection( ddl:to-qname( $name ) ) |
2972 | +}; |
2973 | + |
2974 | +(:~ |
2975 | + : Gets the name of the collection the given node belongs to. |
2976 | + : |
2977 | + : @param $node The node for which to get the name of the collection. |
2978 | + : @return The URI of the collection to which <code>$node</code> belongs. |
2979 | + : @error zerr:ZDDY0011 if <code>$node</code> does not belong to a collection. |
2980 | + :) |
2981 | +declare function dml:collection-name( $node as node() ) |
2982 | + as xs:string |
2983 | +{ |
2984 | + ddl:from-qname( qdml:collection-name( $node ) ) |
2985 | +}; |
2986 | + |
2987 | +(:~ |
2988 | + : Deletes nodes from a collection. |
2989 | + : |
2990 | + : @param $nodes the nodes in the collection that should be deleted. |
2991 | + : @return An empty XDM instance and a pending update list that, once applied, |
2992 | + : deletes the nodes from their collections. |
2993 | + : @error zerr:ZDDY0011 if any nodes are not a member of a collection or not |
2994 | + : all nodes of belong to the same collection. |
2995 | + :) |
2996 | +declare updating function dml:delete-nodes( $nodes as node()* ) |
2997 | +{ |
2998 | + qdml:delete( $nodes ) |
2999 | +}; |
3000 | + |
3001 | +(:~ |
3002 | + : Deletes the first node from a collection. |
3003 | + : |
3004 | + : @param $name The name of the collection to delete from. |
3005 | + : @return An empty XDM instance and a pending update list that, once applied, |
3006 | + : deletes the first node from the collection. |
3007 | + : @error zerr:ZDDY0011 if the collection is empty. |
3008 | + :) |
3009 | +declare updating function dml:delete-node-first( $name as xs:string ) |
3010 | +{ |
3011 | + qdml:delete-first( ddl:to-qname( $name ) ) |
3012 | +}; |
3013 | + |
3014 | +(:~ |
3015 | + : Deletes the first <i>N</i> nodes from a collection. |
3016 | + : |
3017 | + : @param $name The name of the collection to delete from. |
3018 | + : @param $number The number of nodes to delete. |
3019 | + : @return An empty XDM instance and a pending update list that, once applied, |
3020 | + : deletes the nodes from the collection. |
3021 | + : @error zerr:ZDDY0011 if the collection contains less than |
3022 | + : <code>$number</code> items. |
3023 | + :) |
3024 | +declare updating function dml:delete-nodes-first( $name as xs:string, |
3025 | + $number as xs:integer ) |
3026 | +{ |
3027 | + qdml:delete-first( ddl:to-qname( $name ), $number ) |
3028 | +}; |
3029 | + |
3030 | +(:~ |
3031 | + : Deletes the last node from a collection. |
3032 | + : |
3033 | + : @param $name The name of the collection to delete from. |
3034 | + : @return An empty XDM instance and a pending update list that, once applied, |
3035 | + : deletes the last node from the collection. |
3036 | + : @error zerr:ZDDY0003 if the collection is not available. |
3037 | + : @error zerr:ZDDY0011 if the collection is empty. |
3038 | + :) |
3039 | +declare updating function dml:delete-node-last( $name as xs:string ) |
3040 | +{ |
3041 | + qdml:delete-last( ddl:to-qname( $name ) ) |
3042 | +}; |
3043 | + |
3044 | +(:~ |
3045 | + : Deletes the last <i>N</i> nodes from a collection. |
3046 | + : |
3047 | + : @param $name The name of the collection to delete from. |
3048 | + : @param $number The number of nodes to delete. |
3049 | + : @return An empty XDM instance and a pending update list that, once applied, |
3050 | + : deletes the last n nodes. |
3051 | + : @error zerr:ZDDY0003 if the collection is not available. |
3052 | + : @error zerr:ZDDY0011 if the collection contains less than |
3053 | + : <code>$number</code> items. |
3054 | + :) |
3055 | +declare updating function dml:delete-nodes-last( $name as xs:string, |
3056 | + $number as xs:integer ) |
3057 | +{ |
3058 | + qdml:delete-last( ddl:to-qname( $name ), $number ) |
3059 | +}; |
3060 | + |
3061 | +(:~ |
3062 | + : Gets the index of the given node in the collection. |
3063 | + : |
3064 | + : @param $node The node to get the index of. |
3065 | + : @return Returns the position of <code>$node</code> in the collection. |
3066 | + : @error zerr:ZDDY0011 if <code>$node</code> is not contained in any |
3067 | + : collection. |
3068 | + :) |
3069 | +declare function dml:index-of( $node as node() ) |
3070 | + as xs:integer |
3071 | +{ |
3072 | + qdml:index-of( $node ) |
3073 | +}; |
3074 | + |
3075 | +(:===========================================================================:) |
3076 | + |
3077 | +(: vim:set et sw=2 ts=2: :) |
3078 | |
3079 | === renamed directory 'modules/com/zorba-xquery/www/modules/store/static' => 'modules/store/static' |
3080 | === modified file 'modules/store/static/collections/ddl.xq' |
3081 | --- modules/com/zorba-xquery/www/modules/store/static/collections/ddl.xq 2013-09-26 23:15:11 +0000 |
3082 | +++ modules/store/static/collections/ddl.xq 2013-10-17 02:02:41 +0000 |
3083 | @@ -1,7 +1,7 @@ |
3084 | xquery version "3.0"; |
3085 | |
3086 | (: |
3087 | - : Copyright 2006-2009 The FLWOR Foundation. |
3088 | + : Copyright 2006-2013 The FLWOR Foundation. |
3089 | : |
3090 | : Licensed under the Apache License, Version 2.0 (the "License"); |
3091 | : you may not use this file except in compliance with the License. |
3092 | @@ -17,146 +17,128 @@ |
3093 | :) |
3094 | |
3095 | (:~ |
3096 | - : This modules defines a set of functions for managing collections which are |
3097 | + : This modules defines a set of functions for managing collections that are |
3098 | : declared in the prolog of a module. |
3099 | - : For example, it provides functions to create, delete, or introspect collections. |
3100 | - : |
3101 | - : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data |
3102 | + : For example, it provides functions to create, delete, or introspect |
3103 | + : collections. |
3104 | + : <p/> |
3105 | + : This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data |
3106 | : Definition Facility</a>. All the collections managed by this module |
3107 | : have to be pre-declared in the prolog of a module. Please refer to the |
3108 | : <a href="../zorba/data_lifecycle.html">general documentation</a> |
3109 | - : for more information and examples.</p> |
3110 | + : for more information and examples. |
3111 | : |
3112 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
3113 | : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a> |
3114 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/dml |
3115 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl |
3116 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml |
3117 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl |
3118 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml |
3119 | + : @see http://zorba.io/modules/store/static/collections/dml |
3120 | + : @see http://zorba.io/modules/store/static/indexes/ddl |
3121 | + : @see http://zorba.io/modules/store/static/indexes/dml |
3122 | + : @see http://zorba.io/modules/store/static/integrity-constraints/ddl |
3123 | + : @see http://zorba.io/modules/store/static/integrity-constraints/dml |
3124 | : @see http://zorba.io/errors |
3125 | : |
3126 | : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
3127 | - : |
3128 | : @project Zorba/Data Store/Collections/Static Data Definition |
3129 | - : |
3130 | :) |
3131 | -module namespace cddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; |
3132 | +module namespace cddl = "http://zorba.io/modules/store/static/collections/ddl"; |
3133 | |
3134 | declare namespace zerr = "http://zorba.io/errors"; |
3135 | declare namespace ver = "http://zorba.io/options/versioning"; |
3136 | declare option ver:module-version "2.0"; |
3137 | |
3138 | - |
3139 | -(:~ |
3140 | - : The create function is an updating function which creates |
3141 | - : the collection with the given expanded QName. |
3142 | - : |
3143 | - : @param $name The QName of the collection to create. |
3144 | - : |
3145 | - : @return The result of the function is an empty XDM instance and a |
3146 | - : pending update list which, once applied, creates a collection |
3147 | - : with the given name. |
3148 | - : |
3149 | - : @error zerr:ZDDY0001 if the expanded QName $name is not equal |
3150 | - : to any of the declared collections in the static context. |
3151 | - : @error zerr:ZDDY0002 if a collection with the given expanded QName already |
3152 | - : exists. |
3153 | - : |
3154 | - :) |
3155 | -declare updating function cddl:create($name as xs:QName) external; |
3156 | - |
3157 | - |
3158 | -(:~ |
3159 | - : The create function is an updating function which creates |
3160 | - : the collection with the given expanded QName. Moreover, it adds copies |
3161 | - : of the sequence $content to the new collection. |
3162 | - : |
3163 | - : @param $name The QName of the collection to create. |
3164 | - : @param $content The sequences of items (nodes and/or json items) that should |
3165 | - : be added to the new collection. |
3166 | - : |
3167 | - : @return The result of the function is an empty XDM instance and a |
3168 | - : pending update list which, once applied, creates a collection |
3169 | - : with the given name and inserts the given items into it. |
3170 | - : |
3171 | - : @error zerr:ZDDY0001 if the expanded QName $name is not equal |
3172 | - : to any of the declared collections in the static context. |
3173 | - : @error zerr:ZDDY0002 if a collection with the given expanded QName already |
3174 | - : exists. |
3175 | - : @error zerr:ZDTY0001 if $content does not match the expected type |
3176 | - : (i.e. declared by the collection) according to the rules |
3177 | - : for SequenceType Matching. |
3178 | - : |
3179 | - :) |
3180 | -declare updating function cddl:create($name as xs:QName, $content as item()*) external; |
3181 | - |
3182 | - |
3183 | -(:~ |
3184 | - : The delete function is an updating function that deletes |
3185 | - : the collection with the given expanded QName. |
3186 | - : |
3187 | - : @param $name The QName of the collection to delete. |
3188 | - : |
3189 | - : @return The result of the function is an empty XDM instance and a pending |
3190 | - : update list which, once applied, deletes the collection with the given |
3191 | - : name. |
3192 | - : |
3193 | - : @error zerr:ZDDY0001 if the expanded QName $name is not equal |
3194 | - : to any of the declared collections in the static context. |
3195 | - : @error zerr:ZDDY0003 if the expanded QName $name is not equal |
3196 | - : to any of the available collections. |
3197 | - : @error zerr:ZDDY0015 if any of the in-scope variables references an item that |
3198 | - : belongs to the collection with QName $name. |
3199 | +(:===========================================================================:) |
3200 | + |
3201 | +(:~ |
3202 | + : Gets the QNames of the collections that have been statically declared and |
3203 | + : are available, if any. |
3204 | +: |
3205 | + : @return A sequence comprising one QName for each statically declared and |
3206 | + : available collection or an emtpy sequence if no such collections are |
3207 | + : available. |
3208 | + :) |
3209 | +declare function cddl:available-collections() |
3210 | + as xs:QName* external; |
3211 | + |
3212 | +(:~ |
3213 | + : Creates a collection. |
3214 | + : |
3215 | + : @param $name The of the collection to create. |
3216 | + : @return An empty XDM instance and a pending update list that, once applied, |
3217 | + : creates a collection with the given name. |
3218 | + : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the |
3219 | + : declared collections in the static context. |
3220 | + : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists. |
3221 | + :) |
3222 | +declare updating function cddl:create( $name as xs:QName ) external; |
3223 | + |
3224 | +(:~ |
3225 | + : Creates a collection and adds the given sequence as content to the new |
3226 | + : collection. |
3227 | + : |
3228 | + : @param $name The name of the collection to create. |
3229 | + : @param $content The sequences of items (nodes or JSON items) to be added to |
3230 | + : the new collection. |
3231 | + : @return An empty XDM instance and a pending update list that, once applied, |
3232 | + : creates a collection with the given name and inserts the given items into |
3233 | + : it. |
3234 | + : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the |
3235 | + : declared collections in the static context. |
3236 | + : @error zerr:ZDDY0002 if a collection with <code>$name</code> already exists. |
3237 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3238 | + : type declared by the collection according to the rules for SequenceType |
3239 | + : Matching. |
3240 | + :) |
3241 | +declare updating function cddl:create( $name as xs:QName, |
3242 | + $content as item()* ) |
3243 | + external; |
3244 | + |
3245 | +(:~ |
3246 | + : Gets the collections that have been declared in the prolog of the static |
3247 | + : context. |
3248 | + : |
3249 | + : @return A sequence of QNames, one for each collection created in the static |
3250 | + : context, or an emtpy sequence. |
3251 | + :) |
3252 | +declare function cddl:declared-collections() |
3253 | + as xs:QName* external; |
3254 | + |
3255 | +(:~ |
3256 | + : Deletes a collection. |
3257 | + : |
3258 | + : @param $name The collection to delete. |
3259 | + : @return An empty XDM instance and a pending update list that, once applied, |
3260 | + : deletes the collection with the given name. |
3261 | + : @error zerr:ZDDY0001 if <code>$name</code> is not equal to any of the |
3262 | + : declared collections in the static context. |
3263 | + : @error zerr:ZDDY0003 if the collection identified by <code>$name</code> is |
3264 | + : not available. |
3265 | : @error zerr:ZDDY0013 if the domain or key expression of any of the available |
3266 | - : indexes access the collection with name $name. |
3267 | - : |
3268 | - :) |
3269 | -declare updating function cddl:delete($name as xs:QName) external; |
3270 | - |
3271 | - |
3272 | -(:~ |
3273 | - : The function returns true if a collection with the given QName is |
3274 | - : statically declared and available (i.e. has been created). |
3275 | - : |
3276 | - : @param $name The QName of the collection that is being checked. |
3277 | - : |
3278 | - : @return true if the collection is statically declared and available, |
3279 | - : false otherwise. |
3280 | - : |
3281 | - :) |
3282 | -declare function cddl:is-available-collection($name as xs:QName) as xs:boolean external; |
3283 | - |
3284 | - |
3285 | -(:~ |
3286 | - : The function returns a sequence of QNames of the collections that are |
3287 | - : statically declared and available. The sequence will be empty if there |
3288 | - : are no such collections. |
3289 | - : |
3290 | - : @return A sequence of QNames, one for each statically declared and available |
3291 | - : collection, or an emtpy sequence. |
3292 | - : |
3293 | - :) |
3294 | -declare function cddl:available-collections() as xs:QName* external; |
3295 | - |
3296 | - |
3297 | -(:~ |
3298 | - : The function returns true if a collection with the given |
3299 | - : QName is declared in the prolog of the static context. |
3300 | - : |
3301 | - : @param $name The QName of the collection that is being checked. |
3302 | - : |
3303 | - : @return true if the collection is declared or false otherwise. |
3304 | - : |
3305 | - :) |
3306 | -declare function cddl:is-declared-collection($name as xs:QName) as xs:boolean external; |
3307 | - |
3308 | - |
3309 | -(:~ |
3310 | - : The function returns a sequence of QNames representing the collections that have |
3311 | - : been declared in the prolog of the static context. |
3312 | - : |
3313 | - : @return A sequence of QNames, one for each created collection, or an emtpy sequence. |
3314 | - : |
3315 | - :) |
3316 | -declare function cddl:declared-collections() as xs:QName* external; |
3317 | + : indexes access the collection having <code>$name</code>. |
3318 | + : @error zerr:ZDDY0015 if any of the in-scope variables references an item |
3319 | + : that belongs to the collection having <code>$name</code> |
3320 | + :) |
3321 | +declare updating function cddl:delete( $name as xs:QName ) |
3322 | + external; |
3323 | + |
3324 | +(:~ |
3325 | + : Gets whether a collection is statically declared and available. |
3326 | + : |
3327 | + : @param $name The name of the collection to check. |
3328 | + : @return true if the collection was statically declared and is available; |
3329 | + : false otherwise. |
3330 | + :) |
3331 | +declare function cddl:is-available-collection( $name as xs:QName ) |
3332 | + as xs:boolean external; |
3333 | + |
3334 | +(:~ |
3335 | + : Gers whether a collection was declared in the prolog of the static context. |
3336 | + : |
3337 | + : @param $name The name of the collection to check. |
3338 | + : @return true if the collection was declared; false otherwise. |
3339 | + :) |
3340 | +declare function cddl:is-declared-collection( $name as xs:QName ) |
3341 | + as xs:boolean external; |
3342 | + |
3343 | +(:===========================================================================:) |
3344 | + |
3345 | +(: vim:set et sw=2 ts=2: :) |
3346 | |
3347 | === modified file 'modules/store/static/collections/dml.xq' |
3348 | --- modules/com/zorba-xquery/www/modules/store/static/collections/dml.xq 2013-09-26 23:15:11 +0000 |
3349 | +++ modules/store/static/collections/dml.xq 2013-10-17 02:02:41 +0000 |
3350 | @@ -1,7 +1,7 @@ |
3351 | xquery version "3.0"; |
3352 | |
3353 | (: |
3354 | - : Copyright 2006-2009 The FLWOR Foundation. |
3355 | + : Copyright 2006-2013 The FLWOR Foundation. |
3356 | : |
3357 | : Licensed under the Apache License, Version 2.0 (the "License"); |
3358 | : you may not use this file except in compliance with the License. |
3359 | @@ -17,30 +17,30 @@ |
3360 | :) |
3361 | |
3362 | (:~ |
3363 | - : This modules provides a set of functions to modify a collection and retrieve the items |
3364 | - : contained in a particular collection. |
3365 | - : |
3366 | - : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data |
3367 | - : Definition Facility</a>. All the collections managed by this module |
3368 | - : have to be pre-declared in the prolog of a module. Please refer to the |
3369 | + : This modules provides a set of functions to modify a collection |
3370 | + : and retrieve the items contained in a particular collection. |
3371 | + : <p/> |
3372 | + : This module is part of |
3373 | + : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>. |
3374 | + : All the collections managed by this module have to be pre-declared in the |
3375 | + : prolog of a module. |
3376 | + : Please refer to the |
3377 | : <a href="../zorba/data_lifecycle.html">general documentation</a> |
3378 | - : for more information and examples.</p> |
3379 | + : for more information and examples. |
3380 | : |
3381 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
3382 | : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a> |
3383 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl |
3384 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl |
3385 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml |
3386 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl |
3387 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml |
3388 | + : @see http://zorba.io/modules/store/static/collections/ddl |
3389 | + : @see http://zorba.io/modules/store/static/indexes/ddl |
3390 | + : @see http://zorba.io/modules/store/static/indexes/dml |
3391 | + : @see http://zorba.io/modules/store/static/integrity-constraints/ddl |
3392 | + : @see http://zorba.io/modules/store/static/integrity-constraints/dml |
3393 | : @see http://zorba.io/errors |
3394 | : |
3395 | : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
3396 | - : |
3397 | : @project Zorba/Data Store/Collections/Static Data Manipulation |
3398 | - : |
3399 | :) |
3400 | -module namespace cdml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
3401 | +module namespace cdml = "http://zorba.io/modules/store/static/collections/dml"; |
3402 | |
3403 | declare namespace an = "http://zorba.io/annotations"; |
3404 | declare namespace zerr = "http://zorba.io/errors"; |
3405 | @@ -48,923 +48,430 @@ |
3406 | declare namespace ver = "http://zorba.io/options/versioning"; |
3407 | declare option ver:module-version "2.0"; |
3408 | |
3409 | - |
3410 | -(:~ |
3411 | - : The insert-nodes function is an updating function that inserts copies of the |
3412 | - : given nodes into a collection. |
3413 | - : Please note that the insertion position of the nodes in the collection is |
3414 | - : not defined. |
3415 | - : |
3416 | - : @param $name The name of the collection to which the nodes should be added. |
3417 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3418 | - : |
3419 | - : @return The result of the function is an empty XDM instance and a pending update list |
3420 | - : which, once applied, inserts the nodes into the collection. |
3421 | - : |
3422 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3423 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3424 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3425 | - : const, or queue. |
3426 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3427 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3428 | - : |
3429 | - : @deprecated please use the cdml:insert#2 function |
3430 | - : |
3431 | - :) |
3432 | -declare updating function |
3433 | -cdml:insert-nodes($name as xs:QName, $content as node()*) external; |
3434 | - |
3435 | - |
3436 | -(:~ |
3437 | - : The insert function is an updating function that inserts copies of the given |
3438 | - : items (nodes and/or json items) into a collection. Please note that the |
3439 | - : insertion position of the items in the collection is not defined. |
3440 | - : |
3441 | - : @param $name The name of the collection to which the items should be added. |
3442 | - : @param $content The sequences of items whose copies should be added to the collection. |
3443 | - : |
3444 | - : @return The result of the function is an empty XDM instance and a pending update list |
3445 | - : which, once applied, inserts the items into the collection. |
3446 | - : |
3447 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3448 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3449 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3450 | - : const, or queue. |
3451 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3452 | - : in the collection declaration) according to the rules for SequenceType |
3453 | - : Matching. |
3454 | - : |
3455 | - :) |
3456 | -declare updating function |
3457 | -cdml:insert($name as xs:QName, $content as item()*) external; |
3458 | - |
3459 | - |
3460 | -(:~ |
3461 | - : The insert-nodes-first function is an updating function that inserts copies |
3462 | - : of the given nodes at the beginning of a collection. |
3463 | - : |
3464 | - : @param $name The name of the collection to which the nodes should be added. |
3465 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3466 | - : |
3467 | - : @return The result of the function is an empty XDM instance and a pending update list |
3468 | - : which, once applied, inserts the nodes into the collection. |
3469 | - : |
3470 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3471 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3472 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3473 | - : const, or queue. |
3474 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3475 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3476 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3477 | - : |
3478 | - : @deprecated please use the cdml:insert-first#2 function |
3479 | - : |
3480 | - :) |
3481 | -declare updating function |
3482 | -cdml:insert-nodes-first($name as xs:QName, $content as node()*) external; |
3483 | - |
3484 | - |
3485 | -(:~ |
3486 | - : The insert-first function is an updating function that inserts copies of the |
3487 | - : given items (nodes and/or json items) at the beginning of a collection. |
3488 | - : |
3489 | - : @param $name The name of the collection to which the items should be added. |
3490 | - : @param $content The sequences of items whose copies should be added to the collection. |
3491 | - : |
3492 | - : @return The result of the function is an empty XDM instance and a pending update list |
3493 | - : which, once applied, inserts the items into the collection. |
3494 | - : |
3495 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3496 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3497 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3498 | - : const, or queue. |
3499 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3500 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3501 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3502 | - : |
3503 | - :) |
3504 | -declare updating function |
3505 | -cdml:insert-first($name as xs:QName, $content as item()*) external; |
3506 | - |
3507 | - |
3508 | -(:~ |
3509 | - : The insert-nodes-last function is an updating function that inserts |
3510 | - : copies of the given nodes at the end of a collection. |
3511 | - : |
3512 | - : @param $name The name of the collection to which the nodes should be added. |
3513 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3514 | - : |
3515 | - : @return The result of the function is an empty XDM instance and a pending update list |
3516 | - : which, once applied, inserts the nodes into the collection. |
3517 | - : |
3518 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3519 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3520 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const. |
3521 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3522 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3523 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3524 | - : |
3525 | - : @deprecated please use the cdml:insert-last#2 function |
3526 | - : |
3527 | - :) |
3528 | -declare updating function |
3529 | -cdml:insert-nodes-last($name as xs:QName, $content as node()*) external; |
3530 | - |
3531 | - |
3532 | -(:~ |
3533 | - : The insert-last function is an updating function that inserts copies of the |
3534 | - : given items (nodes and/or json items) at the end of a collection. |
3535 | - : |
3536 | - : @param $name The name of the collection to which the items should be added. |
3537 | - : @param $content The sequences of itemss whose copies should be added to the collection. |
3538 | - : |
3539 | - : @return The result of the function is an empty XDM instance and a pending update list |
3540 | - : which, once applied, inserts the items into the collection. |
3541 | - : |
3542 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3543 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3544 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const. |
3545 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3546 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3547 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3548 | - : |
3549 | - :) |
3550 | -declare updating function |
3551 | -cdml:insert-last($name as xs:QName, $content as item()*) external; |
3552 | - |
3553 | - |
3554 | -(:~ |
3555 | - : The insert-nodes-before function is an updating function that inserts |
3556 | - : copies of the given nodes into a collection at the position directly preceding the |
3557 | - : given target node. |
3558 | - : |
3559 | - : @param $name The name of the collection to which the nodes should be added. |
3560 | - : @param $target The node in the collection before which the $content |
3561 | - : sequence should be inserted. |
3562 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3563 | - : |
3564 | - : @return The result of the function is an empty XDM instance and a pending update list |
3565 | - : which, once applied, inserts the nodes into the collection. |
3566 | - : |
3567 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3568 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3569 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
3570 | - : append-only, or queue. |
3571 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3572 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3573 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3574 | - : @error zerr:ZDDY0011 if the $target node is not a node that is contained in |
3575 | - : the collection $name. |
3576 | - : |
3577 | - : @deprecated please use the cdml:insert-before#3 function |
3578 | - : |
3579 | - :) |
3580 | -declare updating function |
3581 | -cdml:insert-nodes-before( |
3582 | - $name as xs:QName, |
3583 | - $target as node(), |
3584 | - $content as node()*) external; |
3585 | - |
3586 | - |
3587 | -(:~ |
3588 | - : The insert-before function is an updating function that inserts copies of the |
3589 | - : given items (nodes and/or json items) into a collection at the position |
3590 | - : directly preceding the given target item. |
3591 | - : |
3592 | - : @param $name The name of the collection to which the items should be added. |
3593 | - : @param $target The item in the collection before which the $content |
3594 | - : sequence should be inserted. |
3595 | - : @param $content The sequences of items whose copies should be added to the collection. |
3596 | - : |
3597 | - : @return The result of the function is an empty XDM instance and a pending update list |
3598 | - : which, once applied, inserts the items into the collection. |
3599 | - : |
3600 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3601 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3602 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
3603 | - : append-only, or queue. |
3604 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3605 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3606 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3607 | - : @error zerr:ZDDY0011 if the $target item is not an item that is contained in |
3608 | - : the collection $name. |
3609 | - : |
3610 | - :) |
3611 | -declare updating function |
3612 | -cdml:insert-before($name as xs:QName, $target as item(), $content as item()*) external; |
3613 | - |
3614 | - |
3615 | -(:~ |
3616 | - : The insert-nodes-after function is an updating function that inserts |
3617 | - : copies of the given nodes into a collection at the position directlry following the |
3618 | - : given target node. |
3619 | - : |
3620 | - : @param $name The name of the collection to which the nodes should be added. |
3621 | - : @param $target The node in the collection after which the $content |
3622 | - : sequence should be inserted. |
3623 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3624 | - : |
3625 | - : @return The result of the function is an empty XDM instance and a pending update list |
3626 | - : which, once applied, inserts the nodes into the collection. |
3627 | - : |
3628 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3629 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3630 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
3631 | - : append-only, or queue. |
3632 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3633 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3634 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3635 | - : @error zerr:ZDDY0011 if the $target node is not a node that is contained in |
3636 | - : the collection $name. |
3637 | - : |
3638 | - : @deprecated please use the cdml:insert-after#3 function |
3639 | - : |
3640 | - :) |
3641 | -declare updating function |
3642 | -cdml:insert-nodes-after( |
3643 | - $name as xs:QName, |
3644 | - $target as node(), |
3645 | - $content as node()*) external; |
3646 | - |
3647 | +(:===========================================================================:) |
3648 | + |
3649 | +(:~ |
3650 | + : Gets the sequence of nodes or JSON items from a collection. |
3651 | + : |
3652 | + : @param $name The name of the collection. |
3653 | + : @return The seqnence of items from the collection. |
3654 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3655 | + : @error zerr:ZDDY0003 if the collection is not available. |
3656 | + :) |
3657 | +declare function cdml:collection( $name as xs:QName ) |
3658 | + as item()* external; |
3659 | + |
3660 | +(:~ |
3661 | + : Gets the sequence of nodes or JSON items from a collection. |
3662 | + : |
3663 | + : @param $name The name of the collection. |
3664 | + : @param $skip The initial number of items to skip. |
3665 | + : @return The (sub)sequence of items from the collection. |
3666 | + : |
3667 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3668 | + : @error zerr:ZDDY0003 if the collection is not available. |
3669 | + :) |
3670 | +declare function cdml:collection( $name as xs:QName, $skip as xs:integer ) |
3671 | + as item()* external; |
3672 | + |
3673 | +(:~ |
3674 | + : Gets the sequence of items (nodes or JSON items) from a collection. |
3675 | + : The parameters <code>$start</code> and <code>$skip</code> can be used to |
3676 | + : skip over some items at the beginning of the collection. |
3677 | + : If both are given, both are applied: |
3678 | + : first <code>$start</code> to skip to the referenced item |
3679 | + : and then <code>$skip</code> to skip that additional number of items. |
3680 | + : |
3681 | + : @param $name The name of the collection. |
3682 | + : @param $start The reference to the first item to return. |
3683 | + : @param $skip The number of additional items to skip. |
3684 | + : @return The sub-sequence from the collection. |
3685 | + : @error zerr:ZAPI0028 If the given URI is not a valid node position computed |
3686 | + : by the <code>np:node-position</code> function. |
3687 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3688 | + : @error zerr:ZDDY0003 if the collection is not available. |
3689 | + : @error zerr:ZSTR0066 if <code>$start</code> does not reference a node from |
3690 | + : the collection. |
3691 | + :) |
3692 | +declare function cdml:collection( $name as xs:QName, |
3693 | + $start as xs:anyURI, |
3694 | + $skip as xs:integer ) |
3695 | + as item()* external; |
3696 | + |
3697 | +(:~ |
3698 | + : Inserts copies of the given items (nodes or JSON items) into a collection. |
3699 | + : Note that the insertion position of the items in the collection is not |
3700 | + : defined. |
3701 | + : |
3702 | + : @param $name The name of the collection to insert into. |
3703 | + : @param $content The sequence of items whose copies to insert. |
3704 | + : @return An empty XDM instance and a pending update list that, once applied, |
3705 | + : inserts the items into the collection. |
3706 | + : |
3707 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3708 | + : @error zerr:ZDDY0003 if the collection is not available. |
3709 | + : @error zerr:ZDDY0006 if the collection is append-only, const, or queue. |
3710 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3711 | + : type as specified in the collection declaration according to the rules for |
3712 | + : SequenceType Matching. |
3713 | + :) |
3714 | +declare updating function cdml:insert( $name as xs:QName, |
3715 | + $content as item()* ) |
3716 | + external; |
3717 | |
3718 | (:~ |
3719 | : The insert-after function is an updating function that inserts copies of the |
3720 | - : given items (nodes and/or json items) into a collection at the position |
3721 | - : directlry following the given target item. |
3722 | - : |
3723 | - : @param $name The name of the collection to which the items should be added. |
3724 | - : @param $target The item in the collection after which the $content |
3725 | - : sequence should be inserted. |
3726 | - : @param $content The sequences of items whose copies should be added to the collection. |
3727 | - : |
3728 | - : @return The result of the function is an empty XDM instance and a pending update list |
3729 | - : which, once applied, inserts the items into the collection. |
3730 | - : |
3731 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3732 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3733 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
3734 | - : append-only, or queue. |
3735 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3736 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3737 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3738 | - : @error zerr:ZDDY0011 if the $target node is not a node that is contained in |
3739 | - : the collection $name. |
3740 | - : |
3741 | - :) |
3742 | -declare updating function |
3743 | -cdml:insert-after($name as xs:QName, $target as item(), $content as item()*) external; |
3744 | - |
3745 | - |
3746 | -(:~ |
3747 | - : This function does the same as the insert-nodes function except |
3748 | - : it immediately applies the resulting pending updates and returns the |
3749 | - : nodes that have been inserted. |
3750 | - : |
3751 | - : @param $name The name of the collection to which the nodes should be added. |
3752 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3753 | - : |
3754 | - : @return The result of the function is the sequence of nodes that have been |
3755 | - : inserted into the collection. |
3756 | - : |
3757 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3758 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3759 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3760 | - : const, or queue. |
3761 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3762 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3763 | - : |
3764 | - : @see cdml:insert-nodes |
3765 | - : |
3766 | - : @deprecated please use the cdml:apply-insert#2 function |
3767 | - : |
3768 | - :) |
3769 | -declare %an:sequential function |
3770 | -cdml:apply-insert-nodes($name as xs:QName, $content as node()*) as node()* external; |
3771 | - |
3772 | - |
3773 | -(:~ |
3774 | - : This function does the same as the insert function except it immediately applies |
3775 | - : the resulting pending updates and returns the items that have been inserted. |
3776 | - : |
3777 | - : @param $name The name of the collection to which the items should be added. |
3778 | - : @param $content The sequences of items whose copies should be added to the collection. |
3779 | - : |
3780 | - : @return The result of the function is the sequence of items that have been |
3781 | - : inserted into the collection. |
3782 | - : |
3783 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3784 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3785 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3786 | - : const, or queue. |
3787 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3788 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3789 | - : |
3790 | + : given items (nodes or JSON items) into a collection at the position |
3791 | + : directly following the given target item. |
3792 | + : |
3793 | + : @param $name The name of the collection to insert into. |
3794 | + : @param $target The item in the collection after which <code>$content</code> |
3795 | + : will be inserted. |
3796 | + : @param $content The sequence of items whose copies to insert. |
3797 | + : @return An empty XDM instance and a pending update list that, once applied, |
3798 | + : inserts the items into the collection. |
3799 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3800 | + : @error zerr:ZDDY0003 if the collection is not available. |
3801 | + : @error zerr:ZDDY0006 if the collection is const, append-only, or queue. |
3802 | + : @error zerr:ZDDY0012 if the collection is unordered. |
3803 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3804 | + : type as specified in the collection declaration according to the rules for |
3805 | + : SequenceType Matching. |
3806 | + : @error zerr:ZDDY0011 if <code>$target</code> is not a node that is contained |
3807 | + : in the collection. |
3808 | + :) |
3809 | +declare updating function cdml:insert-after( $name as xs:QName, |
3810 | + $target as item(), |
3811 | + $content as item()* ) |
3812 | + external; |
3813 | + |
3814 | +(:~ |
3815 | + : Inserts copies of the given items (nodes or JSON items) into a collection at |
3816 | + : the position directly preceding the given target item. |
3817 | + : |
3818 | + : @param $name The name of the collection to insert into. |
3819 | + : @param $target The item in the collection before which <code>$content</code> |
3820 | + : will be inserted. |
3821 | + : @param $content The sequence of items whose copies to insert. |
3822 | + : @return An empty XDM instance and a pending update list that, once applied, |
3823 | + : inserts the items into the collection. |
3824 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3825 | + : @error zerr:ZDDY0003 if the collection is not available. |
3826 | + : @error zerr:ZDDY0006 if the collection is const, append-only, or queue. |
3827 | + : @error zerr:ZDDY0012 if the collection is unordered. |
3828 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3829 | + : type as specified in the collection declaration according to the rules for |
3830 | + : SequenceType Matching. |
3831 | + : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is |
3832 | + : contained in the collection. |
3833 | + :) |
3834 | +declare updating function cdml:insert-before( $name as xs:QName, |
3835 | + $target as item(), |
3836 | + $content as item()* ) |
3837 | + external; |
3838 | + |
3839 | +(:~ |
3840 | + : Inserts copies of the given items (nodes or JSON items) at the beginning of |
3841 | + : a collection. |
3842 | + : |
3843 | + : @param $name The name of the collection to insert into. |
3844 | + : @param $content The sequence of items whose copies to insert. |
3845 | + : @return An empty XDM instance and a pending update list that, once applied, |
3846 | + : inserts the items into the collection. |
3847 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3848 | + : @error zerr:ZDDY0003 if the collection is not available. |
3849 | + : @error zerr:ZDDY0006 if the collection is append-only, const, or queue. |
3850 | + : @error zerr:ZDDY0012 if the collection is unordered. |
3851 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3852 | + : type as specified in the collection declaration according to the rules for |
3853 | + : SequenceType Matching. |
3854 | + :) |
3855 | +declare updating function cdml:insert-first( $name as xs:QName, |
3856 | + $content as item()* ) |
3857 | + external; |
3858 | + |
3859 | +(:~ |
3860 | + : Inserts copies of the given items (nodes or JSON items) at the end of a |
3861 | + : collection. |
3862 | + : |
3863 | + : @param $name The name of the collection to insert into. |
3864 | + : @param $content The sequence of itemss whose copies to insert. |
3865 | + : @return An empty XDM instance and a pending update list that, once applied, |
3866 | + : inserts the items into the collection. |
3867 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3868 | + : @error zerr:ZDDY0003 if the collection is not available. |
3869 | + : @error zerr:ZDDY0006 if the collection is const. |
3870 | + : @error zerr:ZDDY0012 if the collection is unordered. |
3871 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3872 | + : type as specified in the collection declaration according to the rules for |
3873 | + : SequenceType Matching. |
3874 | + :) |
3875 | +declare updating function cdml:insert-last( $name as xs:QName, |
3876 | + $content as item()* ) |
3877 | + external; |
3878 | + |
3879 | +(:~ |
3880 | + : This function does the same thing as <code>insert()</code> except it |
3881 | + : immediately applies the resulting pending updates and returns the items that |
3882 | + : have been inserted. |
3883 | + : |
3884 | + : @param $name The name of the collection to insert into. |
3885 | + : @param $content The sequence of items whose copies to insert. |
3886 | + : @return The sequence of items that have been inserted. |
3887 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3888 | + : @error zerr:ZDDY0003 if the collection is not available. |
3889 | + : @error zerr:ZDDY0006 if the collection is append-only, const, or queue. |
3890 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3891 | + : type as specified in the collection declaration according to the rules for |
3892 | + : SequenceType Matching. |
3893 | : @see cdml:insert |
3894 | - : |
3895 | - :) |
3896 | -declare %an:sequential function |
3897 | -cdml:apply-insert($name as xs:QName, $content as item()*) as item()* external; |
3898 | - |
3899 | -(:~ |
3900 | - : This function does the same as the insert-nodes-first function except |
3901 | - : it immediately applies the resulting pending updates and returns the |
3902 | - : nodes that have been inserted. |
3903 | - : |
3904 | - : @param $name The name of the collection to which the nodes should be added. |
3905 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3906 | - : |
3907 | - : @return The result of the function is the sequence of nodes that have been |
3908 | - : inserted into the collection. |
3909 | - : |
3910 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3911 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3912 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3913 | - : const, or queue. |
3914 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3915 | - : @error zerr:ZDTY0001 if $content does not match the expected type according to the |
3916 | - : rules for SequenceType Matching. |
3917 | - : |
3918 | - : @see cdml:insert-nodes-first |
3919 | - : |
3920 | - : @deprecated please use the cdml:apply-insert-first#2 function |
3921 | - : |
3922 | - :) |
3923 | -declare %an:sequential function |
3924 | -cdml:apply-insert-nodes-first( |
3925 | - $name as xs:QName, |
3926 | - $content as node()*) as node()* external; |
3927 | - |
3928 | - |
3929 | -(:~ |
3930 | - : This function does the same as the insert-first function except it immediately |
3931 | - : applies the resulting pending updates and returns the items that have been |
3932 | - : inserted. |
3933 | - : |
3934 | - : @param $name The name of the collection to which the items should be added. |
3935 | - : @param $content The sequences of items whose copies should be added to the collection. |
3936 | - : |
3937 | - : @return The result of the function is the sequence of items that have been |
3938 | - : inserted into the collection. |
3939 | - : |
3940 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3941 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3942 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is append-only, |
3943 | - : const, or queue. |
3944 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3945 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3946 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3947 | - : |
3948 | + :) |
3949 | +declare %an:sequential function cdml:apply-insert( $name as xs:QName, |
3950 | + $content as item()* ) |
3951 | + as item()* external; |
3952 | + |
3953 | +(:~ |
3954 | + : This function does the same thing as <code>insert-first()</code> except it |
3955 | + : immediately applies the resulting pending updates and returns the items that |
3956 | + : have been inserted. |
3957 | + : |
3958 | + : @param $name The name of the collection to insert into. |
3959 | + : @param $content The sequence of items whose copies to insert. |
3960 | + : @return The Sequence of items that have been inserted. |
3961 | + : @error zerr:ZDDY0001 if the collection is not declared. |
3962 | + : @error zerr:ZDDY0003 if the collection is not available. |
3963 | + : @error zerr:ZDDY0006 if the collection $name is append-only, const, or |
3964 | + : queue. |
3965 | + : @error zerr:ZDDY0012 if the collection is unordered. |
3966 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
3967 | + : type as specified in the collection declaration according to the rules for |
3968 | + : SequenceType Matching. |
3969 | : @see cdml:insert-first |
3970 | - : |
3971 | - :) |
3972 | -declare %an:sequential function |
3973 | -cdml:apply-insert-first($name as xs:QName, $content as item()*) as item()* external; |
3974 | - |
3975 | -(:~ |
3976 | - : This function does the same as the insert-nodes-last function except |
3977 | - : it immediately applies the resulting pending updates and returns the |
3978 | - : nodes that have been inserted. |
3979 | - : |
3980 | - : @param $name The name of the collection to which the nodes should be added. |
3981 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
3982 | - : |
3983 | - : @return The result of the function is the sequence of nodes that have been |
3984 | - : inserted into the collection. |
3985 | - : |
3986 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
3987 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
3988 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const. |
3989 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
3990 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
3991 | - : in the collection declaration) according to the rules for SequenceType Matching. |
3992 | - : |
3993 | - : @see cdml:insert-nodes-last |
3994 | - : |
3995 | - : @deprecated please use the cdml:apply-insert-last#2 function |
3996 | - : |
3997 | - :) |
3998 | -declare %an:sequential function |
3999 | -cdml:apply-insert-nodes-last( |
4000 | - $name as xs:QName, |
4001 | - $content as node()*) as node()* external; |
4002 | - |
4003 | - |
4004 | -(:~ |
4005 | - : This function does the same as the insert-last function except it immediately |
4006 | - : applies the resulting pending updates and returns the items that have been |
4007 | - : inserted. |
4008 | - : |
4009 | - : @param $name The name of the collection to which the items should be added. |
4010 | - : @param $content The sequences of items whose copies should be added to the collection. |
4011 | - : |
4012 | - : @return The result of the function is the sequence of items that have been |
4013 | - : inserted into the collection. |
4014 | - : |
4015 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4016 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4017 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const. |
4018 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4019 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4020 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4021 | - : |
4022 | + :) |
4023 | +declare %an:sequential function cdml:apply-insert-first( $name as xs:QName, |
4024 | + $content as item()* ) |
4025 | + as item()* external; |
4026 | + |
4027 | +(:~ |
4028 | + : This function does the same thing as <code>insert-last()</code> except it |
4029 | + : immediately applies the resulting pending updates and returns the items that |
4030 | + : have been inserted. |
4031 | + : |
4032 | + : @param $name The name of the collection to insert into. |
4033 | + : @param $content The sequence of items whose copies to insert. |
4034 | + : @return The sequence of items that have been inserted. |
4035 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4036 | + : @error zerr:ZDDY0003 if the collection is not available. |
4037 | + : @error zerr:ZDDY0006 if the collection is const. |
4038 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4039 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
4040 | + : type as specified in the collection declaration according to the rules for |
4041 | + : SequenceType Matching. |
4042 | : @see cdml:insert-last |
4043 | - : |
4044 | - :) |
4045 | -declare %an:sequential function |
4046 | -cdml:apply-insert-last($name as xs:QName, $content as item()*) as item()* external; |
4047 | - |
4048 | - |
4049 | -(:~ |
4050 | - : This function does the same as the insert-nodes-before function except |
4051 | - : it immediately applies the resulting pending updates and returns the |
4052 | - : nodes that have been inserted. |
4053 | - : |
4054 | - : @param $name The name of the collection to which the nodes should be added. |
4055 | - : @param $target The node in the collection before which the $content |
4056 | - : sequence should be inserted. |
4057 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
4058 | - : |
4059 | - : @return The result of the function is the sequence of nodes that have been |
4060 | - : inserted into the collection. |
4061 | - : |
4062 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4063 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4064 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4065 | - : append-only, or queue. |
4066 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4067 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4068 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4069 | - : @error zerr:ZDDY0011 if the $target node is not a node that is contained in |
4070 | - : the collection $name. |
4071 | - : |
4072 | - : @see cdml:insert-nodes-before |
4073 | - : |
4074 | - : @deprecated please use the cdml:apply-insert-before#3 function |
4075 | - : |
4076 | - :) |
4077 | -declare %an:sequential function |
4078 | -cdml:apply-insert-nodes-before( |
4079 | - $name as xs:QName, |
4080 | - $target as node(), |
4081 | - $content as node()*) as node()* external; |
4082 | - |
4083 | - |
4084 | -(:~ |
4085 | - : This function does the same as the insert-before function except it immediately |
4086 | - : applies the resulting pending updates and returns the items that have been |
4087 | - : inserted. |
4088 | - : |
4089 | - : @param $name The name of the collection to which the items should be added. |
4090 | - : @param $target The item in the collection before which the $content |
4091 | - : sequence should be inserted. |
4092 | - : @param $content The sequences of items whose copies should be added to the collection. |
4093 | - : |
4094 | - : @return The result of the function is the sequence of items that have been |
4095 | - : inserted into the collection. |
4096 | - : |
4097 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4098 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4099 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4100 | - : append-only, or queue. |
4101 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4102 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4103 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4104 | - : @error zerr:ZDDY0011 if the $target item is not an item that is contained in |
4105 | - : the collection $name. |
4106 | - : |
4107 | + :) |
4108 | +declare %an:sequential function cdml:apply-insert-last( $name as xs:QName, |
4109 | + $content as item()* ) |
4110 | + as item()* external; |
4111 | + |
4112 | +(:~ |
4113 | + : This function does the same thing as <code>insert-before()</code> except it |
4114 | + : immediately applies the resulting pending updates and returns the items that |
4115 | + : have been inserted. |
4116 | + : |
4117 | + : @param $name The name of the collection to insert into. |
4118 | + : @param $target The item in the collection before which <code>$content</code> |
4119 | + : will be inserted. |
4120 | + : @param $content The sequence of items whose copies to insert. |
4121 | + : @return The sequence of items that have been inserted. |
4122 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4123 | + : @error zerr:ZDDY0003 if the collection is not available. |
4124 | + : @error zerr:ZDDY0006 if the collection $name is const, append-only, or |
4125 | + : queue. |
4126 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4127 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
4128 | + : type as specified in the collection declaration according to the rules for |
4129 | + : SequenceType Matching. |
4130 | + : @error zerr:ZDDY0011 if <code>$target</code> is not an item that is |
4131 | + : contained in the collection. |
4132 | : @see cdml:insert-before |
4133 | - : |
4134 | - :) |
4135 | -declare %an:sequential function |
4136 | -cdml:apply-insert-before( |
4137 | - $name as xs:QName, |
4138 | - $target as item(), |
4139 | - $content as item()*) as item()* external; |
4140 | - |
4141 | - |
4142 | -(:~ |
4143 | - : This function does the same as the insert-nodes-after function except |
4144 | - : it immediately applies the resulting pending updates and returns the |
4145 | - : nodes that have been inserted. |
4146 | - : |
4147 | - : @param $name The name of the collection to which the nodes should be added. |
4148 | - : @param $target The node in the collection after which the $content |
4149 | - : sequence should be inserted. |
4150 | - : @param $content The sequences of nodes whose copies should be added to the collection. |
4151 | - : |
4152 | - : @return The result of the function is the sequence of nodes that have been |
4153 | - : inserted into the collection. |
4154 | - : |
4155 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4156 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4157 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4158 | - : const, append-only, or queue. |
4159 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4160 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4161 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4162 | - : @error zerr:ZDDY0011 if the $target node is not a node that is contained in |
4163 | - : the collection $name. |
4164 | - : |
4165 | - : @see cdml:insert-nodes-after |
4166 | - : |
4167 | - : @deprecated please use the cdml:apply-insert-after#3 function |
4168 | - : |
4169 | - :) |
4170 | -declare %an:sequential function |
4171 | -cdml:apply-insert-nodes-after( |
4172 | - $name as xs:QName, |
4173 | - $pos as node(), |
4174 | - $content as node()*) as node()* external; |
4175 | - |
4176 | - |
4177 | -(:~ |
4178 | - : This function does the same as the insert-after function except it immediately |
4179 | - : applies the resulting pending updates and returns the items that have been |
4180 | - : inserted. |
4181 | - : |
4182 | - : @param $name The name of the collection to which the items should be added. |
4183 | - : @param $target The item in the collection after which the $content |
4184 | - : sequence should be inserted. |
4185 | - : @param $content The sequences of items whose copies should be added to the collection. |
4186 | - : |
4187 | - : @return The result of the function is the sequence of items that have been |
4188 | - : inserted into the collection. |
4189 | - : |
4190 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4191 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4192 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4193 | - : const, append-only, or queue. |
4194 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4195 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4196 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4197 | - : @error zerr:ZDDY0011 if the $target item is not an item that is contained in |
4198 | - : the collection $name. |
4199 | - : |
4200 | + :) |
4201 | +declare %an:sequential function cdml:apply-insert-before( $name as xs:QName, |
4202 | + $target as item(), |
4203 | + $content as item()* ) |
4204 | + as item()* external; |
4205 | + |
4206 | +(:~ |
4207 | + : This function does the same thing as the <code>insert-after()</code> |
4208 | + : function except it immediately applies the resulting pending updates and |
4209 | + : returns the items that have been inserted. |
4210 | + : |
4211 | + : @param $name The name of the collection to insert into. |
4212 | + : @param $target The item in the collection after which <code>$content</code> |
4213 | + : will be inserted. |
4214 | + : @param $content The sequence of items whose copies to insert. |
4215 | + : @return The sequence of items that have been inserted. |
4216 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4217 | + : @error zerr:ZDDY0003 if the collection is not available. |
4218 | + : @error zerr:ZDDY0006 if the collection is const, append-only, or queue. |
4219 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4220 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
4221 | + : type as specified in the collection declaration according to the rules for |
4222 | + : SequenceType Matching. |
4223 | + : @error zerr:ZDDY0011 if <code>$target</code> is not in the collection. |
4224 | : @see cdml:insert-after |
4225 | - : |
4226 | - :) |
4227 | -declare %an:sequential function |
4228 | -cdml:apply-insert-after( |
4229 | - $name as xs:QName, |
4230 | - $pos as item(), |
4231 | - $content as item()*) as item()* external; |
4232 | - |
4233 | - |
4234 | -(:~ |
4235 | - : The delete-nodes function is an updating function that deletes zero of more |
4236 | - : nodes from a collection. |
4237 | - : |
4238 | - : @param $target the nodes in the collection that should be deleted. |
4239 | - : |
4240 | - : @return The result of this function is an empty XDM instance and a pending update |
4241 | - : list which, once applied, deletes the nodes from their collections. |
4242 | - : |
4243 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4244 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4245 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4246 | - : append-only, or queue. |
4247 | - : @error zerr:ZDDY0011 if any node in the $target sequence is not a member of a |
4248 | - : collection or not all nodes of the $target sequence belong to the same |
4249 | - : collection. |
4250 | - : |
4251 | - : @deprecated please use the cdml:delete#1 function |
4252 | - : |
4253 | - :) |
4254 | -declare updating function |
4255 | -cdml:delete-nodes($target as node()*) external; |
4256 | - |
4257 | - |
4258 | -(:~ |
4259 | - : The delete function is an updating function that deletes zero of more items |
4260 | - : (nodes and/or json items) from a collection. |
4261 | - : |
4262 | - : @param $target the items in the collection that should be deleted. |
4263 | - : |
4264 | - : @return The result of this function is an empty XDM instance and a pending update |
4265 | - : list which, once applied, deletes the items from their collections. |
4266 | - : |
4267 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4268 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4269 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4270 | - : append-only, or queue. |
4271 | - : @error zerr:ZDDY0011 if any item in the $target sequence is not a member of a |
4272 | - : collection or not all items of the $target sequence belong to the same |
4273 | - : collection. |
4274 | - : |
4275 | - :) |
4276 | -declare updating function |
4277 | -cdml:delete($target as item()*) external; |
4278 | - |
4279 | - |
4280 | -(:~ |
4281 | - : The delete-node-first function is an updating function that deletes the |
4282 | - : first node from an ordered collection. |
4283 | - : |
4284 | - : @param $name The name of the collection from which the first node should be deleted. |
4285 | - : |
4286 | - : @return The result of this function is an empty XDM instance and a pending update |
4287 | - : list which, once applied, deletes the first node from the collection. |
4288 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4289 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4290 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4291 | - : const or append-only. |
4292 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4293 | - : @error zerr:ZDDY0011 If the collection is empty. |
4294 | - : |
4295 | - : @deprecated please use the cdml:delete-first#1 function |
4296 | - : |
4297 | - :) |
4298 | -declare updating function |
4299 | -cdml:delete-node-first($name as xs:QName) external; |
4300 | - |
4301 | - |
4302 | -(:~ |
4303 | - : The delete-first function is an updating function that deletes the first |
4304 | - : item from an ordered collection. |
4305 | - : |
4306 | - : @param $name The name of the collection from which the first item should be deleted. |
4307 | - : |
4308 | - : @return The result of this function is an empty XDM instance and a pending update |
4309 | - : list which, once applied, deletes the first item from the collection. |
4310 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4311 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4312 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4313 | - : const or append-only. |
4314 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4315 | - : @error zerr:ZDDY0011 If the collection is empty. |
4316 | - : |
4317 | - :) |
4318 | -declare updating function |
4319 | -cdml:delete-first($name as xs:QName) external; |
4320 | - |
4321 | - |
4322 | -(:~ |
4323 | - : The delete-nodes-first function is an updating function that deletes the |
4324 | - : first n nodes from an ordered collection. |
4325 | - : |
4326 | - : @param $name The name of the collection from which the first node should be deleted. |
4327 | - : @param $number The number of nodes that should be removed from the beginning of |
4328 | - : the collection. |
4329 | - : |
4330 | - : @return The result of this function is an empty XDM instance and a pending update |
4331 | - : list which, once applied, deletes the nodes from the collection. |
4332 | - : |
4333 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4334 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4335 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4336 | - : const or append-only. |
4337 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4338 | - : @error zerr:ZDDY0011 If the collection contains less than $number nodes. |
4339 | - : |
4340 | - : @deprecated please use the cdml:delete-first#2 function |
4341 | - : |
4342 | - :) |
4343 | -declare updating function |
4344 | -cdml:delete-nodes-first($name as xs:QName, $number as xs:integer) external; |
4345 | - |
4346 | - |
4347 | -(:~ |
4348 | - : The delete-first function is an updating function that deletes the first N |
4349 | - : items from an ordered collection. |
4350 | - : |
4351 | - : @param $name The name of the collection from which the first N items should be deleted. |
4352 | - : @param $number The number N of items that should be removed from the beginning of |
4353 | - : the collection. |
4354 | - : |
4355 | - : @return The result of this function is an empty XDM instance and a pending update |
4356 | - : list which, once applied, deletes the items from the collection. |
4357 | - : |
4358 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4359 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4360 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is |
4361 | - : const or append-only. |
4362 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4363 | - : @error zerr:ZDDY0011 If the collection contains less than $number items. |
4364 | - : |
4365 | - :) |
4366 | -declare updating function |
4367 | -cdml:delete-first($name as xs:QName, $number as xs:integer) external; |
4368 | - |
4369 | - |
4370 | -(:~ |
4371 | - : The delete-node-last function is an updating function that deletes the |
4372 | - : last node from an ordered collection. |
4373 | - : |
4374 | - : @param $name The name of the collection from which the last node should be deleted. |
4375 | - : |
4376 | - : @return The result of this function is an empty XDM instance and a pending update |
4377 | - : list which, once applied, deletes the last node from the collection. |
4378 | - : |
4379 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4380 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4381 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4382 | - : append-only, or queue. |
4383 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4384 | - : @error zerr:ZDDY0011 If the collection is empty. |
4385 | - : |
4386 | - : @deprecated please use the cdml:delete-last#1 function |
4387 | - :) |
4388 | -declare updating function |
4389 | -cdml:delete-node-last($name as xs:QName) external; |
4390 | - |
4391 | - |
4392 | -(:~ |
4393 | - : The delete-last function is an updating function that deletes the last item |
4394 | - : from an ordered collection. |
4395 | - : |
4396 | - : @param $name The name of the collection from which the last item should be deleted. |
4397 | - : |
4398 | - : @return The result of this function is an empty XDM instance and a pending update |
4399 | - : list which, once applied, deletes the last item from the collection. |
4400 | - : |
4401 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4402 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4403 | - : @error zerr:ZDDY0006 if the modifier property of the collection $name is const, |
4404 | - : append-only, or queue. |
4405 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4406 | - : @error zerr:ZDDY0011 If the collection is empty. |
4407 | - :) |
4408 | -declare updating function |
4409 | -cdml:delete-last($name as xs:QName) external; |
4410 | - |
4411 | - |
4412 | -(:~ |
4413 | - : The delete-nodes-last function is an updating function that deletes the |
4414 | - : last n nodes from an ordered collection. |
4415 | - : |
4416 | - : @param $name The name of the collection from which the first node should be deleted. |
4417 | - : @param $number The number of nodes to delete. |
4418 | - : |
4419 | - : @return The result of this function is an empty XDM instance and a pending update |
4420 | - : list which, once applied, deletes the nodes. |
4421 | - : |
4422 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4423 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4424 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4425 | - : @error zerr:ZDDY0011 If the collection contains less than $number nodes. |
4426 | - : |
4427 | - : @deprecated please use the cdml:delete-last#2 function |
4428 | - : |
4429 | - :) |
4430 | -declare updating function |
4431 | -cdml:delete-nodes-last($name as xs:QName, $number as xs:integer) external; |
4432 | - |
4433 | - |
4434 | -(:~ |
4435 | - : The delete-last function is an updating function that deletes the last N items |
4436 | - : from an ordered collection. |
4437 | - : |
4438 | - : @param $name The name of the collection from which the last N items should be deleted. |
4439 | - : @param $number The number of items to delete. |
4440 | - : |
4441 | - : @return The result of this function is an empty XDM instance and a pending update |
4442 | - : list which, once applied, deletes the items. |
4443 | - : |
4444 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4445 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4446 | - : @error zerr:ZDDY0012 if the order property of the collection $name is unordered. |
4447 | - : @error zerr:ZDDY0011 If the collection contains less than $number items. |
4448 | - : |
4449 | - :) |
4450 | -declare updating function |
4451 | -cdml:delete-last($name as xs:QName, $number as xs:integer) external; |
4452 | - |
4453 | - |
4454 | -(:~ |
4455 | - : The edit function is an updating function that edits the first supplied |
4456 | - : item so as to make it look exactly like a copy of the second supplied item, |
4457 | - : while retaining its original identity. |
4458 | - : |
4459 | - : @param $target The target item ,that must be edited. |
4460 | - : @param $content The content item, that serves as an edit goal. |
4461 | - : |
4462 | - : @return The result of the function is an empty XDM instance and a pending update list |
4463 | - : which, once applied, performs the edit. |
4464 | - : |
4465 | - : @error zerr:ZDDY0001 if the collection to which $target belongs is not declared. |
4466 | - : @error zerr:ZDDY0003 if the collection to which $target belongs is not available. |
4467 | - : @error zerr:ZDDY0006 if the modifier property of the collection to which $target |
4468 | - : belongs is append-only, const, or queue. |
4469 | - : @error zerr:ZDDY0017 if the $target item is not a member of a collection. |
4470 | + :) |
4471 | +declare %an:sequential function cdml:apply-insert-after( $name as xs:QName, |
4472 | + $pos as item(), |
4473 | + $content as item()* ) |
4474 | + as item()* external; |
4475 | + |
4476 | +(:~ |
4477 | + : Deletes items (nodes or JSON items) from a collection. |
4478 | + : |
4479 | + : @param $items The items in the collection to delete. |
4480 | + : |
4481 | + : @return An empty XDM instance and a pending update list that, once applied, |
4482 | + : deletes the items from their collections. |
4483 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4484 | + : @error zerr:ZDDY0003 if the collection is not available. |
4485 | + : @error zerr:ZDDY0006 if the collection is const, append-only, or queue. |
4486 | + : @error zerr:ZDDY0011 if any item in <code>$items</code> is not a member of a |
4487 | + : collection or not all items belong to the same collection. |
4488 | + :) |
4489 | +declare updating function cdml:delete( $items as item()* ) |
4490 | + external; |
4491 | + |
4492 | +(:~ |
4493 | + : Deletes the first item from a collection. |
4494 | + : |
4495 | + : @param $name The name of the collection to delete from. |
4496 | + : @return An empty XDM instance and a pending update list that, once applied, |
4497 | + : deletes the first item from the collection. |
4498 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4499 | + : @error zerr:ZDDY0003 if the collection is not available. |
4500 | + : @error zerr:ZDDY0006 if the collection is const or append-only. |
4501 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4502 | + : @error zerr:ZDDY0011 if the collection is empty. |
4503 | + :) |
4504 | +declare updating function cdml:delete-first( $name as xs:QName ) |
4505 | + external; |
4506 | + |
4507 | +(:~ |
4508 | + : Deletes the first <i>N</i> items from a collection. |
4509 | + : |
4510 | + : @param $name The name of the collection to delete from. |
4511 | + : @param $number The number of items to delete. |
4512 | + : @return An empty XDM instance and a pending update list that, once applied, |
4513 | + : deletes the items from the collection. |
4514 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4515 | + : @error zerr:ZDDY0003 if the collection is not available. |
4516 | + : @error zerr:ZDDY0006 if the collection is const or append-only. |
4517 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4518 | + : @error zerr:ZDDY0011 if the collection contains less than |
4519 | + : <code>$number</code> items. |
4520 | + :) |
4521 | +declare updating function cdml:delete-first( $name as xs:QName, |
4522 | + $number as xs:integer ) |
4523 | + external; |
4524 | + |
4525 | +(:~ |
4526 | + : Deletes the last item from a collection. |
4527 | + : |
4528 | + : @param $name The name of the collection to delete from. |
4529 | + : @return An empty XDM instance and a pending update list that, once applied, |
4530 | + : deletes the last item from the collection. |
4531 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4532 | + : @error zerr:ZDDY0003 if the collection is not available. |
4533 | + : @error zerr:ZDDY0006 if the collection is const, append-only, or queue. |
4534 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4535 | + : @error zerr:ZDDY0011 if the collection is empty. |
4536 | + :) |
4537 | +declare updating function cdml:delete-last( $name as xs:QName ) |
4538 | + external; |
4539 | + |
4540 | +(:~ |
4541 | + : Deletes the last <i>N</i> items from a collection. |
4542 | + : |
4543 | + : @param $name The name of the collection to delete from. |
4544 | + : @param $number The number of items to delete. |
4545 | + : @return An empty XDM instance and a pending update list that, once applied, |
4546 | + : deletes the items. |
4547 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4548 | + : @error zerr:ZDDY0003 if the collection is not available. |
4549 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4550 | + : @error zerr:ZDDY0011 if the collection contains less than |
4551 | + : <code>$number</code> items. |
4552 | + :) |
4553 | +declare updating function cdml:delete-last( $name as xs:QName, |
4554 | + $number as xs:integer ) |
4555 | + external; |
4556 | + |
4557 | +(:~ |
4558 | + : Edits the first supplied item so as to make it look exactly like a copy of |
4559 | + : the second supplied item while retaining its original identity. |
4560 | + : |
4561 | + : @param $target The target item to be edited. |
4562 | + : @param $content The item that serves as an edit goal. |
4563 | + : @return An empty XDM instance and a pending update list that, once applied, |
4564 | + : performs the edit. |
4565 | + : @error zerr:ZDDY0001 if the collection to which <code>$target</code> belongs |
4566 | + : is not declared. |
4567 | + : @error zerr:ZDDY0003 if the collection to which <code>$target</code> belongs |
4568 | + : is not available. |
4569 | + : @error zerr:ZDDY0006 if the collection to which <code>$target</code> belongs |
4570 | + : is append-only, const, or queue. |
4571 | + : @error zerr:ZDDY0017 if <code>$target</code> is not a member of a collection. |
4572 | : @error zerr:ZDDY0037 if the collection is append-only. |
4573 | : @error zerr:ZDDY0038 if the collection is a queue. |
4574 | - : @error zerr:ZDDY0039 if the $target item is not a root. |
4575 | - : @error zerr:ZDDY0040 if the target cannot be updated to match the content (for |
4576 | - : example because the target is a node and the content is an object). |
4577 | - : @error zerr:ZDTY0001 if $content does not match the expected type (as specified |
4578 | - : in the collection declaration) according to the rules for SequenceType Matching. |
4579 | - : |
4580 | + : @error zerr:ZDDY0039 if <code>$target</code> is not a root. |
4581 | + : @error zerr:ZDDY0040 if <code>$target</code> cannot be updated to match the |
4582 | + : content (for example, because the target is a node and the content is an |
4583 | + : object). |
4584 | + : @error zerr:ZDTY0001 if <code>$content</code> does not match the expected |
4585 | + : type (as specified in the collection declaration) according to the rules for |
4586 | + : SequenceType Matching. |
4587 | :) |
4588 | -declare updating function |
4589 | -cdml:edit($target as item(), $content as item()) external; |
4590 | - |
4591 | +declare updating function cdml:edit( $target as item(), |
4592 | + $content as item() ) |
4593 | + external; |
4594 | |
4595 | (:~ |
4596 | - : The truncate function is an updating function that deletes the |
4597 | - : entire contents of collection. |
4598 | - : |
4599 | + : Deletes the entire contents of collection. |
4600 | : Please note that applying this function can not be undone in case |
4601 | : an error happens during the application of the containing PUL. |
4602 | : |
4603 | - : @param $name The name of the collection whose content to delete |
4604 | - : |
4605 | - : @return The result of this function is an empty XDM instance and a pending update |
4606 | - : list which, once applied, deletes the nodes. |
4607 | - : |
4608 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4609 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4610 | - : |
4611 | - :) |
4612 | -declare updating function |
4613 | -cdml:truncate($name as xs:QName) external; |
4614 | - |
4615 | - |
4616 | -(:~ |
4617 | - : The collection function returns the sequence of nodes and/or json items |
4618 | - : that belong to the collection identified by the given name. |
4619 | - : |
4620 | - : @param $name The name of the collection. |
4621 | - : |
4622 | - : @return The sequence contained in the given collection. |
4623 | - : |
4624 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4625 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4626 | - : |
4627 | - :) |
4628 | -declare function |
4629 | -cdml:collection($name as xs:QName) as item()* external; |
4630 | - |
4631 | - |
4632 | -(:~ |
4633 | - : The collection function returns the sequence of nodes and/or json items |
4634 | - : that belong to the collection identified by the given name. |
4635 | - : |
4636 | - : @param $name The name of the collection. |
4637 | - : @param $skip The number of collection items to skip. |
4638 | - : |
4639 | - : @return The sequence contained in the given collection. |
4640 | - : |
4641 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4642 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4643 | - : |
4644 | - :) |
4645 | -declare function |
4646 | -cdml:collection($name as xs:QName, $skip as xs:integer) as item()* external; |
4647 | - |
4648 | - |
4649 | -(:~ |
4650 | - : The collection function returns the sequence of nodes and/or json items |
4651 | - : that belong to the collection identified by the given name. |
4652 | - : The parameters $start and $skip can be used to skip over some items at |
4653 | - : the beginning of the collection. If both are given, both are applied: |
4654 | - : first $start to skip to the referenced item and then $skip to skip an |
4655 | - : additional number of items. |
4656 | - : |
4657 | - : @param $name The name of the collection. |
4658 | - : @param $start The reference to the first item to return. All items before |
4659 | - are skipped. |
4660 | - : @param $skip The number of collection items to skip. |
4661 | - : |
4662 | - : @return The sequence contained in the given collection. |
4663 | - : |
4664 | - : @error zerr:ZAPI0028 If the given URI is not a valid node |
4665 | - : position computed by the <tt>np:node-position</tt> function. |
4666 | - : @error zerr:ZDDY0001 if the collection identified by $name is not declared. |
4667 | - : @error zerr:ZDDY0003 if the collection identified by $name is not available. |
4668 | - : @error zerr:ZSTR0066 if the passed reference $start does not reference |
4669 | - : a node from the collection identified by $name. |
4670 | - : |
4671 | - :) |
4672 | -declare function |
4673 | -cdml:collection($name as xs:QName, |
4674 | - $start as xs:anyURI, |
4675 | - $skip as xs:integer) as item()* external; |
4676 | -(:~ |
4677 | - : The collection-name function returns the name of the collection the given |
4678 | - : item (node or json item) belongs to. |
4679 | - : |
4680 | - : @param $item The item for which to get the name of the collection |
4681 | - : @return The result of this function is a QName which identifies the collection |
4682 | - : to which the given item belongs to. |
4683 | - : |
4684 | - : @error zerr:ZDDY0011 if the given item does not belong to a collection. |
4685 | - : |
4686 | - :) |
4687 | -declare function |
4688 | -cdml:collection-name($item as item()) as xs:QName external; |
4689 | - |
4690 | - |
4691 | -(:~ |
4692 | - : The index-of function returns the position of the given item (node or |
4693 | - : json item) within its containing collection. |
4694 | - : |
4695 | - : @param $node The item to retrieve the index for. |
4696 | - : |
4697 | - : @return Returns the position as xs:integer of the given item in the collection. |
4698 | - : |
4699 | - : @error zerr:ZDDY0011 if the item is not stored in any collection. |
4700 | - : @error zerr:ZDDY0012 if the order property of the collection is unordered. |
4701 | - : |
4702 | - :) |
4703 | -declare function |
4704 | -cdml:index-of($item as item()) as xs:integer external; |
4705 | + : @param $name The name of the collection whose content to delete. |
4706 | + : @return An empty XDM instance and a pending update list that, once applied, |
4707 | + : deletes the nodes. |
4708 | + : @error zerr:ZDDY0001 if the collection is not declared. |
4709 | + : @error zerr:ZDDY0003 if the collection is not available. |
4710 | + :) |
4711 | +declare updating function cdml:truncate( $name as xs:QName ) |
4712 | + external; |
4713 | + |
4714 | +(:~ |
4715 | + : Gets the name of the collection the given item (node or JSON item) belongs |
4716 | + : to. |
4717 | + : |
4718 | + : @param $item The item for which to get the name of its collection. |
4719 | + : @return The name of the collection to which the given item belongs. |
4720 | + : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection. |
4721 | + :) |
4722 | +declare function cdml:collection-name( $item as item() ) |
4723 | + as xs:QName external; |
4724 | + |
4725 | +(:~ |
4726 | + : Gets the position of the given item (node or JSON item) within its |
4727 | + : collection. |
4728 | + : |
4729 | + : @param $item The item to get the index of. |
4730 | + : @return The position of <code>$item</code> in its collection. |
4731 | + : @error zerr:ZDDY0011 if <code>$item</code> does not belong to a collection. |
4732 | + : @error zerr:ZDDY0012 if the collection is unordered. |
4733 | + :) |
4734 | +declare function cdml:index-of( $item as item() ) |
4735 | + as xs:integer external; |
4736 | + |
4737 | +(:===========================================================================:) |
4738 | + |
4739 | +(: vim:set et sw=2 ts=2: :) |
4740 | |
4741 | === modified file 'modules/store/static/indexes/ddl.xq' |
4742 | --- modules/com/zorba-xquery/www/modules/store/static/indexes/ddl.xq 2013-09-26 23:15:11 +0000 |
4743 | +++ modules/store/static/indexes/ddl.xq 2013-10-17 02:02:41 +0000 |
4744 | @@ -17,103 +17,99 @@ |
4745 | :) |
4746 | |
4747 | (:~ |
4748 | - : This modules defines a set of functions for managing indexes which are |
4749 | + : This modules defines a set of functions for managing indexes that are |
4750 | : declared in the prolog of a module. |
4751 | - : |
4752 | - : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data |
4753 | - : Definition Facility</a>. All the indexes managed by this module |
4754 | - : have to be pre-declared in the prolog of a module. Please refer to the |
4755 | + : <p/> |
4756 | + : This module is part of |
4757 | + : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>. |
4758 | + : All the indexes managed by this module have to be pre-declared in the prolog |
4759 | + : of a module. |
4760 | + : Please refer to the |
4761 | : <a href="../zorba/data_lifecycle.html">general documentation</a> |
4762 | - : for more information and examples.</p> |
4763 | + : for more information and examples. |
4764 | : |
4765 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
4766 | : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a> |
4767 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/dml |
4768 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/dml |
4769 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl |
4770 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl |
4771 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml |
4772 | + : @see http://zorba.io/modules/store/static/indexes/dml |
4773 | + : @see http://zorba.io/modules/store/static/collections/dml |
4774 | + : @see http://zorba.io/modules/store/static/collections/ddl |
4775 | + : @see http://zorba.io/modules/store/static/integrity-constraints/ddl |
4776 | + : @see http://zorba.io/modules/store/static/integrity-constraints/dml |
4777 | : @see http://zorba.io/errors |
4778 | : |
4779 | : @author Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis |
4780 | - : |
4781 | : @project Zorba/Data Store/Indexes/Static Data Definition |
4782 | - : |
4783 | :) |
4784 | -module namespace iddl = "http://www.zorba-xquery.com/modules/store/static/indexes/ddl"; |
4785 | +module namespace iddl = "http://zorba.io/modules/store/static/indexes/ddl"; |
4786 | |
4787 | declare namespace zerr = "http://zorba.io/errors"; |
4788 | declare namespace ver = "http://zorba.io/options/versioning"; |
4789 | declare option ver:module-version "2.0"; |
4790 | |
4791 | -(:~ |
4792 | - : The function returns true if an index with the given QName is available. |
4793 | - : (i.e. has been created). |
4794 | - : |
4795 | - : @param $name The QName of the index that is being checked. |
4796 | - : |
4797 | - : @return true if the index is available and false otherwise. |
4798 | - :) |
4799 | -declare function iddl:is-available-index($name as xs:QName) as xs:boolean external; |
4800 | +(:===========================================================================:) |
4801 | |
4802 | (:~ |
4803 | - : The function returns a sequence of QNames representing the indexes that are |
4804 | - : available. The sequence will be empty if there are no indexes. |
4805 | + : Gets the available indexes. |
4806 | : |
4807 | : @return A sequence of QNames, one for each available index, or an empty |
4808 | : sequence if none are. |
4809 | :) |
4810 | -declare function iddl:available-indexes() as xs:QName* external; |
4811 | - |
4812 | -(:~ |
4813 | - : The create function is an updating function which creates the |
4814 | - : index with the given expanded QName and populates the index with its |
4815 | - : values. |
4816 | - : |
4817 | - : @param $name The QName of the index to create. |
4818 | - : |
4819 | - : @return The result of the function is an empty XDM instance and a pending |
4820 | - : update list which, once applied, creates the index with the given |
4821 | - : name. |
4822 | - : |
4823 | - : @error zerr:ZDDY0021 if the expanded QName of $name is not equal |
4824 | - : to the name of any resource in the statically known indexes. |
4825 | - : @error zerr:ZDDY0022 if the index with the given name is already created. |
4826 | - :) |
4827 | -declare updating function iddl:create( |
4828 | - $name as xs:QName) external; |
4829 | - |
4830 | -(:~ |
4831 | - : The delete function is an updating function that deletes |
4832 | - : the index with the given expanded QName. |
4833 | - : |
4834 | - : @param $name The QName of the index to delete. |
4835 | - : |
4836 | - : @return The result of the function is an empty XDM instance and a pending |
4837 | - : update list which, once applied, deletes the index with the given name. |
4838 | - : |
4839 | - : @error zerr:ZDDY0009 If available indexes does not provide a mapping for |
4840 | - : the expanded QName $name. |
4841 | - : |
4842 | - :) |
4843 | -declare updating function iddl:delete( |
4844 | - $name as xs:QName) external; |
4845 | - |
4846 | -(:~ |
4847 | - : The function returns true if a index with the given |
4848 | - : QName is declared in the prolog of the static context. |
4849 | - : |
4850 | - : @param $name The QName of the index that is being checked. |
4851 | - : |
4852 | - : @return true if the index is declared or false otherwise. |
4853 | - :) |
4854 | -declare function iddl:is-declared-index( |
4855 | - $name as xs:QName) as xs:boolean external; |
4856 | - |
4857 | -(:~ |
4858 | - : The function returns a sequence of QNames representing the indexes that have |
4859 | - : been declared in the prolog of the static context. |
4860 | - : |
4861 | - : @return A sequence of QNames, one for each created collection, or an emtpy sequence. |
4862 | - :) |
4863 | -declare function iddl:declared-indexes() as xs:QName* external; |
4864 | +declare function iddl:available-indexes() |
4865 | + as xs:QName* external; |
4866 | + |
4867 | +(:~ |
4868 | + : Creates an index. |
4869 | + : |
4870 | + : @param $name The name of the index to create. |
4871 | + : @return An empty XDM instance and a pending update list that, once applied, |
4872 | + : creates the index with the given name. |
4873 | + : |
4874 | + : @error zerr:ZDDY0021 if <code>$name</code> is not equal to the name of any |
4875 | + : resource in the statically known indexes. |
4876 | + : @error zerr:ZDDY0022 if an index with <code>$name</code> already exists. |
4877 | + :) |
4878 | +declare updating function iddl:create( $name as xs:QName ) |
4879 | + external; |
4880 | + |
4881 | +(:~ |
4882 | + : Gets a sequence of QNames representing the indexes that have been declared |
4883 | + : in the prolog of the static context. |
4884 | + : |
4885 | + : @return A sequence of QNames, one for each created collection, or an emtpy |
4886 | + : sequence. |
4887 | + :) |
4888 | +declare function iddl:declared-indexes() |
4889 | + as xs:QName* external; |
4890 | + |
4891 | +(:~ |
4892 | + : Deletes an index. |
4893 | + : |
4894 | + : @param $name The name of the index to delete. |
4895 | + : @return An empty XDM instance and a pending update list that, once applied, |
4896 | + : deletes the index with the given name. |
4897 | + : @error zerr:ZDDY0009 if the index does not exist. |
4898 | + :) |
4899 | +declare updating function iddl:delete( $name as xs:QName ) |
4900 | + external; |
4901 | + |
4902 | +(:~ |
4903 | + : Gets whether an index exists. |
4904 | + : |
4905 | + : @param $name The name of the index that is being checked. |
4906 | + : @return true if the index is available; false otherwise. |
4907 | + :) |
4908 | +declare function iddl:is-available-index( $name as xs:QName ) |
4909 | + as xs:boolean external; |
4910 | + |
4911 | +(:~ |
4912 | + : Gets whether an index has been declared in the prolog of the static context. |
4913 | + : |
4914 | + : @param $name The name of the index that is being checked. |
4915 | + : @return true if the index was declared; false otherwise. |
4916 | + :) |
4917 | +declare function iddl:is-declared-index( $name as xs:QName ) |
4918 | + as xs:boolean external; |
4919 | + |
4920 | +(:===========================================================================:) |
4921 | + |
4922 | +(: vim:set et sw=2 ts=2: :) |
4923 | |
4924 | === modified file 'modules/store/static/indexes/dml.xq' |
4925 | --- modules/com/zorba-xquery/www/modules/store/static/indexes/dml.xq 2013-09-26 23:15:11 +0000 |
4926 | +++ modules/store/static/indexes/dml.xq 2013-10-17 02:02:41 +0000 |
4927 | @@ -1,7 +1,7 @@ |
4928 | xquery version "3.0"; |
4929 | |
4930 | (: |
4931 | - : Copyright 2006-2009 The FLWOR Foundation. |
4932 | + : Copyright 2006-2013 The FLWOR Foundation. |
4933 | : |
4934 | : Licensed under the Apache License, Version 2.0 (the "License"); |
4935 | : you may not use this file except in compliance with the License. |
4936 | @@ -19,353 +19,344 @@ |
4937 | (:~ |
4938 | : This module defines a set of functions to probe and refresh indexes which are |
4939 | : declared in the prolog of a module. |
4940 | - : |
4941 | - : <p>This module is part of <a href="../zorba/xqddf.html">Zorba's XQuery Data |
4942 | - : Definition Facility</a>. All the indexes managed by this module |
4943 | - : have to be pre-declared in the prolog of a library module. Please refer to the |
4944 | + : <p/> |
4945 | + : This module is part of |
4946 | + : <a href="../zorba/xqddf.html">Zorba's XQuery Data Definition Facility</a>. |
4947 | + : All the indexes managed by this module have to be pre-declared in the prolog |
4948 | + : of a library module. |
4949 | + : Please refer to the |
4950 | : <a href="../zorba/data_lifecycle.html">general documentation</a> |
4951 | - : for more information and examples.</p> |
4952 | + : for more information and examples. |
4953 | : |
4954 | : @see <a href="../zorba/data_lifecycle.html">Data Lifecycle</a> |
4955 | : @see <a href="../zorba/xqddf.html">XQuery Data Definition Facility</a> |
4956 | - : @see http://www.zorba-xquery.com/modules/store/static/indexes/ddl |
4957 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/dml |
4958 | - : @see http://www.zorba-xquery.com/modules/store/static/collections/ddl |
4959 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl |
4960 | - : @see http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml |
4961 | + : @see http://zorba.io/modules/store/static/indexes/ddl |
4962 | + : @see http://zorba.io/modules/store/static/collections/dml |
4963 | + : @see http://zorba.io/modules/store/static/collections/ddl |
4964 | + : @see http://zorba.io/modules/store/static/integrity-constraints/ddl |
4965 | + : @see http://zorba.io/modules/store/static/integrity-constraints/dml |
4966 | : @see http://zorba.io/errors |
4967 | : |
4968 | : @author Zorba Team |
4969 | - : |
4970 | : @project Zorba/Data Store/Indexes/Static Data Manipulation |
4971 | - : |
4972 | :) |
4973 | -module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml"; |
4974 | +module namespace idml = "http://zorba.io/modules/store/static/indexes/dml"; |
4975 | |
4976 | +declare namespace an = "http://zorba.io/annotations"; |
4977 | declare namespace zerr = "http://zorba.io/errors"; |
4978 | -declare namespace an = "http://zorba.io/annotations"; |
4979 | |
4980 | declare namespace ver = "http://zorba.io/options/versioning"; |
4981 | - |
4982 | declare option ver:module-version "2.0"; |
4983 | |
4984 | +(:===========================================================================:) |
4985 | + |
4986 | (:~ |
4987 | - : <p>The probe-index-point-value function retrieves from an index the domain |
4988 | - : nodes associated by value equality with a given <strong>search tuple</strong>. |
4989 | - : The search tuple consists of a number of <strong>search keys</strong>, where |
4990 | - : each search key is either an atomic item or the empty sequence. The number |
4991 | - : of search keys given must be equal to the number of keys declared for the |
4992 | - : index. Since the number of keys differs from one index to another, this |
4993 | - : function is variadic.</p> |
4994 | - : |
4995 | - : <p>The result of the function is either an error or the set of domain nodes for |
4996 | - : which the following xquery expression returns true:</p> |
4997 | - : |
4998 | - : <pre> |
4999 | - : $key1 eq $node/keyExpr1 and ... and $keyM eq $node/keyExprM |
5000 | - : </pre> |
Validation queue starting for the following merge proposals: /code.launchpad .net/~zorba- coders/ zorba/bug- 1189862/ +merge/ 190266
https:/
Progress dashboard at http:// jenkins. lambda. nu/view/ ValidationQueue