Schema Data Types
Schema Data Types
19 pt2
9223372036854775808. Sign omitted, “+” QName atomic XML qualified names §3.2.18 pt2
assumed.
XML Schema - Data Types Example: -1, 0, 12678967543233, +100000.
§3.3.16 pt2
Following types should only be used in attribute declaration for XML compatibility:
ENTITY derived ENTITY attribute type §3.3.11 pt2
m in E x clu s iv e
e nu m era tio n
m in In c lu s iv e
w h ite S p ac e
tifying ASCII characters, simi-
m in L e n gth
<length id = ID <maxInclusive id = ID \r return
m ax L e n g th
to ta lD igits
Simple Data Type lar IsGreek, IsHebrew, IsThai
fixed = boolean : false fixed = boolean : false
p a tte rn
\t tab
len g th
value = nonNegativeInteger > value = anySimpleType > for these ranges of Unicode
. (dot) all characters except newline blocks
Content: (annotation?) </length> Content: (annotation?) </maxInclusive> and return
\p{L} all Letters
<minLength id = ID <maxExclusive id = ID IDREF u u u u u u \s space characters (space, tab,
fixed = boolean : false fixed = boolean : false IDREFS \p{M} all Marks
u u u u u newline, return)
value = nonNegativeInteger > value = anySimpleType > int - 2147483647 to -2147483648. u u u u u u u u u \p{N} all Numbers
\S non-Space characters
Content: (annotation?) </minLength> Content: (annotation?) </maxExclusive> integer \p{P} all Punctuation
u u u u u u u u u \i initial XML name characters
<maxLength id = ID <minInclusive id = ID language - RFC 1766] Example: en, fr u u u u u u (letter _ ;) \p{Z} all Separators
fixed = boolean : false fixed = boolean : false list u u u u u u \p{S} all Symbols
\I not initial XML name charac-
value = nonNegativeInteger > value = anySimpleType /> long - 9223372036854775807 to - ters \p{C} all Others. Additional modify-
Content: (annotation?) </maxLength> Content: (annotation?) </minInclusive> 9223372036854775808 u u u u u u u u u
\c XML NameChar characters ing values like Lu = upper-
<pattern id = ID <minExclusive id = ID Name u u u u u u case,
\C not XML NameChar charac-
value = anySimpleType > fixed = boolean : false NCName u u u u u u Ll = lowercase, Nd = decimal
ters
Content: (annotation?) </pattern> value = anySimpleType > negativeInteger u u u u u u u u u digit, Sm = math symbols,
Content: (annotation?) </minExclusive> \d decimal digits Sc = currency
<enumeration id = ID NMTOKEN u u u u u u
value = anySimpleType > <totalDigits id = ID NMTOKENS u u u u u
\D not decimal digits \P{} not the block or category,
Content: (annotation?) </enumeration> fixed = boolean : false nonNegativeInteger u u u u u u u u u \w XML Letter or Digit characters \P{IsGreek} = not Greek block
value = positiveInteger > \W not XML Letter or Digit charac-
<whiteSpace id = ID nonPositiveInteger u u u u u u u u u
Content: (annotation?) </totalDigits> ters
fixed = boolean : false normalizedString u u u u u u
value = ( ‘collapse’| ‘preserve’| <fractionDigits id = ID NOTATION u u u u u u
‘replace’) > fixed = boolean : false Pattern Examples
positiveInteger u u u u u u u u u
Content: (annotation?) </whitespace> value = nonNegativeInteger > Expression M a tch(es)
QName u u u u u u
Content: (annotation?) </fractionDigits>
short - 32767 to -32768 u u u u u u u u u Chapter \d Chapter 0, Chapter 1, Chapter 2....
string u u u u u u
1 1 Si m p le D at a T ypes and Constrai ni ng Fa c e ts §4.1.5 pt2, Chapter followed by a single whitespace character (space,
tim e - h h : m m : s s u u u u u u u Chapter\s\w tab, newline, etc.), followed by a word character (XML 1.0
Appendix B pt0
token u u u u u u Letter or Digit)
union u u Espanñola Española
unsignedByte - 0 to 255 u u u u u u u u u
fra c tio n D ig its
m a x E x c lu s iv e
m a x In c lu s ive
m in E x c lu s iv e
e n u m e ra tio n
m in Inc lu siv e
\p{Lu}
m in L e n g th
unsignedInt - 0 to 4294967295 u u u u u u u u u
m a x L en g th
to ta lD ig its
u u u u u u u u u
le n g th