Alternative Format Import Part
Content Type: |
Any content, support for which is application-defined. Note:
|
Root Namespace: |
not applicable |
Source Relationship: |
http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk |
An alternative format import part allows content specified in an alternate format (HTML, MHTML, RTF, earlier versions of WordprocessingML, or plain text) to be embedded directly in a WordprocessingML document in order to allow that content to be migrated to the WordprocessingML format.
Any document part that permits a <p>
element can also contain an <altChunk>
element, whose @id
attribute refers to a relationship. That relationship shall target a part within the package, which contains the content to be imported into this WordprocessingML document.
A package is permitted to contain zero or more Alternative Format Import parts, each of which shall have a corresponding alternate format file that is the target of an explicit relationship from a Comments (§11.3.2), Endnotes (§11.3.4), Footer (§11.3.6), Footnotes (§11.3.7), Header (§11.3.9), or Main Document (§11.3.10) part. This relationship shall be explicitly referenced using its relationship ID in the source part using the appropriate XML syntax (i.e.; in the @id
attribute on the <altChunk>
element), and the presence of this relationship without such a reference shall be considered invalid.
A WordprocessingML consumer shall treat the contents of such legacy text files as if they were formatted using equivalent WordprocessingML, and if that consumer is also a WordprocessingML producer, it shall emit the legacy text in WordprocessingML format.
This Standard does not specify how one might create a WordprocessingML package that contains Alternative Format Import relationships and <altChunk>
elements.
<Relationships xmlns="…"> <Relationship Id="rId5" Type="http://…/aFChunk" Target="Demo.html" TargetMode="Internal"/> </Relationships>
The Main Document part contains the following XML fragment:
<w:body> … <w:p/> <w:altChunk r:id="rId5"/> <w:p/> … </w:body>
which results in the entire contents of Demo.html being converted and brought into the document at that point (assuming that the content type of Demo.html is supported by the application consuming this WordprocessingML file). ]
An Alternative Format Import part shall be located within the package containing the source relationship (expressed syntactically, the @TargetMode
attribute of the <Relationship>
element shall be Internal
).
An Alternative Format Import part shall not have any explicit or implicit relationships to parts defined by this Standard.