const: adding xml namespace
[treecutter.git] / treecutter / constants.py
1 #!/usr/bin/python
2 valid_scripts = ['.py','.pl']
3
4 PREFIXES={u'db': u'http://docbook.org/ns/docbook',
5           u'xi': u'http://www.w3.org/2001/XInclude',
6           u'xl': u'http://www.w3.org/1999/xlink',
7           u'xml': u'http://www.w3.org/XML/1998/namespace',
8           u'html' : u'http://www.w3.org/1999/xhtml'}
9
10 DB_NS="http://docbook.org/ns/docbook"
11 DB = "{%s}" % DB_NS
12 XI_NS="http://www.w3.org/2001/XInclude"
13 XI = "{%s}" % XI_NS
14 XLINK_NS="http://www.w3.org/1999/xlink"
15 XLINK = "{%s}" % XLINK_NS
16 XML_NS="http://www.w3.org/XML/1998/namespace"
17 XML = "{%s}" % XML_NS
18 HTML_NS="http://www.w3.org/1999/xhtml"
19 HTML = "{%s}" % HTML_NS
20 NSMAP = {None : DB_NS,
21          'xi' : XI_NS,
22          'xlink' : XLINK_NS,
23          'xml' : XML_NS,
24          'html' : HTML_NS}
25 XPATH = {'db' : DB_NS,
26          'xi' : XI_NS,
27          'xlink' : XLINK_NS,
28          'xml' : XML_NS,
29          'html' : HTML_NS}