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: Alan Gutierrez <alan-xml-dev@engrm.com>
  • Subject: Re: [xml-dev] Can we treat XML elements and attributes as sets
  • From: Mukul Gandhi <mukul_gandhi@yahoo.com>
  • Date: Sun, 21 Aug 2005 07:10:48 -0700 (PDT)
  • Cc: xml-dev@lists.xml.org
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KY+40Rx6whCuFZfQY8rg7tHp7PrpKFmubnYJQLxz8e3BLdESWGmho3H4gYZ7dFMpg4cCuLl6yjXHYW0P78P7ldbmKQsVbiURGSYtJcG5ARIIUJx++JOBMIMWDgECTA139TPRhiD6agajdFamRDA2tFXA8/HMwKalMhk51ocOjpk= ;
  • In-reply-to: <000001c5a654$7c0f0530$0115a8c0@Elektonika.local>

I am not doubtful about the usefulness of namespaces.
They are immensely useful.. They help us distinuish
between different XML applications, as Elliotte
pointed. 

Thanks for telling about usage of namespaces in SAX
and DOM.

The discussion topic I started was, "can we treat XML
elements and attributes as sets" still eludes me. I
think they should be treated as sets, as we can
perform useful mathematical operations on XML
documents using set operators. 

Mike said, we should treat sets in the context of XML
and related specs, as unordered. IMHO, that an over
simplification of the issues(this will have 1-to-1
mapping of XML sets to maths sets. but this I think
will miss the requirement of ordered nature of XML
elements). The XML Schema can define elements, with
order, as well as unordered (using the xs:sequence
construct). Which would I think imply that maintaining
and not maintaining order are both important in XML?
Do I make any sense? 

Regards,
Mukul

--- Alan Gutierrez <alan-xml-dev@engrm.com> wrote:
> 
>     In SAX, no namespace, or the default namespace,
> is represented
>     by the empty string. Closer to the set way of
> looking at things.
> 
>     In DOM no namepsace is represented by null.
> 
>     (Another example of how Namespaces can baffle a
> new user.)
> 
> --
> Alan Gutierrez - alan@engrm.com
>     - http://engrm.com/blogometer/index.html
>     - http://engrm.com/blogometer/rss.2.0.xml



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




 

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

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