[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: style name uniquness
Hi, David Faure wrote: > On Wednesday 11 January 2006, Lars Oppermann wrote: >> Unique Names for Automatic Styles: >> http://lists.oasis-open.org/archives/office/200512/msg00020.html >> currently, the specification does not require the name of automatic >> styles to be unique, for styles that are defined in styles.xml and in >> content.xml. >> A future version of the spec should at least contain a >> 'SHOULD'-assertion on style names being unique. >> Style names are also not required to be unique across different >> style-family, which could be a potential problem for implementors. The current wording in the ODF 1.2 spec (section 15.1.1) is: "The style:name attribute identifies the name of the style. This attribute, combined with the style:family attribute, uniquely identifies a style. The <office:styles>, <office:automatic-styles> and <office:master-styles> elements each must not contain two styles with the same family and the same name. For automatic styles, a name is generated during document export. If the document is exported several times, it cannot be assumed that the same name is generated each time. In an XML document, the name of each style is a unique name that may be independent of the language selected for an office applications user interface." What about changing the last two paragraphs to: "In an OpenDocument document, the name of each style is a unique name that may be independent of the language selected for an office applications user interface. Note: For automatic styles, a name is generated during document export. If the document is exported several times, it cannot be assumed that the same name is generated each time. It is recommended that applications do not generate names that are used already for styles with the given family contained in the <office:styles> element of the same document." Best regards Michael -- Michael Brauer, Technical Architect Software Engineering StarOffice/OpenOffice.org Sun Microsystems GmbH Nagelsweg 55 D-20097 Hamburg, Germany michael.brauer@sun.com http://sun.com/staroffice +49 40 23646 500 http://blogs.sun.com/GullFOSS Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]