OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Can we treat XML elements and attributes as sets

[ Lists Home | Date Index | Thread Index ]
  • To: Michael Kay <mike@saxonica.com>
  • Subject: Re: [xml-dev] Can we treat XML elements and attributes as sets
  • From: Anne Thomas Manes <atmanes@gmail.com>
  • Date: Sun, 21 Aug 2005 18:14:00 -0400
  • Cc: Mukul Gandhi <mukul_gandhi@yahoo.com>, xml-dev@lists.xml.org
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LCWLH7APeQMVH/UfQCf8f+IYSQJ2gO7Uz1QwYQkpiGJh6LTkqefOr2diYCR2j6psI5wgtqICOIieUud6vj0TWBcu4lAmiLF0jpM7Ksc0kyem0zoqR4hl6uMHmKWms0jBFHB87xmOSfVWBcKiP5d/2gmd6/SAF9QlhknzkHSxUSk=
  • In-reply-to: <43087068.4b1c52be.2b88.ffffb7c6SMTPIN_ADDED@mx.gmail.com>
  • References: <20050821040731.86975.qmail@web32903.mail.mud.yahoo.com> <43087068.4b1c52be.2b88.ffffb7c6SMTPIN_ADDED@mx.gmail.com>

I don't think it's appropriate to consider an element with an
unqualified name as being in a namespace with no name. As Elliotte
said at one point in this thread:

> Elements with the same name but different URIs are different kinds of elements. 
> Elements with the same name and the same URI are the same kind of element.

If you go with the reasoning that elements with no namespace are
elements in the namespace with no name, then the following two
elements would be the same kind of element, when obviously they are




On 8/21/05, Michael Kay <mike@saxonica.com> wrote:
> > Thanks Mike for clarification, and more information..
> > I did'nt knew namespace URIs could be null.
> The namespace URI property of an element or attribute node can be null,
> meaning that the element or attribute is "not in a namespace". What I'm
> saying is that it's often more convenient to regard such elements/attributes
> as being in a namespace, a namespace with no name, and Elliotte's model
> which you quoted seems to treat them that way.
> Michael Kay
> http://www.saxonica.com/
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS