Name

isDerivedFrom: typeNamespaceArg, typeNameArg, derivationMethod(3)

Synopsis

This method provides the capability to determine the relationship between the target data type and another data type (given by the typeNameArg and typeNamespaceArg arguments). This method returns true if the target type is derived from the given data type via one of the methods passed in using the derivationMethod bitmask argument; otherwise, it returns false. Currently, this method is only defined for use with XML Schema validation. For more information on type derivation methods in XML Schema, see Chapter 17.

Arguments

typeNamespaceArg: DOMString

The namespace associated with the typeNameArg argument.

typeNameArg: DOMString

The type name to be compared with the target type.

derivationMethod: unsigned long

A bitmask that restricts which types of derivation the method will recognize. The valid bitmask values are listed below:

Constant name

Value

Meaning

DERIVATION_RESTRICTION

0x00000001

The target type is derived from the other type by restricting its possible values (e.g., a positive integer is derived from a signed integer by restricting it to nonnegative values).

DERIVATION_EXTENSION

0x00000002

The target type is derived from the other type by extending its possible values (e.g., a signed integer type would be an extension of an unsigned integer).

DERIVATION_UNION

0x00000004

The target type is partially derived from the other type by its inclusion in a union.

DERIVATION_LIST

0x00000008

The target type is a list of items ...

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.