bug in string-join function
Sedna is a native full-featured XML database management system.
Brought to you by:
mozinsur,
shcheklein
ancestor:: is a recerse xPath axis so I believe the behaviour you describe to be correct.
"The fact that a reverse-axis step assigns context positions in reverse document order for the purpose of evaluating predicates does not alter the fact that the final result of the step is always in document order" by XPath 2.0
Also note that the following query:
returns a/b/c