changeset 782:f69786111cd3

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 3b56a328c11f
children 6dc1a751804d
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>
Copyright (C) 2012-2017 Edgewall Software