correct xpath filter transform
[ckanext-datagovau.git] / ckanext / exampletheme / __init__.py
blob:a/ckanext/exampletheme/__init__.py -> blob:b/ckanext/exampletheme/__init__.py
--- a/ckanext/exampletheme/__init__.py
+++ b/ckanext/exampletheme/__init__.py
@@ -66,7 +66,7 @@
         found in the custom ``home/index.html`` template provided as
         part of the package).
         """
-        stream = stream | Transformer('p[@id="examplething"]')\
+        stream = stream | Transformer('//p[@id="examplething"]/text()')\
                  .substitute(r'frob', r'foobar')
         return stream