Apache OpenOffice (AOO) Bugzilla – Issue 103209
im-/export attribute xlink:href at chart:chart element
Last modified: 2013-02-24 21:21:43 UTC
ODF 1.2 adds the attribute xlink:href to the <chart:chart> element. It specifies which document does provide the data for the chart. At least the values "." and ".." should be implemented, to distinguish whether the data comes from the chart itself or from the parent application.
Created attachment 63291 [details] example for import
How to test the import: Load the attached example document 'HRefForDataProvider.ods'. It contains two charts. Double click on the left chart named 'data from spreadsheet'. Open the context menu within the chart. Expected is an entry 'Data Ranges...' which shows that the data comes from the spreadsheet. Instead there wrongly is en entry 'Chart Data Table...' which indicates that the chart has its own data table. Double click on the right chart named 'chart has its own data'. Open the context menu within the chart. Here an entry 'Chart Data Table...' is expected.
How to test the export: Within a spreadsheet fill some cells with numbers and click on Menu->Insert->Chart while the cursor is within the cells with numbers. Finish the wizard. You should now have a chart that gets its data from the spreadsheet. Save the file. The saved file is a zip package. Look into it. There is a folder called 'Object 1' which contains a file content.xml. Open this content.xml file with a text editor. You should find the string xlink:href="..". Now create a chart that has its own data for example within a writer document. Make sure your cursor is not located in any table and select Menu->Insert->Object->Chart. Save. Again look at 'Object 1'/content.xml within the saved file. Here you should find the string xlink:href=".". An exception: If under Menu->Tools->Options->Load/Save->General->ODF Format version a version less than ODF 1.2 is set, no string xlink:href should be exported at all.
Fixed in CWS chart39.
@Sophie, please verify in CWS chart39. Thanks, Ingrid!
Verified in CWS chart39. - import: expected Data ranges entry is shown for the chart taking its data from the spreadsheet and the expected Chart Data Table is shown for the chart having its own data table. - export : xlink:href=".." found for the chart getting its data from spreadsheet and xlink:href="." for chart having its own data table. switch to ODF 1.0/1.1 : no xlink:href found in the two content.xml files. Sophie
Verified in DEV300m54 under .deb version - Closing - Sophie