Genshi and XPath

15 views
Skip to first unread message

Mitar

unread,
Feb 10, 2011, 6:34:39 PM2/10/11
to trac...@googlegroups.com, gen...@googlegroups.com
Hi!

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

Reply all
Reply to author
Forward
0 new messages