Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect path in Target attribute of <Relationship> tag #88

Closed
ghost opened this issue Mar 23, 2016 · 4 comments
Closed

Incorrect path in Target attribute of <Relationship> tag #88

ghost opened this issue Mar 23, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 23, 2016

Relationship tag in /_rels/.rels after creation by SDK:
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="/word/document.xml" Id="Rc15b273bb4a243cd" />
Can open document with MS Word: yes
Can open document with OpenOffice: no

Relationship tag in /_rels/.rels after creation by SDK and resaving by MS Word:
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml" Id="Rc15b273bb4a243cd" />
Note leading slash!
Can open document with MS Word: yes
Can open document with OpenOffice: yes

Relationship tag in /word/_rels/document.xml.rels after creation by SDK:
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="/word/styles.xml" Id="R1573c7d6e53e43aa" />
Can open document with MS Word: yes
Can open document with OpenOffice: no

Relationship tag in /word/_rels/document.xml.rels after creation by SDK and resaving by MS Word:
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" Id="R1573c7d6e53e43aa" />
Can open document with MS Word: yes
Can open document with OpenOffice: yes

@Numpsy
Copy link
Contributor

Numpsy commented Mar 23, 2016

Sounds like the same issue as #59 and #86? (affecting all the office apps with various problems occuring as a result).

@ghost
Copy link
Author

ghost commented Mar 23, 2016

Yes, you are right.

@tomjebo
Copy link
Collaborator

tomjebo commented Oct 5, 2016

See the comments on #86. I did some testing and verified against the standard (ISO 29500-2 9.1.1 and 9.3.2.2) and:

  1. absolute URI and relative path should both be correct for the Target attribute.
  2. OpenOffice 4.1.2 (at least Calc) seems to handle absolute paths just fine, as does Microsoft Excel.

@ghost I haven't tested OpenOffice Writer but if you provide a sample document or code to generate one, I can try it out.

@tomjebo
Copy link
Collaborator

tomjebo commented Dec 16, 2016

closing as this is being discussed on #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants