http://www.zorba-xquery.com/modules/node-reference ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace ref = "http://www.zorba-xquery.com/modules/node-reference";

The module provides functions to compute a stable reference (URI) for a node that is stored in a collection and vice versa.

Please see the data lifecycle documentation about details on management and manipulation of collections.

Author:

Matthias Brantner

XQuery version and encoding for this module:

xquery version "1.0" encoding "utf-8";

Module Resources
Related Documentation

For more details please also see:

Namespaces
ref http://www.zorba-xquery.com/modules/node-reference
ver http://www.zorba-xquery.com/options/versioning
zerr http://www.zorba-xquery.com/errors
Function Summary
node-by-reference ( $arg as xs:anyURI ) as node()? external
Returns the node identified by the given node reference.
node-reference ( $arg as node() ) as xs:anyURI external
Compute a stable and opaque node reference (with type xs:anyURI) for a given node.
Functions
node-by-reference back to 'Function Summary'
declare function ref:node-by-reference (
            $arg as xs:anyURI 
 ) as node()? external

Returns the node identified by the given node reference.

The function may return the empty sequence if the node that is referenced was deleted.

Parameters:
Returns:
Errors:

node-reference back to 'Function Summary'
declare function ref:node-reference (
            $arg as node() 
 ) as xs:anyURI external

Compute a stable and opaque node reference (with type xs:anyURI) for a given node.

The function can only compute reference for nodes that a stored in a collection [zerr:ZAPI0080].

The returned URI is stable, i.e. it still can be dereferenced if the node or the containing collection is modified.

Parameters:
Returns:

blog comments powered by Disqus