Name
xs:short — 32 bit signed integers.
Derived from:
xs:int
Primary:
xs:decimal
Known subtypes:
xs:byte
Facets:
xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace
<xs:simpleType name="short" id="short"> <xs:restriction base="xs:int"> <xs:minInclusive value="-32768"/> <xs:maxInclusive value="32767"/> </xs:restriction> </xs:simpleType>
Description
The value space of xs:short
is the set of common
short integers (16 bits), i.e., the integers between -32768 and
32767; its lexical space allows any number of insignificant leading
zeros.
Restrictions
The decimal point (even when followed only by insignificant zeros) is forbidden.
Example
Valid values include "-32768"
,
"0"
, "-0000000000000000000005"
,
or "32767"
.
Invalid values include "32768"
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.