To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=90494
Issue #|90494
Summary|<automatic-styles> can have duplicate style names
Component|xml
Version|OOo 2.4.0
Platform|Unknown
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsi
Reported by|sorenroug
------- Additional comments from [EMAIL PROTECTED] Sun Jun 8 17:53:55 +0000
2008 -------
Chapter 14 of OpenDocument specification 1.0 clearly says that the
<office:styles>, <office:automatic-styles> and <office:master-styles> elements
each must not contain two styles with the same famility and the same name.
However, it is very easy to trip up OpenOffice Writer so that it uses the same
style name for an automatic style in styles.xml that is different from an
automatic style in content.xml but having different properties.
The effect is that other programs that read ODT files can get misunderstand the
information.
To replicate:
Launch an OpenOffice writer (tried up to v. 2.4.0)
Change the "Default" page style to turn header on.
Write three words in page header. Highlight the middle word (by double-clicking)
and make it Bold and also Italic (in that order)
Write three words an an ordinary paragraph. Then highlight the middle work (by
double-clicking) and make it Bold.
Save and inspect the styles.xml and content.xml
styles.xml will have this:
<office:automatic-styles>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-style="italic" fo:font-weight="bold"
style:font-style-asian="italic" style:font-weight-asian="bold"
style:font-style-complex="italic" style:font-weight-complex="bold"/>
</style:style>
content.xml will have this:
<office:automatic-styles>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-weight="bold"
style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
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]