X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=blobdiff_plain;f=treecutter%2Fconstants.py;h=a3b4790370c8914c67e105a04a69d1cfaec95f17;hp=bdbc91113c5d5527868268a55739e1b537ae016f;hb=790322c6e3f8cc2090a0e158f28582771b03263f;hpb=e528907257ce0fb5b990cbaa7ed644ceb7085836 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} +