From aa93a811f69b1300ddaf5f1441a8df0c74eb7497 Mon Sep 17 00:00:00 2001 From: Mary Gardiner Date: Sun, 20 Apr 2008 22:27:09 +1000 Subject: [PATCH] Another attempt at correct xpath examples --- examples/filters/xpath-sifter/xpath-sifter.ini | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/filters/xpath-sifter/xpath-sifter.ini b/examples/filters/xpath-sifter/xpath-sifter.ini index 82e354b..f2cd5bf 100644 --- a/examples/filters/xpath-sifter/xpath-sifter.ini +++ b/examples/filters/xpath-sifter/xpath-sifter.ini @@ -9,7 +9,6 @@ # Look in your cache to see what entries look like. [Planet] -filters = xpath_sifter.py # We are only interested in entries in the category "two" from this blogger, but # he does not provide a per-category feed. @@ -18,9 +17,7 @@ filters = xpath_sifter.py # category tag with the term attribute equal to 'two' [http://example.com/uncategorised.xml] name = Category 'two' (from Site Without a Categorised Feed) -[xpath_sifter.py] -require: - //atom:category[@term='two'] +filters = xpath_sifter.py?require=//atom:category[@term='two'] # The verbose blogger whose feed is below blogs about many subjects but we are # only interested in entries about Venus. She does not use categories but @@ -28,6 +25,4 @@ require: # tag's text for the text 'Venus' [http://example.com/verbose.xml] name = Venus (from Verbose Site) -[xpath_sifter.py] -require: - //atom:title[contains(.,'Venus')] +filters = xpath_sifter.py?require=//atom:title[contains(.,'Venus')]