Issue 114106

Summary: [SRB] ODF text reports: invalid root element in styles.xml
Product: Base Reporter: mst.ooo
Component: ReportBuilderAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@dba <issues>
Severity: Trivial    
Priority: P2 CC: issues, michael.brauer
Version: DEV300m86   
Target Milestone: OOo 3.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 111112    
Attachments:
Description Flags
fix problems none

Description mst.ooo 2010-08-25 17:21:58 UTC
upload:///Table1_fixed.odt/styles.xml:Error:Invalid root element:
office:document-content
upload:///Table1_fixed.odt/styles.xml[2,2945]:Error:tag name "office:styles" is
not allowed. Possible tag names are: <body>

the second error seems to be a consequence of the first.
the root element for styles.xml must be office:document-styles.
Comment 1 mst.ooo 2010-08-25 20:50:19 UTC
Created attachment 71397 [details]
fix problems
Comment 2 mst.ooo 2010-08-25 20:52:35 UTC
the second error is not in fact caused by the first;
the ODF schema prescribes a specific order for the elements below the root:

    <define name="office-document-styles">
        <element name="office:document-styles">
            <ref name="office-document-common-attrs"/>
            <ref name="office-font-face-decls"/>
            <ref name="office-styles"/>
            <ref name="office-automatic-styles"/>
            <ref name="office-master-styles"/>
        </element>

the report builder writes automatic-styles before styles, which is wrong.
Comment 3 mst.ooo 2010-08-27 11:59:10 UTC
target 3.3
Comment 4 ocke.janssen 2010-08-30 08:22:34 UTC
Fixed in cws dba33h
Comment 5 ocke.janssen 2010-09-01 08:15:04 UTC
Please verify. Thanks.

- Execute the report as described in issue 112652
- Use the resulting odt and upload it on
http://tools.services.openoffice.org/odfvalidator/
- Run test

=> upload:///Table1_fixed.odt/styles.xml:Error:Invalid root element:
office:document-content
upload:///Table1_fixed.odt/styles.xml[2,2945]:Error:tag name "office:styles" is
not allowed. Possible tag names are: <body>


should be fixed
Comment 6 marc.neumann 2010-09-03 07:00:18 UTC
verified in CWS dba33h

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba33h