Comments Part
Content Type: |
application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml |
Root Namespace: |
http://schemas.openxmlformats.org/wordprocessingml/2006/main |
Source Relationship: |
http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments |
An instance of this part type contains the information about each comment in the document.
A package shall contain no more than two Comments parts. If it exists, one instance of that part shall be the target of an implicit relationship from the Main Document (§11.3.10) part, and the other shall be the target of an implicit relationship from the Glossary Document (§11.3.8) part.
<Relationships xmlns="…"> <Relationship Id="rId93" Type="http://…/comments" Target="comments.xml"/> </Relationships>
The root element for a Comment part shall be <comments>
.
<w:comments … >
<w:comment>
…
</w:comment>
…
</w:comments>
The XML markup for a comment in a Main Document part uses the <commentReference>
element.
<w:p …> … <w:r> <w:t>... in the Standard.</w:t> </w:r> <w:r> <w:commentReference w:id="1"/> </w:r> </w:p>
Each comment has a corresponding <comment>
element in the Comments part, which contains the text of the comment.
<w:comments xmlns:w="…" <w:comment w:id="1"> <w:p> <w:r> <w:t>This is my comment.</w:t> </w:p> </w:comment> </w:comments>
A Comments part shall be located within the package containing the source relationship (expressed syntactically, the @TargetMode
attribute of the <Relationship>
element shall be Internal
).
A Comments part is permitted to contain explicit relationships to the following parts defined by this Standard:
Alternative Format Import (§11.3.1)
Chart (§14.2.1)
Diagrams: Diagram Colors(§14.2.3), Diagram Data(§14.2.4), Diagram Layout Definition(§14.2.5) and Diagram Styles (§14.2.6)
Embedded Control Persistence (§15.2.8)
Embedded Object (§15.2.9)
Embedded Package (§15.2.10)
Hyperlinks (§15.3)
Images (§15.2.13)
Video (§15.2.16)
A Comments part shall not have any implicit or explicit relationships to any other part defined by this Standard.