
$ python reference.py 
Traceback (most recent call last):
  File "reference.py", line 254, in <module>
    main()
  File "reference.py", line 241, in main
    examples = extractExamples(EXAMPLES_DIRECTORY)
  File "reference.py", line 215, in extractExamples
    {'doc': EXAMPLE_NS})
  File "lxml.etree.pyx", line 1321, in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:14487)
TypeError: xpath() takes exactly 1 positional argument (2 given)

$ rpm -q python-lxml
python-lxml-2.1.5-1.fc10.x86_64

diff -r c05982b33b77 src/z3c/rml/reference.py
--- a/src/z3c/rml/reference.py	Sat May 09 19:15:42 2009 +0200
+++ b/src/z3c/rml/reference.py	Sat May 09 19:16:08 2009 +0200
@@ -211,7 +211,7 @@
         rmlFile = open(os.path.join(directory, filename), 'r')
         root = etree.parse(rmlFile).getroot()
         elements = root.xpath('//@doc:example/parent::*',
-                              {'doc': EXAMPLE_NS})
+                              namespaces={'doc': EXAMPLE_NS})
         # Phase 1: Collect all elements
         for elem in elements:
             demoTag = elem.get(EXAMPLE_ATTR_NAME) or elem.tag
