ISSUE-26
qualified local elements and attributes
- State:
- CLOSED
- Product:
- Basic
- Raised by:
- Paul Downey
- Opened on:
- 2006-03-27
- Description:
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>
- Related emails:
- ISSUE-26: qualified local elements and attributes (from dean+cgi@w3.org on 2006-03-27)
- Agenda: XML Schema Patterns for Databinding Telcon 28 March 2006 (from paul.downey@bt.com on 2006-03-28)
- Minutes from XML Schema Patterns for Databinding call 28 March 2006 (from paul.downey@bt.com on 2006-03-28)
- Re: ISSUE-26: qualified local elements and attributes (from Paul.V.Biron@kp.org on 2006-04-20)
Related notes:
2006-03-28: closed with proposal in issue Description