<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.pathReference.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.pathReference</api:function-name><api:suggest>cts.pathreference</api:suggest><api:suggest>cts</api:suggest><api:suggest>pathreference</api:suggest><api:function-link mode="xquery" fullname="cts:path-reference">/apidoc/8.0/cts:path-reference.xml</api:function-link><api:function mode="javascript" name="pathReference" type="builtin" lib="cts" category="SearchBuiltins" subcategory="Lexicon" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.pathReference"><api:summary>
  Creates a reference to a path value lexicon, for use as a
  parameter to cts:value-tuples.  Since lexicons are implemented with range
  indexes, this function will throw an exception if the specified range index
  does not exist.
</api:summary><api:params><api:param name="path-expression" type="xs:string"><api:param-description>
    A path range index expression.</api:param-description><api:param-name>path-expression</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
    Options.  The default is ().
    <p xmlns="http://www.w3.org/1999/xhtml">
      Options include:</p>
      <blockquote xmlns="http://www.w3.org/1999/xhtml"><dl>
        <dt>"type=<em>type</em>"</dt>
        <dd>Use the lexicon with the type specified by <em>type</em>
        (int, unsignedInt, long, unsignedLong, float, double, decimal,
        dateTime, time, date, gYearMonth, gYear, gMonth, gDay,
        yearMonthDuration, dayTimeDuration, string, anyURI, point, or
        long-lat-point)</dd>
        <dt>"collation=<em>URI</em>"</dt>
        <dd>Use the lexicon with the collation specified by <em>URI</em>.</dd>
        <dt>"coordinate-system=<em>coord</em>"</dt>
        <dd>Use the given coordinate system. Possible values
        are "wgs84" and "raw".</dd>
        <dt>"nullable"</dt>
        <dd>Allow null values in tuples reported from cts:value-tuples when
        using this lexicon.</dd>
        <dt>"unchecked"</dt>
        <dd>Read the scalar type, collation and coordinate-system info
        only from the input. Do not check the definition against the
        context database.</dd>
     </dl></blockquote>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="map" type="map:map" optional="true"><api:param-description>
  A map of namespace bindings. The keys should be namespace prefixes and the
  values should be namespace URIs. These namespace bindings will be added to
  the in-scope namespace bindings in the interpretation of the path.
  </api:param-description><api:param-name>map</api:param-name><api:param-type>Object</api:param-type></api:param></api:params><api:return>cts.reference</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.pathReference("/section/title");
=&gt;
cts.pathReference("/section/title",
  ["type=string","collation=http://marklogic.com/collation/"])
</pre></api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.pathReference("/a:section/b:title",
  ["type=string","collation=http://marklogic.com/collation/codepoint"],
  {a:"a-namespace", b:"b-namespace"});
=&gt;
cts.pathReference("/a:section/b:title",
  ["type=string","collation=http://marklogic.com/collation/codepoint"],
  {a:"a-namespace", b:"b-namespace"})
</pre></api:example></api:function></api:function-page>