const: adding xml namespace
authorFredrik Unger <fred@tree.se>
Fri, 20 Feb 2015 14:47:15 +0000 (15:47 +0100)
committerFredrik Unger <fred@tree.se>
Fri, 20 Feb 2015 14:47:15 +0000 (15:47 +0100)
Adding the XML namespace http://www.w3.org/XML/1998/namespace

treecutter/constants.py

index 7ba6626a1d9f095fb357b24d755fc3d955af8f6c..49c26e64e7b4198afc5fa939b4c96d285d040d31 100644 (file)
@@ -4,6 +4,7 @@ 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"
@@ -12,13 +13,17 @@ 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}