Table of Contents | Prev | Next | Bottom |
Quick Table of Contents |
---|
5 Datatypes 5.1 XML Schema Built-in Datatypes 5.2 XForms Datatypes 5.2.1 xforms:listItem 5.2.2 xforms:listItems 5.2.3 xforms:dayTimeDuration 5.2.4 xforms:yearMonthDuration |
This chapter defines the datatypes used in defining an XForms Model.
XForms supports all XML Schema datatypes except for
xsd:duration
, xsd:ENTITY
,
xsd:ENTITIES
, and xsd:NOTATION
. Concepts
value
space, lexical space and
constraining facets are as specified in [XML Schema part 2]. Certain
XML Schema datatypes have been identified as part of a smaller
XForms conformance profile that is being developed separately, and
are marked with an asterisk *. XForms includes datatypes
derived by restriction and derived by list from
these base types. XForms Processors must treat the datatypes listed
in the chapter as in-scope without requiring the inclusion of an
XML Schema.
Built-in primitive types:
dateTime *
time *
date *
gYearMonth *
gYear *
gMonthDay *
gDay *
gMonth *
string *
boolean *
base64Binary *
hexBinary
float
decimal *
double
anyURI *
QName
Note:
The built-in datatype xsd:duration
is not
supported, except as an abstract datatype. Instead, either
xforms:dayTimeDuration
or
xforms:yearMonthDuration
should be used.
Built-in derived types:
normalizedString
token
language
Name
NCName
ID
IDREF
IDREFS
NMTOKEN
NMTOKENS
integer *
nonPositiveInteger *
negativeInteger *
long *
int *
short *
byte *
nonNegativeInteger *
unsignedLong *
unsignedInt *
unsignedShort *
unsignedByte *
positiveInteger *
The Schema for XForms derives the following types to facilitate
defining model
in XForms.
This datatype serves as a base for the
xforms:listItems
datatype. The value space for
listItem permits one or more characters valid for xsd:string,
except white space characters.
XForms includes form controls that produce simpleType list
content. This is facilitated by defining a
derived-by-list
datatype. The value space for
listItems is defined by list-derivation from listItem.
Note:
In most cases, it is better to use markup to distinguish items in a list. See 9.3.3 The itemset Element.
Table of Contents | Top |