[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML Schema Question: default namespace misses attributes

  • From: james anderson <james.anderson@m...>
  • To: xml-dev@x...
  • Date: Wed, 09 Feb 2000 11:35:23 +0100

default namespace in xml


Andrew Layman wrote:
> 
> ...
> 
> With particular reference to to discussion below, the specification does not
> use phrasing like "in a namespace". (Actually, it does, once, but only as a
> comment to an example.) What the specification does do is provide syntax to
> associate qualified names with URIs, thereby allowing certain names to be
> universalized.
> 
> ... the starting point for doing this is to read what
> is literally written there.
> 

 That's what I keep trying to do. The problem is, when I do that, I
discover concepts which are difficult to reconcile with the ancilliary
proposals and discussions.
 For example (from REC-xml-names-19990114):


"[Definition:] An XML namespace is a collection of names, identified by
a URI reference [RFC2396], which are used in XML documents as element
types and attribute names. XML namespaces differ from the "namespaces"
conventionally used in computing disciplines in that the XML version has
internal structure and is not, mathematically speaking, a set. These
issues are discussed in 'A. The Internal Structure of XML Namespaces'."

 or

"5.2 Namespace Defaulting

A default namespace is considered to apply to the element where it is
declared (if that element has no namespace prefix), and to all elements
with no prefix within the content of that element. If the URI reference
in a default namespace declaration is empty, then unprefixed elements in
the scope of the declaration are not considered to be in any namespace.
Note that default namespaces do not apply directly to attributes."


 The concepts of "namespace as collection" and "membership in a
collection" would appear to be present in the specification. If there
were to ever be a revised draft, perhaps it would work out their
implications and thereby avoid such unpleasantries as those in the
schema proposal for the purpose of identifying "names in no namespace".


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.