Adding the lxml docbook namespaces.
authorFredrik Unger <fred@tree.se>
Sun, 28 Oct 2012 07:13:42 +0000 (08:13 +0100)
committerFredrik Unger <fred@tree.se>
Sun, 28 Oct 2012 07:13:42 +0000 (08:13 +0100)
treecutter/constants.py

index bdbc91113c5d5527868268a55739e1b537ae016f..a3b4790370c8914c67e105a04a69d1cfaec95f17 100644 (file)
@@ -6,3 +6,14 @@ PREFIXES={u'db': u'http://docbook.org/ns/docbook',
           u'xl': u'http://www.w3.org/1999/xlink',
           u'html' : u'http://www.w3.org/1999/xhtml'}
 
+DB_NS="http://docbook.org/ns/docbook"
+DB = "{%s}" % DB_NS
+XI_NS="http://www.w3.org/2001/XInclude"
+XI = "{%s}" % XI_NS
+XLINK_NS="http://www.w3.org/1999/xlink"
+XLINK = "{%s}" % XLINK_NS
+HTML_NS="http://www.w3.org/1999/xhtml"
+HTML = "{%s}" % HTML_NS
+NSMAP = {None : DB_NS,
+         'xlink' : XLINK_NS}
+