[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [office-comment] Numbered Headings,clarification required (ODF all versions)
Hi Alex, Your given ODF is not valid, because the text:style-name attribute in a <text:h> element shall refer a style of family paragraph - namely something like <style:style ... style:family="paragraph" ...> - and not to a data style - in Your case a <number:number-style> data style. A certain heading shall be displayed with a number, if (A1) the corresponding <text:h> is included in a list as the first child element of a list item OR (A2) the corresponding <text:h> is included in a numbered paragraph as the first child element of it OR (A3) the outline style is applied to it. The outline style is applied to a heading within a text document where the heading's paragraph style does not define a list style to use itself. Beside A1, A2 or A3 the corresponding list level style of list style/outline style shall specify that the list label is a number. Best regards, Oliver. Alex Brown wrote: > Dear all, > > Consider the following document which is I believe a valid (draft 1.2 in > this case) ODF document. > > By my reading of the spec it is unclear whether a fully-conformant > application should display numbers alongside the headings. This > difficulty revolves around whether it is sufficient simply to create a > <number:number-style>, or whether some descendant elements are in fact > needed. The schema says not; so in that case what happens when no > descendant elements are present? > > <?xml version="1.0" encoding="UTF-8"?> > <office:document-content > xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" > xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" > xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" > xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" > office:version="1.2"> > <office:automatic-styles> > <number:number-style style:name="NumbHead"></number:number-style> > </office:automatic-styles> > <office:body> > <office:text> > <text:h text:outline-level="1" text:style-name="NumbHead">First > Heading</text:h> > <text:p>Some text</text:p> > <text:h text:outline-level="1" text:style-name="NumbHead">Second > Heading</text:h> > <text:p>Some text</text:p> > <text:h text:outline-level="1" text:style-name="NumbHead">Third > Heading</text:h> > <text:p>Some text</text:p> > </office:text> > </office:body> > </office:document-content> > > - Alex. > > -- > This publicly archived list offers a means to provide input to the > OASIS Open Document Format for Office Applications (OpenDocument) TC. > > In order to verify user consent to the Feedback License terms and > to minimize spam in the list archive, subscription is required > before posting. > > Subscribe: office-comment-subscribe@lists.oasis-open.org > Unsubscribe: office-comment-unsubscribe@lists.oasis-open.org > List help: office-comment-help@lists.oasis-open.org > List archive: http://lists.oasis-open.org/archives/office-comment/ > Feedback License: http://www.oasis-open.org/who/ipr/feedback_license.pdf > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > Committee: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office > -- ======================================================================= Sun Microsystems GmbH Oliver-Rainer Wittmann Nagelsweg 55 Software Engineer - OpenOffice.org/StarOffice 20097 Hamburg Germany Fax: (+49 40) 23 646 955 http://www.sun.de mailto:oliver-rainer.wittmann@sun.com ----------------------------------------------------------------------- Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering ======================================================================= Oliver-Rainer Wittmann (od) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]