XML technologies / XML Schema / Data type reference / xs:long

(Excerpt from “XML Schema” by Eric van der Vlist)

Signed 64-bit integers

Derived from: xs:integer

Primitive type: xs:decimal

Known subtypes: xs:int

Facets: xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace

Definition

<xs:simpleType name="long" id="long">
    <xs:restriction base="xs:integer">
        <xs:minInclusive value="-9223372036854775808"/>
        <xs:maxInclusive value="9223372036854775807"/>
    </xs:restriction>
</xs:simpleType>

Description

The value space of xs:long is the set of ordinary double-length integers, 64 bits, from -9223372036854775808 to 9223372036854775807. The lexical space permits any number of insignificant leading zeros.

Restrictions

A decimal point is forbidden, even when followed only by insignificant zeros.

Example

Valid values for xs:long include "-9223372036854775808", "0", "-0000000000000000000005" or "9223372036854775807".

Invalid values include "9223372036854775808" and "1.".

   

 

 

 

back to top