From 790322c6e3f8cc2090a0e158f28582771b03263f Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Sun, 28 Oct 2012 08:13:42 +0100 Subject: [PATCH] Adding the lxml docbook namespaces. --- treecutter/constants.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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} + -- 2.30.2