namespaces.py 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2006-2013 Søren Roug, European Environment Agency
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 2.1 of the License, or (at your option) any later version.
  8. #
  9. # This library is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public
  15. # License along with this library; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. #
  18. # Contributor(s):
  19. #
  20. __version__ = "1.4.1"
  21. TOOLSVERSION = u"ODFPY/" + __version__
  22. ANIMNS = u"urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
  23. CHARTNS = u"urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
  24. CHARTOOONS = u"http://openoffice.org/2010/chart"
  25. CONFIGNS = u"urn:oasis:names:tc:opendocument:xmlns:config:1.0"
  26. CSS3TNS = u"http://www.w3.org/TR/css3-text/"
  27. #DBNS = u"http://openoffice.org/2004/database"
  28. DBNS = u"urn:oasis:names:tc:opendocument:xmlns:database:1.0"
  29. DCNS = u"http://purl.org/dc/elements/1.1/"
  30. DOMNS = u"http://www.w3.org/2001/xml-events"
  31. DR3DNS = u"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
  32. DRAWNS = u"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
  33. FIELDNS = u"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
  34. FONS = u"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
  35. FORMNS = u"urn:oasis:names:tc:opendocument:xmlns:form:1.0"
  36. FORMXNS = u"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"
  37. GRDDLNS = u"http://www.w3.org/2003/g/data-view#"
  38. KOFFICENS = u"http://www.koffice.org/2005/"
  39. LOEXTNS = u"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
  40. MANIFESTNS = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"
  41. MATHNS = u"http://www.w3.org/1998/Math/MathML"
  42. METANS = u"urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
  43. NUMBERNS = u"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
  44. OFFICENS = u"urn:oasis:names:tc:opendocument:xmlns:office:1.0"
  45. OFNS = u"urn:oasis:names:tc:opendocument:xmlns:of:1.2"
  46. OOOCNS = u"http://openoffice.org/2004/calc"
  47. OOONS = u"http://openoffice.org/2004/office"
  48. OOOWNS = u"http://openoffice.org/2004/writer"
  49. PRESENTATIONNS = u"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
  50. RDFANS = u"http://docs.oasis-open.org/opendocument/meta/rdfa#"
  51. RPTNS = u"http://openoffice.org/2005/report"
  52. SCRIPTNS = u"urn:oasis:names:tc:opendocument:xmlns:script:1.0"
  53. SMILNS = u"urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
  54. STYLENS = u"urn:oasis:names:tc:opendocument:xmlns:style:1.0"
  55. SVGNS = u"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
  56. TABLENS = u"urn:oasis:names:tc:opendocument:xmlns:table:1.0"
  57. TABLEOOONS = u"http://openoffice.org/2009/table"
  58. TEXTNS = u"urn:oasis:names:tc:opendocument:xmlns:text:1.0"
  59. XFORMSNS = u"http://www.w3.org/2002/xforms"
  60. XHTMLNS = u"http://www.w3.org/1999/xhtml"
  61. XLINKNS = u"http://www.w3.org/1999/xlink"
  62. XMLNS = u"http://www.w3.org/XML/1998/namespace"
  63. XSDNS = u"http://www.w3.org/2001/XMLSchema"
  64. XSINS = u"http://www.w3.org/2001/XMLSchema-instance"
  65. nsdict = {
  66. ANIMNS: u'anim',
  67. CHARTNS: u'chart',
  68. CHARTOOONS: u'chartooo',
  69. CONFIGNS: u'config',
  70. CSS3TNS: u'css3t',
  71. DBNS: u'db',
  72. DCNS: u'dc',
  73. DOMNS: u'dom',
  74. DR3DNS: u'dr3d',
  75. DRAWNS: u'draw',
  76. FIELDNS: u'field',
  77. FONS: u'fo',
  78. FORMNS: u'form',
  79. FORMXNS: u'formx',
  80. GRDDLNS: u'grddl',
  81. KOFFICENS: u'koffice',
  82. LOEXTNS: u'loext',
  83. MANIFESTNS: u'manifest',
  84. MATHNS: u'math',
  85. METANS: u'meta',
  86. NUMBERNS: u'number',
  87. OFFICENS: u'office',
  88. OFNS: u'of',
  89. OOONS: u'ooo',
  90. OOOWNS: u'ooow',
  91. OOOCNS: u'oooc',
  92. PRESENTATIONNS: u'presentation',
  93. RDFANS: u'rdfa',
  94. RPTNS: u'rpt',
  95. SCRIPTNS: u'script',
  96. SMILNS: u'smil',
  97. STYLENS: u'style',
  98. SVGNS: u'svg',
  99. TABLENS: u'table',
  100. TABLEOOONS: u'tableooo',
  101. TEXTNS: u'text',
  102. XFORMSNS: u'xforms',
  103. XLINKNS: u'xlink',
  104. XHTMLNS: u'xhtml',
  105. XMLNS: u'xml',
  106. XSDNS: u'xsd',
  107. XSINS: u'xsi',
  108. }