W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2003

Re: creation order vs. document order

From: Jan Hidders <jan.hidders@ua.ac.be>
Date: Wed, 24 Sep 2003 13:03:57 +0200
Message-ID: <3F717A1D.2070606@ua.ac.be>
To: www-ql@w3.org

Bas de Bakker wrote:
>>But now I'm still left with the following question. Is the 
>>semantics of 
>>the following expression well defined in the formal semantics?
>>
>>    (<x><y id="1"/><y id="2"/></x>)/y
> 
> I don't know about the formal semantics,

Any information is welcome, although I really would like to know what 
the formal semantics exactly say. Why else do they exist?

> but will refer you again to
> section 3.2 of the data model:
> 
> "The relative order of siblings is determined by their order in the XML
> representation. A node N1 occurs before a node N2 in document order if
> and only if the start of N1 occurs before the start of N2 in the XML
> document."

Since the fragment is constructed there is no original representation we 
can refer to.

> And also:
> 
> "Informally, document order is the order returned by an in-order,
> depth-first, left-to-right traversal of the data model."

Shouldn't that be a *pre*order traversal? Also this cannot tell us what 
the relative order of the children is if we don't know that order already.

-- 
    Jan Hidders

  .---------------------------------------------------------------------.
  | Post-doctoral researcher               e-mail: jan.hidders@ua.ac.be |
  | Dept. Math. & Computer Science         tel: (+32) 3 218 08 73       |
  | University of Antwerp                  fax: (+32) 3 218 07 77       |
  | Middelheimlaan 1, BE-2020 Antwerpen, BELGIUM     room: G 3.21       |
  `---------------------------------------------------------------------'
Received on Wednesday, 24 September 2003 07:03:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:16 UTC