Name
xs:schema
Attributes
attributeFormDefault
A schema-wide setting for whether the
form
attribute onxs:attribute
elements should default toqualified
orunqualified
(the default).blockDefault
A schema-wide setting for whether the
block
attribute onxs:element
andxs:complexType
elements should default to#all
or some combination ofextension
,restriction
, orsubstitution
.elementFormDefault
A schema-wide setting for whether the
form
attribute onxs:element
elements should default toqualified
orunqualified
(the default).finalDefault
A schema-wide setting for whether the
final
attribute onxs:element
andxs:complexType
elements should default to#all
,extension
, orrestriction
.targetNamespace
A URI that is the namespace used by all components defined in this schema. If no target namespace is specified, the elements and attributes will be in no namespace unless, perhaps, they are included by
xs:include
, which may assign a different namespace to unqualified components.version
The version of the schema this particular document represents.
xml:lang
The human language used to write the schema.
Contents
((xs:include | xs:import | xs:redefine | xs:annotation)*, ((xs:simpleType | xs:complexType | xs:group | xs:attributeGroup) | xs:element | xs:attribute | xs:notation), xs:annotation* )*
xs:schema
is the
container element in which all other schema components must be
placed. Its attributes set the target namespace used throughout
the schema as well as a number of defaults for other
declarations.
Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.