[Monetdb-developers] MonetDB support of ordered XPath, mistake regarding reverse doc order

kla gw klarinda.gw at gmail.com
Mon Aug 21 04:19:57 CEST 2006


Hi,

I'm interested in ordered XPath. How much support of ordered XPath
that monetDB has?

In MonetDB, I found that the following XPath:

/a/b/c/preceding-sibling::*[1]
/a/b/c/preceding-sibling::d[1]

return the first node according to document order, not according to
reverse document order (http://www.w3.org/TR/xpath20/ section 3.2.1.1
and 3.2.2)

I tried using bib.xml from XQuery Use Cases
(http://www.w3.org/TR/xquery-use-cases/#xmp-data) and compare the
result with commercial XML editor.

/bib/book/price/preceding-sibling::*[1]
- MonetDB returns <title>
- supposedly returns <publisher>

/bib/book/price/preceding-sibling::author[1]
- MonetDB returns Stevens W, Stevens W, and Abiteboul Serge (the first
author in document order, similar to /bib/book/author[1])
- supposedly returns Stevens W, Stevens W, and Suciu Dan

Regards,

Klarinda




More information about the developers-list mailing list