Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.referenceNamespaces

cts.referenceNamespaces(
   index as cts.reference
) as Object

Summary

Accessor for the namespaces of a reference to a [geospatial] path lexicon.

Parameters
index The value lexicon reference, as created from cts:[geospatial-]path-reference, for example.

Example

cts.referenceNameSpaces(cts.pathReference("/a:section/b:title", ["type=point"],
                        {a:"a-namespace", b:"b-namespace"}));
=>
{"a":"a-namespace", "b":"b-namespace"}

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.