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 11 January 2011. It reflects (unless otherwise noted elsewhere) all decisions on this document made by the Working Group through 4 November 2010 (with the exception of part of the group's decision on bug 11219). The document thus incorporates all decisions made by the Working Group to date, with the exception noted. A proposed wording change for the note following Element Locally Valid (Element) (§3.3.4.3) is shown as 'non-status-quo' text. It has not gone through a full cycle of editorial revisions and is subject to change. ↑
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).
inheritable attribute of
the xs:attribute element
(resolving issue
11070
DTD for schema documents: inheritable declared as %URIref).
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-b11222.xml. Three kinds of changes are highlighted:
↑new, added text↑,
↑changed text↓, and
↓deleted text↓.
1 Introduction
1.1 Introduction to Version 1.1
1.2 Purpose
1.3 Namespaces and Language Identifiers
A Schema for Schema Documents (Structures) (normative)
B Outcome Tabulations (normative)
B.1 Validation Rules
B.2 Contributions to the post-schema-validation infoset
B.3 Schema Representation Constraints
B.4 Schema Component Constraints
C Terminology for implementation-defined features (normative)
C.1 Subset of the Post-schema-validation Infoset
C.2
Terminology of schema construction
Complex Type Definitions provide for:
mixed = true.
xs) namespace,
unless that expanded name is one of
xs:enumeration,
xs:pattern, or
xs:assert.
mode ≠ 'none',
then there
must be an <any> among the [children] of
<openContent>.
mode = 'none',
then there must not be an <any> among the [children] of
<openContent>.
mixed [attribute] is present on both
<complexType> and <complexContent>,
then ·actual values· of those [attributes]
must be the same.
Simple type definitions provide for constraining character information item [children] of element and attribute information items.
xs) namespace,
unless that
expanded name is one of
xs:enumeration,
xs:pattern, or
xs:assert.
base [attribute]
or a <simpleType> among its [children], but not
both.itemType [attribute]
or a <simpleType> among its [children],
but not both.memberTypes [attribute] or it
has at least one simpleType [child].