W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2004

RE: evaluating the following-sibling axis

From: Michael Kay <mhk@mhk.me.uk>
Date: Mon, 22 Mar 2004 13:34:04 -0000
To: "'Kirmse, Daniel'" <daniel.kirmse@sap.com>, <www-xpath-comments@w3.org>
Message-Id: <20040322133455.1ED1214175@w3c2.w3.org>

# 
# Maybe it's not the right place for this question, but no one 
# in comp.text.xml could/would provide an answer.

A good place for such questions is the xsl-list at mulberrytech.com

However, I think you've actually found a typo in the formal semantics which
should be reported to public-qt-comments@w3.org
  
... to compute the result I'd use the XQuery 
# 1.0 and XPath 2.0 Formal Semantics paper section 4.2.1.1. 
# There an expression for evaluating the following-sibling axis 
# is given:
# 
# [following-sibling:: NodeTest]Axis
# ==
# [let $e := . in parent::node()/child:: NodeTest [.<<$e]]Expr 
# 
# and that is the problem.

I think this should read:

let $e := . 
return parent::node()/child:: NodeTest [.<<$e]]

This is simply saying that the following siblings of a node are the children
of the parent of that node that follow that node in document order.

Michael Kay
Received on Monday, 22 March 2004 08:35:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:55 GMT