RE: evaluating the following-sibling axis

# 
# 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 UTC