From 761f99bf5e65ac8d81b15101f74b5c74e1a167e8 Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Fri, 26 Oct 2012 09:00:12 +0200 Subject: [PATCH] Adding docbook namespaces again Refactoring later to move docbook xml generation to a helper class. --- xinclude/address.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xinclude/address.py b/xinclude/address.py index 3b7ff38..3d60b10 100755 --- a/xinclude/address.py +++ b/xinclude/address.py @@ -21,6 +21,17 @@ ZOOMRANGE = range(1, 18) # tile size TS = 256 +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} + h = Http(".cache") -- 2.30.2