MarkLogic Server 11.0 Product Documentation
TypeInfo.isDerivedFromTypeInfo.isDerivedFrom(
uri as String?,
localname as String,
flag as Number
) as String
Summary
Whether this type is derived from a named type by the selected methods.
Parameters |
uri |
The namespace URI of the target type.
|
localname |
The local name of the target type.
|
flag |
Flags indicating what derivation methods are permitted. The value should be
the or-ing together of:
- 1
- restriction
- 2
- extension
- 4
- union
- 8
- list
A flag value of 0 means that all methods are allowed.
|
Example
cts.doc("example.xml").getElementsByTagName("uid").schemaTypeInfo.
isDerivedFrom("http://www.w3.org/2001/XMLSchema", "unsignedLong", 1)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.