XML technologies / XML Schema / Data type reference / xs:unsignedByte
(Excerpt from “XML Schema” by Eric van der Vlist)
Unsigned 8-bit integers
Derived from: xs:unsignedShort
Primitive type: xs:decimal
Known subtypes: none
Facets: xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whitespace
Definition
<xs:simpleType name="unsignedByte" id="unsignedBtype">
<xs:restriction base="xs:unsignedShort">
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>Description
The value space of xs:unsignedByte consists of integers from 0 to 255, the unsigned values fitting in an 8-bit word. The lexical space permits an optional + sign and leading zeros before significant digits.
Restrictions
The lexical space does not permit values expressed in other number bases, such as hexadecimal, octal or binary.
A decimal point is forbidden, even when followed only by insignificant zeros.
Example
Valid values include "255", "0", "+0000000000000000000005" or "1".
Invalid values include "-1" and "1.".
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de