Commit 33388aeb authored by Tatuya Kamada's avatar Tatuya Kamada

OpenOffice3.0 began to create like a '<office:document office:version="1.2">'

document, and the document requires the version of the 1.2 ODF schema
when its XMLs are validating.

So, I downloaded the schema "OpenDocument-schema-v1.2-draft9.rng"
(http://www.oasis-open.org/committees/document.php?document_id=31196)
and set it to the Validator.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25793 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8c9b8eb
This diff is collapsed.
...@@ -58,7 +58,9 @@ class TestOooDynamicStyle(ZopeTestCase.FunctionalTestCase): ...@@ -58,7 +58,9 @@ class TestOooDynamicStyle(ZopeTestCase.FunctionalTestCase):
ZopeTestCase.installProduct('PythonScripts') ZopeTestCase.installProduct('PythonScripts')
ZopeTestCase.installProduct('ERP5OOo') ZopeTestCase.installProduct('ERP5OOo')
self.folder.Localizer = DummyLocalizer() self.folder.Localizer = DummyLocalizer()
self.validator = Validator() v12schema_url = os.path.join(os.path.dirname(__file__),
'OpenDocument-schema-v1.2-draft9.rng')
self.validator = Validator(schema_url=v12schema_url)
en_file_path = os.path.join(os.path.dirname(__file__), en_file_path = os.path.join(os.path.dirname(__file__),
'test_document', 'test_document',
'DYNAMIC_STYLE_en.odt') 'DYNAMIC_STYLE_en.odt')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment