Name
xs:int — 32 bit signed integers.
Derived from:
xs:long
Primary:
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
<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 common
single size integers (32 bits), i.e., the integers between
-2147483648 and 2147483647, its lexical space allows any number of
insignificant leading zeros.
Restrictions
The decimal point (even when followed only by insignificant zeros) is forbidden.
-0 and +0 are considered equal, which is different from the behavior
of xs:float
and xs:double
.
Example
Valid values include "-2147483648"
,
"0"
, "-0000000000000000000005"
,
or "2147483647"
.
Invalid values include "-2147483649"
and
"1"
.
Get XML Schema 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.