Commit 5a53f57a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use OpenDocument v1.2 Relax NG Schema.

parent 0b1cface
This diff is collapsed.
This diff is collapsed.
......@@ -61,7 +61,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self.setSystemPreference()
# XML validator
v12schema_url = os.path.join(os.path.dirname(__file__),
'OpenDocument-schema-v1.2-draft9.rng')
'OpenDocument-v1.2-os-schema.rng')
self.validator = Validator(schema_url=v12schema_url)
foo_file_path = os.path.join(os.path.dirname(__file__),
......
......@@ -55,7 +55,7 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
self.setSystemPreference()
# XML validator
v12schema_url = os.path.join(os.path.dirname(__file__),
'OpenDocument-schema-v1.2-draft9.rng')
'OpenDocument-v1.2-os-schema.rng')
self.validator = Validator(schema_url=v12schema_url)
foo_file_path = os.path.join(os.path.dirname(__file__),
......
......@@ -54,7 +54,7 @@ class TestOooDynamicStyle(ERP5TypeTestCase):
self.login()
self.getPortal().Localizer = DummyLocalizer()
v12schema_url = os.path.join(os.path.dirname(__file__),
'OpenDocument-schema-v1.2-draft9.rng')
'OpenDocument-v1.2-os-schema.rng')
self.validator = Validator(schema_url=v12schema_url)
en_file_path = os.path.join(os.path.dirname(__file__),
'test_document',
......
......@@ -54,7 +54,7 @@ if lxml:
class LXMLValidator:
"""Validate ODF document using RelaxNG and lxml"""
schema_url = \
'http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-schema-v1.1.rng'
'http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng'
def __init__(self, schema_url=schema_url):
self.schema_url = schema_url
......
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