From: Fredrik Unger Date: Fri, 26 Oct 2012 07:00:12 +0000 (+0200) Subject: Adding docbook namespaces again X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=761f99bf5e65ac8d81b15101f74b5c74e1a167e8 Adding docbook namespaces again Refactoring later to move docbook xml generation to a helper class. --- 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")