Professional Documents
Culture Documents
SchemaDataTypesQR 2 PDF
SchemaDataTypesQR 2 PDF
Quick Reference
ver 1/03
Namespaces
atomic
derived
nonPositive
nonPositiveInteger
derived integer
positiveInteger
derived
nonNegativeInteger
short
derived int
unsignedByte
derived
unsignedShort
derived
unsignedLong
derived
nonNegative
unsignedInt
atomic
3.2.16 pt2
Text types
anyURI
atomic
language
derived
token
derived
string
atomic
normalizedString
string
token
negativeInteger
Logic Types
base64Binary
hexBinary
3.1 pt2
http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema-datatypes
boolean
derived integer
n o n N e g a t i v e I n t e g e r derived integer
long
derived
normalizedString
3.2.1 pt2
Tokenized strings.
3.3.2 pt2
unsignedLong
unsignedShort
derived unsignedInt
Date Tim e T y p e s
date
atomic
dateTime
atomic
duration
atomic
Number Types
byte
derived short
decimal
atomic
double
atomic
float
atomic
int
derived long
integer
derived decimal
gDay
atomic
gMonth
gMonthDay
atomic
atomic
gYear
atomic
gYearMonth
atomic
tim e
atomic
3.2.14 pt2
XML Types
Name
NCName
derived
token
derived
Name
XML Names
3.3.6 pt2
3.3.7 pt2
atomic
NOTATION type
3.2.19 pt2
N O T A T IO N
atomic
XML qualified names
3.2.18 pt2
QName
Following types should only be used in attribute declaration for XML compatibility:
ENTITY
ENTITIES
ID
IDREF
IDREFS
NMTOKEN
NMTOKENS
3.3.11 pt2
3.3.12 pt2
ID attribute type
3.3.8 pt2
3.3.9 pt2
3.3.10 pt2
3.3.4 pt2
3.3.5 pt2
Built-in Types
anyType
anySimpleType
derived
NCName
derived
ENTITY
derived
NCNAME
derived
NCName
derived
IDREF
derived
token
derived
NMTOKENS
ur-type
definition
ur-type
definition
4.1.6 pt2
4.1.2 pt2
Content Model of
Schema Component
Data Type
String Value
<notation id = ID
name = NCName
maxOccurs = ( nonNegativeInteger | unbounded) : 1
type = QName >
Content: ( (annotation | (simpleType | complexType | group |
Attribute Default Value
attributeGroup))*)
</notation>
<enumeration id = ID
value = anySimpleType >
Content: (annotation?) </enumeration>
<whiteSpace id = ID
fixed = boolean : false
value = ( collapse| preserve|
replace) >
Content: (annotation?) </whitespace>
IDREFS
<fractionDigits id = ID
fixed = boolean : false
value = nonNegativeInteger >
Content: (annotation?) </fractionDigits>
date - CCYY-MM-DD
dateTime - CCYY-MM-DDThh:mm:ss
decimal - Arbitrary precision decimal
numbers
double - Double-precision 64-bit floating
point
duration - PnYn MnDTnH nMn S
gDay
gMonth
gMonthDay
gYear
gYearMonth
ENTITY
hexBinary
ID
\s
\S
non-Space characters
integer
\i
list
long - 9223372036854775807 to 9223372036854775808
Name
NCName
NMTOKEN
NMTOKENS
\I
u
\c
\C
\d
decimal digits
\D
nonNegativeInteger
\w
nonPositiveInteger
\W
normalizedString
NOTATION
u
u
string
tim e - h h : m m : s s
token
\p{IsBasicLatin} block escape identifying ASCII characters, similar IsGreek, IsHebrew, IsThai
for these ranges of Unicode
blocks
\p{L}
all Letters
\p{M}
all Marks
\p{N}
all Numbers
\p{P}
all Punctuation
\p{Z}
all Separators
\p{S}
all Symbols
\p{C}
\P{}
Pattern Examples
Expression
M a tch(es)
Chapter \d
Chapter\s\w
Espanñola
Espaola
union
unsignedByte - 0 to 255
unsignedInt - 0 to 4294967295
unsignedLong - 0 to
18446744073709551615
unsignedShort - 0 to 65535
\p{Lu}
a*x
a?x
ax, x
a+x
(a|b)+x
ax, bx, aax, abx, bax, bbx, aaax, aabx, abax, abbx, baax,
babx, bbax, bbbx, aaaax....
[^0-9]x
\Dx
.x
.*abc.*
ab{2}x
abbx
ab{2,4}x
ab{2,}x
(ab){2}x
ababx
S p e c i a l C h a r a c t e r s n e e d i n g t o b e e s c a p e d w i t h a \
Character References
u
\|.-^?*+{}()[]
. (dot)
u
u
tab
boolean
ENTITIES
to ta lD ig its
\t
QName
m in Inc lu siv e
m in E x c lu s iv e
w hite S p a c e
m a x E x c lu s iv e
e n u m e ra tio n
m a x In c lu s ive
p atte rn
m a x L en g th
le n g th
m in L e n g th
anyURI
base64Binary
return
positiveInteger
4.1.5 pt2,
Appendix B pt0
\r
negativeInteger
<totalDigits id = ID
fixed = boolean : false
value = positiveInteger >
Content: (annotation?) </totalDigits>
to ta lD igits
<minExclusive id = ID
fixed = boolean : false
value = anySimpleType >
Content: (annotation?) </minExclusive>
m in In c lu s iv e
<pattern id = ID
value = anySimpleType >
Content: (annotation?) </pattern>
m in E x clu s iv e
<minInclusive id = ID
fixed = boolean : false
value = anySimpleType />
Content: (annotation?) </minInclusive>
m a x E xc lu siv e
<maxLength id = ID
fixed = boolean : false
value = nonNegativeInteger >
Content: (annotation?) </maxLength>
IDREF
w h ite S p ac e
<maxExclusive id = ID
fixed = boolean : false
value = anySimpleType >
Content: (annotation?) </maxExclusive>
m a x In c lu s iv e
<minLength id = ID
fixed = boolean : false
value = nonNegativeInteger >
Content: (annotation?) </minLength>
e nu m era tio n
<maxInclusive id = ID
fixed = boolean : false
value = anySimpleType >
Content: (annotation?) </maxInclusive>
p a tte rn
<length id = ID
fixed = boolean : false
value = nonNegativeInteger >
Content: (annotation?) </length>
m ax L e n g th
4.3 pt2
len g th
m in L e n gth
10 Constraining Facets
*
?
+
0 or more,
0 or 1,
1 or more
Interval Operators
ver 1/03