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

Re: Can we treat XML elements and attributes as sets

  • To: Michael Kay <mike@s...>
  • Subject: Re: Can we treat XML elements and attributes as sets
  • From: Anne Thomas Manes <atmanes@g...>
  • Date: Sun, 21 Aug 2005 18:14:00 -0400
  • Cc: Mukul Gandhi <mukul_gandhi@y...>, xml-dev@l...
  • 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@m...>
  • References: <20050821040731.86975.qmail@w...> <43087068.4b1c52be.2b88.ffffb7c6SMTPIN_ADDED@m...>

Re:  Can we treat XML elements and attributes as sets
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
not:

<a>pi</a>

<a>
  <b>3.14156</b>
</a>

Anne

On 8/21/05, Michael Kay <mike@s...> 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>
> 
>

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.