W3C

Namespaces in XML 1.1 Requirements

W3C Working Draft 03 April 2002

This version:
http://www.w3.org/TR/2002/WD-xml-names11-req-20020403/
Latest version:
http://www.w3.org/TR/xml-names11-req/
Editor:
Jonathan Marsh, Microsoft <jmarsh@microsoft.com>

Abstract

This document contains requirements on the development of Namespaces in XML version 1.1, which is intended to have a single new feature - the ability to undeclare namespaces. In addition, all errata of version 1.0 will be incorporated.

Status of this Document

This is a W3C Working Draft produced as a deliverable of the XML Core WG according to its charter and the current XML Activity process. A list of current W3C working drafts and notes can be found at http://www.w3.org/TR.

This document is a work in progress representing the current consensus of the W3C XML Core Working Group. It is published for review by W3C members and other interested parties. Publication as a Working Draft does not imply endorsement by the W3C membership. Comments should be sent to www-xml-blueberry-comments@w3.org, which is an automatically and archived email list.

Table of Contents

1 Introduction
2 Design Principles
3 Requirements

Appendix

A References


1 Introduction

Namespaces in XML 1.1 is intended to have a single new feature - the ability to undeclare namespaces. In addition, all [Namespaces in XML 1.0 errata] will be incorporated. The Core Working Group is currently evaluating potential errata which it expects to publish and include in Namespaces in XML 1.1.

[Namespaces in XML 1.0] has the ability to undeclare the default namespace, but doesn't provide a facility to undeclare namespaces with prefixes. An obvious syntax for such functionality would be an empty namespace attribute value (xmlns:prefix=""). This omission has had adverse consequences on infoset manipulations and serializers.

For example, [XInclude 1.0] allows information items to be added to an element as children. These information items come from another document, and may have fewer in-scope namespaces than their parent. There is no mechanism for accurately serializing this situation. If the infoset is naively serialized and reparsed, the children will end up with additional namespace information items which serve no useful purpose. Even worse, the inability to roundtrip an infoset through XML accurately prevents accurate canonicalization, and the security features based upon it ([XML Digital Signatures], [XML Encryption]).

Transmission of XML in a [SOAP] envelope has similar problems. A piece of XML placed within the SOAP envelope for transmission, and extracted at the other end, will have additional namespace information items that have "bled through" from the envelope.

[XQuery] and the [XPath 2.0 and XQuery 1.0 Data Model] increase the likelihood that large data sets will be exposed as XML documents. In a gigabyte database modeled as a single XML document, it is likely that leaf nodes in the data will have a large number of namespace nodes, many of which are relevant only higher up in the hierarchy.

It is the view of the [XML Core Working Group] that [XML 1.1] provides an opportunity to correct this omission. The version declaration version="1.1" provides a versioning marker that can also serve to indicate Namespaces in XML 1.1.

2 Design Principles

  1. The XML 1.0 goals listed in section 1.1 of the XML Recommendation are reaffirmed.

3 Requirements

  1. Namespaces in XML 1.1 must be a superset of Namespaces in XML 1.0 in both functionality and syntax.

  2. Namespaces in XML 1.1 will correspond to XML 1.1.

  3. Namespaces in XML 1.1 must be prepared quickly.

  4. Namespaces in XML 1.1 must be advanced to Recommendation concurrently with XML 1.1.

  5. The changes required for Namespaces in XML 1.0 processors to also process Namespaces in XML 1.1 must be as few and as small as possible.

  6. The Namespaces in XML 1.1 specification must incorporate all published errata to Namespaces in XML 1.0.

  7. In creating Namespaces in XML 1.1, the working group should not consider any revisions to Namespaces in XML 1.0 except those needed to accomplish these requirements.

A References

Namespaces in XML 1.0 errata
Namespaces in XML 1.0 errata World Wide Web Consortium, 2002. (See http://www.w3.org/XML/xml-names-19990114-errata.)
Namespaces in XML 1.0
Tim Bray, Dave Hollander, and Andrew Layman, editors. Namespaces in XML. World Wide Web Consortium, 1999. (See http://www.w3.org/TR/REC-xml-names/.)
XML 1.1
John Cowan XML 1.1 World Wide Web Consortium, 2002. (See http://www.w3.org/TR/xml11/.)
XInclude 1.0
Jonathan Marsh, David Orchard XML Inclusions (XInclude) 1.0 World Wide Web Consortium, 2002. (See http://www.w3.org/TR/xinclude/.)
XQuery
Scott Boag, Don Chamberlin, Mary F. Fernandez, Daniela Florescu, Jonathan Robie, Jérôme Siméon, Mugur Stefanescu. XQuery 1.0, An XML Query Language World Wide Web Consortium, 2002. (See http://www.w3.org/TR/xquery/.)
XPath 2.0 and XQuery 1.0 Data Model
Mary F. Fernandez, Jonathan Marsh, Martin Nagy. XPath 2.0 and XQuery 1.0 Data Model World Wide Web Consortium, 2002. (See http://www.w3.org/TR/query-datamodel/.)
XML Digital Signatures
Donald Eastlake, Joseph Reagle, David Solo, editors. XML-Signature Syntax and Processing World Wide Web Consortium, 2002. (See http://www.w3.org/TR/xmldsig-core/.)
XML Encryption
Donald Eastlake, Joseph Reagle. XML Encryption Syntax and Processing World Wide Web Consortium, 2002. (See http://www.w3.org/TR/xmlenc-core/.)
SOAP
Martin Gudgin, Marc Hadley, Jean-Jacques Moreau, Henrik Frystyk Nielsen. SOAP Version 1.2 part 1: Messaging Framework World Wide Web Consortium, 2002. (See http://www.w3.org/TR/soap12-part1/.)
XML Core Working Group
XML Core Working Group Home Page (See http://www.w3.org/XML/Group/Core.html.)