From: Fredrik Unger Date: Fri, 20 Feb 2015 14:47:15 +0000 (+0100) Subject: const: adding xml namespace X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=bdecaa29bbb25b5e4ccc2b08d04577e780a149b9 const: adding xml namespace Adding the XML namespace http://www.w3.org/XML/1998/namespace --- diff --git a/treecutter/constants.py b/treecutter/constants.py index 7ba6626..49c26e6 100644 --- a/treecutter/constants.py +++ b/treecutter/constants.py @@ -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}