[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Incorrect examples in ODF specifications 1.0 and 1.1
A user of my ODF library pointed out that the library doesn't behave like the examples in sections 4.1.3 and 4.3.2 of the OpenDocument specification version 1.0 and 1.1. It turns out that the examples are wrong. Below is the example from section 4.1.3. ---------------------------------- <text:p text:style-name="Heading 1"> "Heading 1" is not a conditional style. </text:p> <text:p text:style-name="Numbering 1" text:cond-style-name="Text body"> "Text body" is a conditional style. If it is contained in a numbered paragraph, it maps to "Numbering 1". This is assumed in this example. </text:p> ---------------------------------- According to the schema, text:style-name and text:cond-style-name are styleNameRef types. A styleNameRef is defined as an NCName. If you look at the definition of NCName in http://www.w3.org/TR/xml-names/#NT-NCName you'll see that spaces are not allowed. "Heading 1" and "Text body" contain a space. While copying text from the specifications, I also noticed that the example in section 4.2 is wrong. Some of the attributes lack namespace qualifiers. -- Sincerely yours / Med venlig hilsen, Søren Roug <soren.roug@eea.europa.eu> European Environment Agency, Kongens Nytorv 6, DK-1050 Copenhagen K Tel: +45 3336 7212 Fax: +45 3336 7199 Jabber: roug@jabber.eea.europa.eu This email was delivered using 100% recycled electrons. Please try to keep it that way.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]