-
Notifications
You must be signed in to change notification settings - Fork 474
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
Add subDocument TargetMode="external" relationship support #277
Comments
Please provide a full self-contained code snippet and an example document so this can be investigated. |
The following documents were created in Word and work as expected when building master documents composed of sub documents as described in the ooxml spec. The subDoc anchor element appears to be supported but I'm unable to add the relationship required to make these types of composed documents work. |
Here are the important embedded xml parts illustrating the relationship I'm hoping to be able to compose with unioffice. The subDoc anchor in the document body references the relationship with Id="rId6" in the relationship file. Its the subDocument relationship type that doesn't appear to be supported. Master.docx -> word/document.xml
Master.docx -> word/_rels/document.xml.rels
|
It seems like writing/generation of documents with this subDocument relationship would be fairly easy if the subDocument is just a path/filename and no knowledge of the contents. Reading/parsing is more tricky, as for example one would expect text extraction to go get contents within the embedded subdocument. In that case also, it would not be appropriate to access any files outside the same folder as the master docx file is in. In a way, would be preferable if the subDocuments were inside the docx bundle rather than externally on disk. |
I see that the subDoc anchor element is supported but not the http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument relationship. I see the schema files in the repo are all tagged as generated, do not edit. Are there plans to include this relationship?
A
subDoc
anchor with aRelationship TargetMode="external"
support is really the only barrier to completing a project that I'm working on. I'm attempting to generate a document from many artifacts with automated page references. Importing external documents as sections into the primary document hasn't worked very well because I don't have much control over the artifacts, there always seems to be some formatting issue using real artifacts from previous documents. Reading the spec it seems that the subDoc element with the external target relationship would solve my issues.Thanks!
The text was updated successfully, but these errors were encountered: