correct xpath filter transform
correct xpath filter transform

--- 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
 

--- a/ckanext/exampletheme/theme/templates/home/index.html
+++ b/ckanext/exampletheme/theme/templates/home/index.html
@@ -16,8 +16,11 @@
 
   <div py:match="content">
    <h2>Welcome to Example Theme!</h2>
+   <p>
+     This page left intentionally ugly
+   </p>
    <p id="examplething">
-     This page left intentionally ugly
+     Here is the frob
    </p>
   </div>