Mercurial > genshi > mirror
changeset 782:ae44bf4d1638 trunk
Fix wrong XPath example in `Transformer` docstring that breaks with the more correct XPath processing on the GSoC branch.
author | cmlenz |
---|---|
date | Mon, 14 Jul 2008 16:47:36 +0000 |
parents | 7a8ed44a5cfd |
children | 2ee324467afe |
files | genshi/filters/transform.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/genshi/filters/transform.py +++ b/genshi/filters/transform.py @@ -494,7 +494,7 @@ >>> buffer = StreamBuffer() >>> html = HTML('<html><head><title>Some Title</title></head>' ... '<body>Some <em>body</em> text.</body></html>') - >>> print html | Transformer('title/text()').copy(buffer) \\ + >>> print html | Transformer('head/title/text()').copy(buffer) \\ ... .end().select('body').prepend(tag.h1(buffer)) <html><head><title>Some Title</title></head><body><h1>Some Title</h1>Some <em>body</em> text.</body></html>