<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/temporal.collectionGetAxis.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>temporal.collectionGetAxis</api:function-name><api:suggest>temporal.collectiongetaxis</api:suggest><api:suggest>temporal</api:suggest><api:suggest>collectiongetaxis</api:suggest><api:function-link mode="xquery" fullname="temporal:collection-get-axis">/apidoc/8.0/temporal:collection-get-axis.xml</api:function-link><api:function mode="javascript" name="collectionGetAxis" lib="temporal" category="Temporal" hidden="false" bucket="MarkLogic Built-In Functions" prefix="temporal" namespace="http://marklogic.com/xdmp/temporal" fullname="temporal.collectionGetAxis"><api:summary>
	  This function returns the name of either the system or valid axis 
	  in the named temporal collection.
  <p xmlns="http://www.w3.org/1999/xhtml">
	  A TEMPORAL-COLLECTIONNOTFOUND exception is thrown if the 
	  collection does not exist.  A TEMPORAL-INVALIDAXIS if axis is 
	  not "system" or "valid."
  </p>
  </api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
    The name of the collection.
    </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="axis" type="xs:string"><api:param-description>
	    The type of axis.  Value types are <code xmlns="http://www.w3.org/1999/xhtml">system</code> and 
	    <code xmlns="http://www.w3.org/1999/xhtml">valid</code>.
    </api:param-description><api:param-name>axis</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var temporal = require("/MarkLogic/temporal.xqy");

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

//  Returns the name of the valid axis for the "temporalCollection" 
//  collection. 
</pre></api:example></api:function></api:function-page>