Apache OpenOffice (AOO) Bugzilla – Issue 86063
RNG:Error:unexpected attribute "chart:right-angled-axes"
Last modified: 2013-02-24 21:20:23 UTC
download and validate the bugdoc against Relax NG Schema 1.2 draft6. You get the following error : upload:///object_chart.odt/Object 1/content.xml[16,60]:Error:unexpected attribute "chart:right-angled-axes" Draft6 has chart:right-angled-axes but it seems it's not used correctly in the document.
Created attachment 51489 [details] bugdoc
->iha: For some reason the right-angled axes feature was specified to be an attribute at the plot-area rather than a property in the auto-styles. Currently, it is exported as auto-style. IMO, it makes sense to use it like we do. The question is, if we can still propose the OASIS TC to change this for the ODF 1.2 standard. See current draft: <define name="chart-plot-area-attlist" combine="interleave"> <optional> <attribute name="chart:style-name"> <ref name="styleNameRef"/> </attribute> </optional> <optional> <attribute name="chart:right-angled-axes" a:defaultValue="false"> <ref name="boolean"/> </attribute> </optional> </define>
->bm: I think we should suggest the change to the TC. The information whether a chart is 3d or not is also only a property in the auto-style (see ODF 1.1 15.30.1). And we export the new property already since OOo 2.3 . The changed proposal could be: <define name="style-chart-properties-attlist" combine="interleave"> <optional> <attribute name="chart:right-angled-axes"> <ref name="boolean"/> </attribute> </optional> </define> between chapter 15.30.2 and 15.30.3 (ODF 1.1 numbering).
The change request for ODF 1.2 was accepted, the specification draft was changed accordingly. So this problem does not occur anymore.
@Frank, please verify with the latest draft.
Validation against RNG Schema 1.2 latest (Draft 7 I think) does not show the validation error, neither on the old document nor on a new one. Therefore closed fixed.