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".
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access