# HG changeset patch # User cmlenz # Date 1216054056 0 # Node ID f69786111cd3b58cd33df3b8fc2c05a921a68b82 # Parent 3b56a328c11fbe78433e735cfd415acf294e1bfc Fix wrong XPath example in `Transformer` docstring that breaks with the more correct XPath processing on the GSoC branch. diff --git a/genshi/filters/transform.py b/genshi/filters/transform.py --- a/genshi/filters/transform.py +++ b/genshi/filters/transform.py @@ -494,7 +494,7 @@ >>> buffer = StreamBuffer() >>> html = HTML('Some Title' ... 'Some body text.') - >>> print html | Transformer('title/text()').copy(buffer) \\ + >>> print html | Transformer('head/title/text()').copy(buffer) \\ ... .end().select('body').prepend(tag.h1(buffer)) Some Title

Some Title

Some body text.