[xml] preceding-sibling::*



I have found that LibXML is incorrectly returning the nodeset in the XPath expression:

preceding-sibling::*

in document order instead of *reverse* document order.

So instead of

preceding-sibling::*[1]

for a given context returning the most immediate preceding sibling, it returns the preceding sibling furthest away from the current context.

Is this a known bug? Is there a fix for this?

I tested the expression under XMLSpy 2005 and it returns the correct order.


Karanjit Siyan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]