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.

example:
<Relationships xmlns="…">
  <Relationship Id="rId93"
    Type="http://…/comments" Target="comments.xml"/>
</Relationships>

The root element for a Comment part shall be <comments>.

example:
<w:comments  >
  <w:comment></w:comment></w:comments>

The XML markup for a comment in a Main Document part uses the <commentReference> element.

example:
<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.

example:
<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:

A Comments part shall not have any implicit or explicit relationships to any other part defined by this Standard.