W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2004

RE: [DM]Relative order of Attribute Nodes

From: Mukul Gandhi <mukul_gandhi@yahoo.com>
Date: Thu, 4 Nov 2004 00:38:36 -0800 (PST)
Message-ID: <20041104083836.41788.qmail@web41315.mail.yahoo.com>
To: Michael Rys <mrys@microsoft.com>, public-qt-comments@w3.org

Thanks for the answer. I am now curious, why XML
attributes have this characteristic.. 

I guess, having "the relative order of Attribute
Nodes" consistent across XQuery and XPath
implementations would make things more intutive.. Is
it possible for the "XQuery 1.0 and XPath 2.0 Data
Model" to override this behaviour inherited from the
XML Infoset? And would having it consistent across
implementations make XQuery and XPath more useful?

Regards,
Mukul

--- Michael Rys <mrys@microsoft.com> wrote:

> The XML Infoset does not prescribe an order for
> attributes on an
> element. Thus, the Data model cannot do this either.
> 
> You may say: XML legacy is the reason.
> 
> Best regards
> Michael
> 
> > -----Original Message-----
> > From: public-qt-comments-request@w3.org
> [mailto:public-qt-comments-
> > request@w3.org] On Behalf Of Mukul Gandhi
> > Sent: Wednesday, November 03, 2004 11:29 AM
> > To: public-qt-comments@w3.org
> > Subject: [DM]Relative order of Attribute Nodes
> > 
> > 
> > Hello,
> >   In the "XQuery 1.0 and XPath 2.0 Data Model"
> > document at
> >
>
http://www.w3.org/TR/2004/WD-xpath-datamodel-20041029/
> > , it is suggested (in section 2.4) that the
> relative
> > order of Attribute Nodes is stable but
> > implementation-dependent. This means, that the
> @*[n]
> > expression (where n is a +ve integer) may give
> > different results between different
> implementations.
> > 
> > Would it not be appropriate to make "the relative
> > order of Attribute Nodes" consistent across
> > implementations. If it cannot be made consistent
> > across implementations, I am curious to know the
> > reason behind this..
> > 
> > Regards,
> > Mukul



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 
Received on Thursday, 4 November 2004 08:39:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:02 UTC