projects
/
treecutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e528907
)
Adding the lxml docbook namespaces.
author
Fredrik Unger
<fred@tree.se>
Sun, 28 Oct 2012 07:13:42 +0000
(08:13 +0100)
committer
Fredrik Unger
<fred@tree.se>
Sun, 28 Oct 2012 07:13:42 +0000
(08:13 +0100)
treecutter/constants.py
patch
|
blob
|
history
diff --git
a/treecutter/constants.py
b/treecutter/constants.py
index bdbc91113c5d5527868268a55739e1b537ae016f..a3b4790370c8914c67e105a04a69d1cfaec95f17 100644
(file)
--- 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}
+