Loading TOC...

TypeInfo.isDerivedFrom

TypeInfo.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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.