sc.type( [arg as Item] ) as schemaType()?
Returns the type of item, as a schema component, if any. If the item has no type, the empty sequence is returned. The context item is used if no argument is given.
Parameters | |
---|---|
arg | The item whose type is to be returned. |
xdmp.describe(sc.type(47)); => "#xs:integer"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.