Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.referenceScalarType

cts.referenceScalarType(
   index as cts.reference
) as String

Summary

Accessor for the scalar type of a reference to a value lexicon.

Parameters
index The value lexicon reference, as created from cts:element-reference, for example.

Example

cts.referenceScalarType(cts.elementReference(xs.QName("TITLE")));
=>
"string"

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