xml: change from amara to lxml
[treecutter.git] / treecutter / constants.py
index bdbc91113c5d5527868268a55739e1b537ae016f..7ba6626a1d9f095fb357b24d755fc3d955af8f6c 100644 (file)
@@ -6,3 +6,19 @@ 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,
+         'xi' : XI_NS,
+         'xlink' : XLINK_NS,
+         'html' : HTML_NS}
+XPATH = {'db' : DB_NS,
+         'xi' : XI_NS,
+         'xlink' : XLINK_NS,
+         'html' : HTML_NS}