The table below lists all the
sc built-in
functions (in this namespace:
http://marklogic.com/xdmp/schema-components
).
Function name | Description |
---|---|
sc:annotations | Returns the schema annotations of the component, if any. |
sc:attribute-decl | Returns the attribute declaration of item, as a schema component, if any. |
sc:attributes | Returns the attribute declarations of the schema component, if any. |
sc:canonical-path | Returns the canonical schema component path of the component. |
sc:complex-type | Returns the complex type of item, as a schema component, if any. |
sc:component-property | Returns the named property of the schema component. |
sc:element-decl | Returns the element declaration of item, as a schema component, if any. |
sc:facets | Returns the facets of the component, if any. |
sc:function-parameter-type | Returns the declared parameter type of a specific parameter of the function item as a schema component. |
sc:function-return-type | Returns the return type of a function item as a schema component. |
sc:name | Returns the name of the schema component, if any. |
sc:particles | Returns the particles of the schema component, if any. |
sc:schema | Returns the root schema of the item. |
sc:schema-from-path | Get a schema object as a value based on its namespace and schema location hint. |
sc:simple-type | Returns the simple type of item, as a schema component, if any. |
sc:type | Returns the type of item, as a schema component, if any. |
sc:type-apply | Apply a type to an item to construct a typed instance of that type. |
sc:type-named | Returns the type with the given name, if any, as a schema component. |