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.attributeDecl | 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.canonicalPath | Returns the canonical schema component path of the component. |
sc.complexType | Returns the complex type of item, as a schema component, if any. |
sc.componentProperty | Returns the named property of the schema component. |
sc.elementDecl | Returns the element declaration of item, as a schema component, if any. |
sc.facets | Returns the facets of the component, if any. |
sc.functionParameterType | Returns the declared parameter type of a specific parameter of the function item as a schema component. |
sc.functionReturnType | 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.schemaFromPath | Get a schema object as a value based on its namespace and schema location hint. |
sc.simpleType | 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.typeApply | Apply a type to an item to construct a typed instance of that type. |
sc.typeNamed | Returns the type with the given name, if any, as a schema component. |