xsd:short
The type xsd:short
represents an integer between -32768 and 32767. An xsd:short
is a sequence of digits, optionally preceded by a + or - sign. Leading zeros are permitted, but decimal points are not.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: builtintypes.xsd
Content
- Based on xsd:int
- Minimum Inclusive: -32768
- Maximum Inclusive: 32767
- Fraction Digits: 0 (Defined in type xsd:integer)
- Pattern: [\-+]?[0-9]+ (Defined in type xsd:integer)
- White Space: collapse (Defined in type xsd:decimal)
Examples
Valid values | Comment |
---|---|
+3 | |
122 | |
0 | |
-1231 | |
Invalid values | Comment |
32770 | number is too large |
3.0 | value must not contain a decimal point |
an empty value is not valid, unless xsi:nil is used |