This document is also available in these non-normative formats: XML, XHTML with changes since version 1.0 marked, XHTML with changes since previous Working Draft marked, Independent copy of the schema for schema documents, Independent copy of the DTD for schema documents, Independent tabulation of components and microcomponents, and List of translations.
Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This ↑is a member-only review version which will in due course be published as a↑ W3C Proposed Recommendation ↓specifies↓ ↑specifying↑ the W3C XML Schema Definition Language (XSD) 1.1. It ↑has no formal standing within W3C; it↑ is here made available for review by W3C members↓ and the public↓. XSD 1.1 retains all the essential features of XSD 1.0, but adds several new features to support functionality requested by users, fixes many errors in XSD 1.0, and clarifies wording. ↑ This draft was created on 21 April 2011. It reflects (unless otherwise noted elsewhere) all decisions on this document made by the Working Group through 18 March 2011. The document thus incorporates all decisions made by the Working Group to date. ↑
xsi:type attributes
and their effect has been clarified in
Element Locally Valid (Element) (§3.3.4.3). In particular, the
revisions attempt to make clearer just what happens
in cases where the xsi:type
attribute in the document instance cannot be used
(because the type named is unknown, or otherwise
not usable). This resolves issue 11219 Editorial revision of Element Locally Valid (Element).
xs:override element
are handled using the elementFormDefault and
other schema-document-level defaults from the schema document
being overridden, not the schema documnt containing the
xs:override element. This resolves issue
10652
xs:override and document-level defaults.
inheritable attribute of
the xs:attribute element
(resolving issue
11070
DTD for schema documents: inheritable declared as %URIref).
xs:group within the named model group xs:allModel
has been corrected to make the type of xs:all a legal
restriction of its base type and make the schema for schema documents
conformant to this specification. This resolves issue
11092
Error in S4SD: complexType name="all" is not a valid restriction.xs:ID, xs:IDREF, xs:IDREFS,
xs:ENTITY, and xs:ENTITIES apply not only
to the built-in types themselves but also to types derived from them
by restriction, list construction, union, and extension.
This resolves issue
10662
Should IDREFS and ENTITIES be magic types?.
For those primarily interested in the changes since version 1.0, the appendix Changes since version 1.0 (non-normative) (§G) is the recommended starting point. It summarizes both changes made since XSD 1.0 and some changes which were expected (and predicted in earlier drafts of this specification) but have not been made after all. Accompanying versions of this document display in color all changes to normative text since version 1.0 and since the previous Working Draft.
The Last Call review period for this document extends until 31 December 2009. Comments on this document should be made in W3C's public installation of Bugzilla, specifying "XML Schema" as the product. Instructions can be found at http://www.w3.org/XML/2006/01/public-bugzilla. If access to Bugzilla is not feasible, please send your comments to the W3C XML Schema comments mailing list, www-xml-schema-comments@w3.org (archive) Each Bugzilla entry and email message should contain only one comment.
Although feedback based on any aspect of this specification is welcome, there are certain aspects of the design presented herein for which the Working Group is particularly interested in feedback. These are designated "priority feedback" aspects of the design, and identified as such in editorial notes at appropriate points in this draft. Any feature mentioned in a priority feedback note is a "feature at risk": the feature may be retained as is or dropped, depending on the feedback received from readers, schema authors, schema users, and implementors.
Publication as a ↓Proposed Recommendation↓↑Editors' Draft↑ does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document has been produced by the W3C XML Schema Working Group as part of the W3C XML Activity. The goals of XSD 1.1 are discussed in the document Requirements for XML Schema 1.1. The authors of this document are the members of the XML Schema Working Group. Different parts of this specification have different editors.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
The English version of this specification is the only normative version. Information about translations of this document is available at http://www.w3.org/2003/03/Translations/byTechnology?technology=xmlschema.
The presentation of this document has been augmented to
identify changes from a previous version, controlled by dg-b12454.xml. Three kinds of changes are highlighted:
↑new, added text↑,
↑changed text↓, and
↓deleted text↓.
...
The sub-sections of Schema Component Details (§3) define an XML representation for type definitions and element declarations and so on, specifying their target namespace and collecting them into schema documents. The following sections describe how to assemble a complete schema from multiple sources.
<override>)...
schemaLocation [attribute]
successfully resolves one or more of the following is true:targetNamespace [attribute], and its
·actual value· is identical to the ·actual value· of the targetNamespace
[attribute] of Dnew (which must have such an [attribute]).
targetNamespace
[attribute].
targetNamespace [attribute] (but Dnew
does).
xs:override (§F.2). Then
Dold′ corresponds to a conforming schema (call it Sold).
<include>) (§4.2.3).
xs:override (§F.2). Then
Dold′ corresponds to a conforming schema (call it S2).
<include>) (§4.2.3).
xs:override (§F.2)
is to make Dold′ identical to Dold except that some elements in
Dold are replaced
or modified, as described in
Transformation for xs:override (§F.2).
Implementations do not have to use [XSLT 2.0]
transformation, as long as the same result is produced.elementFormDefault,
attributeFormDefault, blockDefault,
finalDefault, and so on) are applied not in the
context of the document containing the <override>
(Dnew) but in the context of the document containing the
original overridden declaration or definition (Dold).
Unexpected results may be minimized if the children of an <override> are made independent of the document-level
defaults by explicitly specifying the desired values for
the properties in question.
<redefine>) (§4.2.4);
import, as defined in
References to schema components across namespaces (<import>) (§4.2.6);
and overriding, as defined in this section,
that if the same schema document is both (a) included, imported, or
redefined, and (b) non-vacuously overridden, or if the same
schema document overridden twice in
different ways, then
the resulting schema will have duplicate and conflicting versions
of some components and will not be conforming,
just as if two different schema documents had been
included, with different declarations for the same
·named· components.