<comment>
(Comment Content)
This element specifies the content of a single comment stored in the Comments part of a WordprocessingML document.
If a comment is not referenced by document content via a matching @id
attribute on a valid use of the <commentReference>
element (§2.13.4.5), then it may be ignored when loading the document. If more than one comment shares the same value for the @id
attribute, then only one comment shall be loaded and the others may be ignored.
This comment is represented as the following WordprocessingML fragment:
<w:comment w:id="1" w:initials="User"> … </w:comment>
The <comment>
element specifies the presence of a single comment within the comments part. ]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes |
Description |
---|---|
|
Specifies the author for an annotation within a WordprocessingML document. If this attribute is omitted, then no author shall be associated with the parent annotation type. <w:… w:id="1" w:author="Example Author"> … </w:…> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
|
Specifies the date information for an annotation within a WordprocessingML document. The use of this information is outside of the scope of this Office Open XML Standard. If this attribute is omitted, then no date information shall be associated with the parent annotation type. <w:… w:id="1" w:date="2006-01-01T10:00:00"> … </w:…> The The possible values for this attribute are defined by the ST_DateTime simple type (§2.18.15). |
|
Specifies a unique identifier for an annotation within a WordprocessingML document. The restrictions on the If this attribute is omitted, then the document is non-conformant. <w:… w:id="1" … > … </w:…> The The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
|
Specifies the initials of the author of the current comment. This information may be used to format and present the associated comment information block (§2.13.4.1), or in any user interface supported by an application. If this attribute is omitted, then no author shall be associated with the current comment in the document. <w:comment w:id="1" w:initials="KB"> … </w:comment> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Comment">
<complexContent>
<extension base="CT_TrackChange">
<sequence>
<group ref="EG_BlockLevelElts" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="initials" type="ST_String" use="optional"/>
</extension>
</complexContent>
</complexType>