From: Fredrik Unger Date: Sun, 28 Oct 2012 07:13:42 +0000 (+0100) Subject: Adding the lxml docbook namespaces. X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=790322c6e3f8cc2090a0e158f28582771b03263f Adding the lxml docbook namespaces. --- diff --git a/treecutter/constants.py b/treecutter/constants.py index bdbc911..a3b4790 100644 --- a/treecutter/constants.py +++ b/treecutter/constants.py @@ -6,3 +6,14 @@ 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, + 'xlink' : XLINK_NS} +