From bdecaa29bbb25b5e4ccc2b08d04577e780a149b9 Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Fri, 20 Feb 2015 15:47:15 +0100 Subject: [PATCH] const: adding xml namespace Adding the XML namespace http://www.w3.org/XML/1998/namespace --- treecutter/constants.py | 5 +++++ 1 file changed, 5 insertions(+) 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} -- 2.30.2