IDMW 2.0 XML schema documentation
Data types
Introduction > Data types

 

Data types and value ranges

The IDM schema uses the data types defined in the standard XML schema 1.0 second edition (28 October 2004).

IDMP version 2.4 uses the following data types:

boolean

This data type maps the logical values "true" or "false". In accordance with the W3C recommendation for XML schemas, the values that can be used in the IDM are true/false or 1/0.

date

In the IDMP, the data type date is used in conformity with the XML schemas as follows:

YYYY-MM-DD

Y = year, M = month, D = day

integer

Numbers can be positive and negative integers.

nonNegativeInteger

Value is a positive integer, including 0

positiveInteger

Value is a positive integer, excluding 0

decimal

The data type is used in the IDMP for floating-point values. Floating-point values for this data type are, as recommended by the W3C, stored as 126.56 or -45.98000 or +27.0.

string

A limited number of alphanumeric characters and special characters.

anyURI

The data type is used in the IDMP for URLs.anyURI represents a Uniform Resource Identifier (URI). The lexical part of anyURI is an indefinite sequence of characters that correspond to a legal URI. An anyURI value can be absolute or relative and may contain fragment codes (e.g. an URI reference).

language

The data type is used in the IDMP for the mapping of valid language keys.language represents codes for natural languages Tags for the Identification of Languagesas defined in the Thevaluerangeof language is the quantum of all character sequences that represent a valid code of a natural language. For ISO languages, the format consists of a sequence of 2-3 lower case letters optionally followed by a hyphen and a country code consisting of 2 upper case letters, e.g. en-US.

Additionally, there is also a user-defined data type:

operator

Thy data type is used for rules in the IDMP. This simple, self-defined data type defines an operator for comparisons. The comparison operator is a string of 1 to 4 characters length and may contain the following values:

eq (equal)

ne (not equal)

in (is contained in a quantity)

nin (is not contained in a quantity)

gt (greater)

lt (less)

ge (greater than or equal)

le (less than or equal)

The value ranges of the above data types are usually restricted for the elements in the IDMP. The "restrictions" in the data type definition contains restrictions for minimum and maximum values, permitted characters (pattern) and value lists.

In the documentation of the XML schema of the IDM, the value ranges are specified by the information coming after M and P.