temporal.collectionGetAxis( temporal-collection as String, axis as String ) as Sequence
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 .
|
const temporal = require("/MarkLogic/temporal.xqy"); temporal.collectionGetAxis("temporalCollection", "valid") ; // Returns the name of the valid axis for the "temporalCollection" // collection.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.