<endflag>

The <endflag> element in a DITAVAL document specifies information that identifies the end of flagged content. The information can be an image, alternate text, or both.

Usage information

If the <endflag> element does not specify an image or provide alternate text, the element has no defined purpose.

Rendering expectations

Processors treat the information provided by the <endflag> element in the following way:

  • If an image is specified, the image is used as a flag to identify the end of the flagged content. If the <alt-text> element contains content, the content is used as alternate text for the image.
  • If alternate text is specified but the <endflag> element does not specify an image, the alternate text is used to indicate the end of the flagged content.

Content model

<alt-text> ?

Optional <alt-text>

Attributes

The following attribute is available on this element:

@imageref
Specifies a URI reference to the image, using the same syntax as the @href attribute. See The href attribute for information on supported values and processing implications.
@imageref
Specifies a URI reference to the image, using the same syntax as the @href attribute. See The href attribute for information on supported values and processing implications.

Example

This section is non-normative.

The following code sample shows a DITAVAL document that is used to flag content that applies to administrators. The <startflag> and <endflag> elements provide text that is used to indicate the start and end point of the flagged content.

<val>
  <prop action="flag" att="audience" val="administrator">
    <startflag>
      <alt-text>Administrator content</alt-text>
    </startflag>
    <endflag>
      <alt-text>End of administrator content</alt-text>
    </endflag>
  </prop>
</val>