by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

xsd:integer — Signed integers of arbitrary length

Synopsis

<xsd:simpleType name="integer" id="integer">
 <xsd:restriction base="xsd:decimal">
 <xsd:fractionDigits value="0" fixed="true"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:decimal

Primary

xsd:decimal

Known subtypes

xsd:nonPositiveInteger, xsd:long, xsd:nonNegativeInteger

Data parameters (facets)

enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits

Description

The value space of xsd:integer includes the set of all the signed integers, with no restriction on range. 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 xsd:float and xsd:double.

Example

Valid values for xsd:integer include -123456789012345678901234567890, 2147483647, 0, or -0000000000000000000005.

Invalid values include 1., 2.6, and A.


This text is released under the Free Software Foundation GFDL.