Bug 53435 - Writer's style.xml is not valid with OpenDocument-v1.2-os-schema.rng
Summary: Writer's style.xml is not valid with OpenDocument-v1.2-os-schema.rng
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 09:34 UTC by Kazuhiko
Modified: 2012-08-31 21:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kazuhiko 2012-08-13 09:34:41 UTC
How to reproduce :

1) invoke Writter in LibreOffice 3.6.0
2) type 'a' and save as test.odt
3) $ unzip test.odt
4) $ wget http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng
5) $ xmllint --format style.xml | \
     xmllint --relaxng OpenDocument-v1.2-os-schema.rng -
(snip)
-:30: element paragraph-properties: Relax-NG validity error : Expecting element map, got paragraph-properties
-:30: element paragraph-properties: Relax-NG validity error : Element style has extra content: paragraph-properties
Relax-NG validity error : Extra element style in interleave
-:10: element styles: Relax-NG validity error : Invalid sequence in interleave
-:10: element styles: Relax-NG validity error : Element styles failed to validate content
- fails to validate

With LibreOffice 3.5.4, this validation passes.
Comment 1 Kazuhiko 2012-08-13 09:56:43 UTC
The validation error happens in the following line :

<style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/>

If I remove 'style:contextual-spacing="false"' attribute, that does not exist in LibreOffice 3.5.4's output, the validation passes.
Comment 2 Kohei Yoshida 2012-08-31 21:26:12 UTC
As discussed privately with the reporter, this is not a bug.