<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sc.canonicalPath.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sc.canonicalPath</api:function-name><api:suggest>sc.canonicalpath</api:suggest><api:suggest>sc</api:suggest><api:suggest>canonicalpath</api:suggest><api:function-link mode="xquery" fullname="sc:canonical-path">/apidoc/8.0/sc:canonical-path.xml</api:function-link><api:function mode="javascript" name="canonicalPath" type="builtin" lib="sc" category="SchemaBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sc" namespace="http://marklogic.com/xdmp/schema-components" fullname="sc.canonicalPath"><api:summary>
  <p xmlns="http://www.w3.org/1999/xhtml">Returns the canonical schema component path of the component.
  See <a href="http://www.w3.org/TR/xmlschema-ref/">http://www.w3.org/TR/xmlschema-ref/</a>
  for the definition of this path.
  The context item is used if no argument is given.</p>
</api:summary><api:params><api:param name="arg" type="schema-component()" optional="true"><api:param-description>
     The schema component whose canonical path is to be returned.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>schemaComponent()</api:param-type></api:param></api:params><api:return>String?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
sc.canonicalPath(sc.type(47));
  =&gt; "/type::p:integer"
</pre></api:example></api:function></api:function-page>