W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2003

RE: Does fn:data preserve order for list types?

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 18 Dec 2003 17:35:42 +0100
Message-ID: <37B64F4BA60E9E4FB9F60929E0598024287768@DAEMSG03.eur.ad.sag>
To: Jonathan Robie <jonathan.robie@datadirect.com>, public-qt-comments@w3.org

I think it's probably wishful thinking to imagine that we can pin everything
like this down in the specs. The XML spec, for example, says that attribute
order isn't significant, but it nowhere states that element order *is*
significant. Equally, I don't think we say anywhere that 2+2 is 4. But since
a product that produces 5 is going to lose market share quite rapidly, I'm
not too concerned.

Michael Kay


> -----Original Message-----
> From: public-qt-comments-request@w3.org 
> [mailto:public-qt-comments-request@w3.org] On Behalf Of Jonathan Robie
> Sent: 17 December 2003 18:01
> To: public-qt-comments@w3.org
> Subject: Does fn:data preserve order for list types?
> 
> 
> 
> Suppose $e is bound to an element that looks like this:
> 
>          <e xsi:type="xs:integer">1 2 3 4 5</e>
> 
> Now consider the following expression:
> 
>          data($e)
> 
> Is an implementation required to return the values in the 
> original order? 
> Would an implementation be conformant if it returned 5 4 3 2 
> 1? I believe 
> our answer is "yes", but I can't find where our specs say so clearly.
> 
> Jonathan
> 
Received on Thursday, 18 December 2003 11:41:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:29 GMT