I have just discovered that one XPath/Genshi query I was using with
new version of Genshi (0.6.1) works differently than my old version
(0.5.1), but I believe previous behavior was the correct one.
Concretely, this query in site.html removes all <li> elements after
mainnav div and not just its descendants:
<py:match path="div[@id='mainnav']//li" />
So also <li> elements in ctxtnav and altlinks are removed.
Mitar