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

what is a namespace anyway? [Re: Another errata?]

  • From: james anderson <James.Anderson@m...>
  • To: Tim Bray <tbray@t...>
  • Date: Sat, 30 Jan 1999 19:57:16 +0100

what is a namespace
with due respect, there is something which is rather unclear here. does
anybody really understand this stuff?

this from REC-xml-names-19990114, appendix A "the internal structure of
namespaces", section a.2 "xml namespace partitions"

The Per-Element-Type Partitions 
       Each type in the All Element Types Partition has an associated
namespace in which appear the
       names of the unqualified attributes that are provided for that element.
This is a traditional namespace
       because the appearance of duplicate attribute names on an element is
forbidden by XML 1.0. The
       combination of the attribute name with the element's type and namespace
name uniquely identifies
       each unqualified attribute. 

yet, Tim Bray wrote:
> 
> At 04:50 PM 1/30/99 +0100, james anderson wrote:
> >If this is true, then what is the "Per-Element-Type Partition" described at
> >great length on the appendix on the "internal structure" of xml namespaces?
> >The spec would appear to assert some form of relation between the namespace
> >which comprises an unqualified attribute name and the namespace of the element identifier.
> 
> Right, that is saying exactly that even though an unprefixed attribute
> is not *in* the namespace of its element, one can easily identify
> a conventional package of information that provides an unambiguous
> Id of what kind of attribute this is; the package includes the
> information about the type and namespace of the attached element, but
> I repeat: in the sense the spec uses  the word namespace, an unprefixed
> attribute is NOT IN ANY NAMESPACE.  That's why the following is legal:
> 
>  <!-- http://www.w3.org is bound to n1 and is the default -->
>  <x xmlns:n1="http://www.w3.org"
>     xmlns="http://www.w3.org" >
>    <good a="1"     b="2" />
>    <good a="1"     n1:a="2" />
>  </x>
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.