XML technologies / XML Schema / Data type reference / xs:int
(Excerpt from “XML Schema” by Eric van der Vlist)
Signed 32-bit integers
Derived from: xs:long
Primitive type: xs:decimal
Known subtypes: xs:short
Facets: xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace
Definition
<xs:simpleType name="int" id="int">
<xs:restriction base="xs:long">
<xs:minInclusive value="-2147483648"/>
<xs:maxInclusive value="2147483647"/>
</xs:restriction>
</xs:simpleType>Description
The value space of xs:int is the set of ordinary single-length integers, 32 bits, from -2147483648 to 2147483647. The lexical space permits any number of insignificant leading zeros.
Restrictions
A decimal point is forbidden, even when followed only by insignificant zeros.
-0 and +0 are treated as equal, unlike the behavior of xs:float and xs:double.
Example
Valid values include "-2147483648", "0", "-0000000000000000000005" oder "2147483647".
Invalid values include "-2147483649" and "100000000000".
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de