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

Typo in XQuery 1.0 and XPath 2.0 Formal Semantics section 4.2.1.1 . Axes

From: Kirmse, Daniel <daniel.kirmse@sap.com>
Date: Tue, 23 Mar 2004 09:12:18 +0100
Message-ID: <22772E6015DA354B84C6F8DB8BF60504D0EDF8@dewdfx13.wdf.sap.corp>
To: "'public-qt-comments@w3.org'" <public-qt-comments@w3.org>
Hi,

I think I've found a typo in the document "XQuery 1.0 and XPath 2.0 Formal Semantics" section "4.2.1.1. Axes".

The following-sibling axes is defined as:

[following-sibling:: NodeTest]Axis 
== 
[let $e := . in parent::node()/child:: NodeTest [.<<$e]]Expr

after a short discussion with Michael Kay it should be:

[following-sibling:: NodeTest]Axis 
== 
[let $e := . 
return parent::node()/child:: NodeTest [.>>$e]]Expr

to meet the intended semantic.
The same applies for the preceding-sibling axis. It is defined as:

[preceding-sibling:: NodeTest]Axis 
== 
[let $e := . in parent::node()/child:: NodeTest [.>>$e]]Expr

it should rather be as follows:

[preceding-sibling:: NodeTest]Axis 
== 
[let $e := . 
return parent::node()/child:: NodeTest [.<<$e]]Expr

to meet the intended semantic.


Cheers,
Daniel
Received on Tuesday, 23 March 2004 03:13:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:07 GMT