size: printing size of style
[treecutter.git] / treecutter / constants.py
index bdbc91113c5d5527868268a55739e1b537ae016f..49c26e64e7b4198afc5fa939b4c96d285d040d31 100644 (file)
@@ -4,5 +4,26 @@ valid_scripts = ['.py','.pl']
 PREFIXES={u'db': u'http://docbook.org/ns/docbook',
           u'xi': u'http://www.w3.org/2001/XInclude',
           u'xl': u'http://www.w3.org/1999/xlink',
+          u'xml': u'http://www.w3.org/XML/1998/namespace',
           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
+XML_NS="http://www.w3.org/XML/1998/namespace"
+XML = "{%s}" % XML_NS
+HTML_NS="http://www.w3.org/1999/xhtml"
+HTML = "{%s}" % HTML_NS
+NSMAP = {None : DB_NS,
+         'xi' : XI_NS,
+         'xlink' : XLINK_NS,
+         'xml' : XML_NS,
+         'html' : HTML_NS}
+XPATH = {'db' : DB_NS,
+         'xi' : XI_NS,
+         'xlink' : XLINK_NS,
+         'xml' : XML_NS,
+         'html' : HTML_NS}