Loading TOC...

MarkLogic Server 11.0 Product Documentation
sc:simple-type

sc:simple-type(
   [$arg as item()]
) as simple-type()?

Summary

Returns the simple type of item, as a schema component, if any. If the item has a complex type rather than a simple type, the empty sequence is returned. The context item is used if no argument is given.

Parameters
arg The item whose simple type is to be returned.

Example

xdmp:describe(sc:simple-type(47))
  => "#xs:integer"

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