Another attempt at correct xpath examples
This commit is contained in:
parent
8f3e1a0fdb
commit
aa93a811f6
@ -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')]
|
||||
|
Loading…
x
Reference in New Issue
Block a user