17.13.4.2 comment
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 correct use of the commentReference element (17.13.4.5), as defined by the WordprocessingML schema, then it can 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 can be ignored.
[Example: Consider a document with text with an annotated comment as follows:
This comment is represented as the following WordprocessingML fragment:
<w:comment w:id="1" w:initials="User" w:author="Dan Battagin">
…
</w:comment>
The comment element specifies the presence of a single comment within the comments part. end example]
Attributes
date (Annotation Date)
Specifies the date information for an annotation within a WordprocessingML document. The use of this information is outside of the scope of ISO/IEC 29500
If this attribute is omitted, then no date information shall be associated with the parent annotation type.
[Example: Consider a comment represented using the following WordprocessingML fragment:
<… w:id="1" w:date="2006-01-01T10:00:00">
…
</…>
The date attribute specifies that the date of the current annotation is January 1st 2006 at 10:00 AM, which can be used as desired. end example]
The possible values for this attribute are defined by the ST_DateTime simple type
(17.18.9).
author (Annotation Author)
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.
[Example: Consider a comment represented using the following WordprocessingML fragment:
<… w:id="1" w:author="Example Author">
…
</…>
The author attribute specifies that the author of the current annotation is Example
The possible values for this attribute are defined by the ST_String simple type (22.9.2.13).
initials (Initials of Comment Author)
Specifies the initials of the author of the current comment. [Note: This information can be used to format and present the associated comment information block (17.13.4.1), or in any user interface supported by an application. If there is more than one author with the same initials, it might be more useful to display the author name. end note]
If this attribute is omitted, then no author shall be associated with the current comment in the document.
[Example: Consider a comment represented using the following WordprocessingML fragment:
<w:comment w:id="1" w:initials="KB" w:author="Krista Bendig">
…
</w:comment>
The initials attribute specifies that the initials of the author of the current comment are
The possible values for this attribute are defined by the ST_String simple type (22.9.2.13).
id (Annotation Identifier)
Specifies a unique identifier for an annotation within a WordprocessingML document. The restrictions on the id attribute, if any, are defined by the parent XML element.
If this attribute is omitted, then the document is non-conformant.
[Example: Consider an annotation represented using the following WordprocessingML fragment:
<… w:id="1" … >
…
</…>
The id attribute specifies that the ID of the current annotation is 1. This value is used to uniquely identify this annotation within the document content. end example]
The possible values for this attribute are defined by the ST_DecimalNumber simple type (17.18.10).
[Note: The W3C XML Schema definition of this element’s content model (CT_Comment) is located in A.1. end note]