Loading TOC...

temporal.collectionGetAxis

temporal.collectionGetAxis(
   $temporal-collection as String,
   $axis as String
) as Sequence

Summary

This function returns the name of either the system or valid axis in the named temporal collection.

A TEMPORAL-COLLECTIONNOTFOUND exception is thrown if the collection does not exist. A TEMPORAL-INVALIDAXIS if axis is not "system" or "valid."

Parameters
$temporal-collection The name of the collection.
$axis The type of axis. Value types are system and valid.

Example

var temporal = require("/MarkLogic/temporal.xqy");

temporal.collectionGetAxis("temporalCollection", "valid") ;

//  Returns the name of the valid axis for the "temporalCollection" 
//  collection. 

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy