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

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 UTC