Such collections are identified by a URI as defined in the XQuery specification. However, please note that we do not advice users to use collections identified by URIs. Instead, we refer to the data lifecycle documentation. It gives an overview of several ways to work with collections, documents, and other data-structures.
apply-insert-nodes-after
($name as xs:string, $pos as node(), $content as node()*) as node()*
This function does the same as the insert-nodes-after() function except it immediately applies the resulting pending updates and returns the nodes that have been inserted. |
apply-insert-nodes-before
($name as xs:string, $target as node(), $content as node()*) as node()*
This function does the same as the insert-nodes-before() function except it immediately applies the resulting pending updates and returns the nodes that have been inserted. |
apply-insert-nodes-first
($name as xs:string, $content as node()*) as node()*
This function does the same as the insert-nodes() function except it immediately applies the resulting pending updates and returns the nodes that have been inserted. |
apply-insert-nodes-last
($name as xs:string, $content as node()*) as node()*
This function does the same as the insert-nodes-last() function except it immediately applies the resulting pending updates and returns the nodes that have been inserted. |
collection-name
($node as node()) as xs:string
Gets the name of the collection the given node belongs to. |
collection
($name as xs:string) as node()*
Gets the sequence of nodes of the collection identified by the given name. |
delete-node-first
($name as xs:string)
Deletes the first node from a collection. |
delete-node-last
($name as xs:string)
Deletes the last node from a collection. |
delete-nodes-first
($name as xs:string, $number as xs:integer)
Deletes the first N nodes from a collection. |
delete-nodes-last
($name as xs:string, $number as xs:integer)
Deletes the last N nodes from a collection. |
delete-nodes
($nodes as node()*)
Deletes nodes from a collection. |
index-of
($node as node()) as xs:integer
Gets the index of the given node in the collection. |
insert-nodes-after
($name as xs:string, $pos as node(), $content as node()*)
Inserts copies of the given nodes into a collection at the position directly following the given target node. |
insert-nodes-before
($name as xs:string, $target as node(), $content as node()*)
Inserts copies of the given nodes into a collection at the position directly preceding the given target node. |
insert-nodes-first
($name as xs:string, $content as node()*)
Inserts copies of the given nodes at the beginning of the collection. |
insert-nodes-last
($name as xs:string, $content as node()*)
Inserts copies of the given nodes at the end of the collection. |
declare %an:sequential function dml:apply-insert-nodes-after($name as xs:string, $pos as node(), $content as node()*) as node()*
insert-nodes-after()
function except it immediately applies the resulting pending updates and
returns the nodes that have been inserted.
declare %an:sequential function dml:apply-insert-nodes-before($name as xs:string, $target as node(), $content as node()*) as node()*
insert-nodes-before()
function except it immediately applies the resulting pending updates and
returns the nodes that have been inserted.
$content
will be inserted.declare %an:sequential function dml:apply-insert-nodes-first($name as xs:string, $content as node()*) as node()*
insert-nodes()
function
except it immediately applies the resulting pending updates and returns the
nodes that have been inserted.
declare %an:sequential function dml:apply-insert-nodes-last($name as xs:string, $content as node()*) as node()*
insert-nodes-last()
function
except it immediately applies the resulting pending updates and returns the
nodes that have been inserted.
declare function dml:collection-name($node as node()) as xs:string
$node
belongs.declare function dml:collection($name as xs:string) as node()*
declare function dml:delete-node-first($name as xs:string)
declare function dml:delete-node-last($name as xs:string)
declare function dml:delete-nodes-first($name as xs:string, $number as xs:integer)
declare function dml:delete-nodes-last($name as xs:string, $number as xs:integer)
declare function dml:delete-nodes($nodes as node()*)
declare function dml:index-of($node as node()) as xs:integer
$node
in the collection.declare function dml:insert-nodes-after($name as xs:string, $pos as node(), $content as node()*)
declare function dml:insert-nodes-before($name as xs:string, $target as node(), $content as node()*)
$content
will be inserted.declare function dml:insert-nodes-first($name as xs:string, $content as node()*)
$content
into the collection.declare function dml:insert-nodes-last($name as xs:string, $content as node()*)