Bug 53435

Summary: Writer's style.xml is not valid with OpenDocument-v1.2-os-schema.rng
Product: LibreOffice Reporter: Kazuhiko <kazuhiko>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: 3.6.0.4 release   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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 (inactive) 2012-08-31 21:26:12 UTC
As discussed privately with the reporter, this is not a bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.