Issue 103209 - im-/export attribute xlink:href at chart:chart element
Summary: im-/export attribute xlink:href at chart:chart element
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: sgautier.ooo
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-30 09:19 UTC by IngridvdM
Modified: 2013-02-24 21:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
example for import (16.48 KB, application/vnd.oasis.opendocument.spreadsheet)
2009-06-30 16:04 UTC, IngridvdM
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description IngridvdM 2009-06-30 09:19:04 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.
Comment 1 IngridvdM 2009-06-30 16:04:57 UTC
Created attachment 63291 [details]
example for import
Comment 2 IngridvdM 2009-06-30 16:13:29 UTC
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.
Comment 3 IngridvdM 2009-06-30 16:27:19 UTC
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.
Comment 4 IngridvdM 2009-06-30 16:28:44 UTC
Fixed in CWS chart39.
Comment 5 IngridvdM 2009-07-01 13:03:01 UTC
@Sophie, please verify in CWS chart39. Thanks, Ingrid!
Comment 6 sgautier.ooo 2009-07-02 12:52:33 UTC
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
Comment 7 sgautier.ooo 2009-08-05 13:59:40 UTC
Verified in DEV300m54 under .deb version - Closing - Sophie