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 |
This chapter defines the datatypes used in defining an XForms model.
XForms includes all XML Schema datatypes. Concepts value space, lexical space and constraining facets are as specified in [XML Schema part 2]. XML Schema features used in XForms are divided into two modules, called Basic and Full. Base types included in module basic are marked with an asterisk *. Datatypes derived by restriction and derived by list from these base types are also included in the basic module.
Built-in primitive types:
duration *
dateTime *
time *
date *
gYearMonth *
gYear *
gMonthDay *
gDay *
gMonth *
string *
boolean *
base64Binary *
hexBinary
float
decimal *
double
anyURI *
QName
NOTATION
Built-in derived types:
normalizedString
token
language
Name
NCName
ID
IDREF
IDREFS
ENTITY
ENTITIES
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. These types are included in XForms Basic.
This datatype serves as a base for the listItem datatype. The value space for listItem permits one or more characters valid for xsd:string, except whitespace 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 8.11.3 itemset.
Table of Contents | Top |