xs:integer

The data type xs:integer represents a decimal number that does not include a trailing decimal point. The base type of xs:integer is xs:decimal.

Lexical form

The lexical form of xs:integer is a finite-length sequence of decimal digits (0 to 9) with an optional leading sign. If the sign is omitted, a positive sign (+) is assumed. The following numbers are all valid examples of integers: -1, 0, 12678967543233, +100000.

Constructor

Use the following syntax to construct an instance of xs:integer:

>>-xs:integer(value)-------------------------------------------><

value
The value that is to be constructed. If this value is an empty sequence, the empty sequence is returned.

If value is illegal for the target data type, the constructor function returns an error.