Hi Svante,
Your answer was very good, I've understood a lot of things.
Moreover, it was clear and well documentated from my point 
of view.

Vielen Dank. (I think that's how we say "thank you very much" in german ;)
Simon L.(slopez)

>Hi Simon,
>
>Simon Lopez wrote:
>> Hi,
>> 
>> I think that there is some redundant code into odt files generated by 
>openoffice we found the "styles" definition both into styles.xml and 
>content.xml they are equivalent so i would like to know why.
>
>As specidified [see 1] in both XML files - styles.xml and content.xml - 
>the office:automatic-styles and office:font-face-decls element might 
>appear. The first is not redundant, the second is.
>
>
>Concerning office:automatic-styles:
>
>As background information, there exist two kinds of styles in the 
>office, stored beyond 'office:styles' and 'office:automatic-styles'.
>
>The soft styles are stored beyond the office:styles element. These are 
>all styles, that are allocated from the stylist choosing a named style 
>(e.g. "Heading 1", "Text body"..).
>Soft style can be easily exchanged in multiple places, by editing the 
>properties of the style.
>
>The hard styles are stored beyond the office:automatic-styles element.
>These are all those styles chosen by explicit formatting like pressing 
>the bold button.
>
>I didn't participate in the XML file partitioning, but the idea I was 
>told, was that the styles from styles.xml should be kept interchangeable 
>(e.g. File->Templates->Organize) and as only the office:styles are 
>changeable by the user, office:automatic-styles might get lost.
>To loose no 'hard formatting', the office:automatic-styles had been 
>added to the content.xml.
>
>On the other side, header and footer are part of the style:master-page 
>element of the styles.xml. Even the text that is written and formatted 
>in the footer/header is part of the styles.xml. Whenever an automatic 
>style ('hard formatting') is used, these office:automatic-styles are 
>part of the styles.xml.
>Therefore the two office:automatic-styles are not redundant.
>
>
>
>Concerning office:font-face-decls:
>
>You are right, they are redundant and might have been separated in a 
>stream for themself (e.g. font.xml).
>
>
>
>If you think some of this should be changed, for instance that the text 
>of the header and footer should not appear in the styles.xml of an 
>OpenDocument document, but in the content.xml, I think it is the best to 
>give your request directly to the OpenDocument usergroup (i.e. 
>[EMAIL PROTECTED]).
>
>
>> I've tryed several manipulations, firts I've removed the redundant code into 
>the file content.xml and the result was that all styles where destroyed, then 
>I hane undone my modification and checked that the file was ok ! As it was the 
>case, i try to remove the file styles.xml form the odt package and what 
>openoffice opened the file put the right style at the right place.
>> 
>> As I'm codding a Php script that should generate ODT file from a formated 
>text file I would like to create "valid" odt files that could be opened by 
>OpenOffice writer and which would be OASIS "valid" to.
>
>If your scenario allows it, you might avoid these problems if you 
>generate a single XML stream, which uses the root element 
>office:document [see again 1] and import the document with an 
>ident/copy/flat XSLT filter as mentioned several times on this list.
>
>> 
>> Thanks you by advance,
>> Simon Lopez
>> 
>Regards,
>Svante
>
>
>> P.S.: sorry for any english mistakes, but I'm a "frog eater" (french)
>P.S.: At least for me as German, there was no problem ;-)
>
>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
>Regards,
>Svante
>
>[1]
>http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
>"OpenDocument v1.0 specification",
>"2.1.1 Document Root Element Content Models"
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to