W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > March 2006

ISSUE-26: qualified local elements and attributes

From: Databinding Issue Tracker <dean+cgi@w3.org>
Date: Mon, 27 Mar 2006 12:54:53 +0000 (GMT)
To: public-xsd-databinding@w3.org
Message-Id: <20060327125453.7CC18BDA7@w3c4.w3.org>


ISSUE-26: qualified local elements and attributes

http://www.w3.org/2005/06/tracker/databinding/issues/26

Raised by: Paul Downey
On product: Basic

The schema element has two optional attributes:

elementFormDefault=[unqualified|qualified]

to control the namespace qualification for
local elements, and

attributeFormDefault=[unqualified|qualified]

to control the namespace qualification for attributes.

The input document says nothing about qualification, 
though does offer a pattern
with a targetNamespace and
  elementFormDefault="qualified" 
  attributeFormDefault="unqualified"

elementFormDefault='unqualified' (the default) appears
to be unusual in Web services and does introduce other
issues, in particular when using a default namespace
in an instance document.

Proposal:

offer the basic pattern:

<xs:schema targetNamespace 
  elementFormDefault="qualified"
  attributeFormDefault="unqualified">

(including patterns using the default values)
and only allow:

<xs:schema targetNamespace
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">

for schemas which do not contain local 
elements and attributes, such as:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   targetNamespace="http://www.w3.org/XML/1998/namespace">
 <xs:attribute name="id" type="xs:ID"/>
</xs:schema>
Received on Monday, 27 March 2006 12:55:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:36 GMT