17.5.2.36 sdtContent

This element specifies the last known contents of a structured document tag around one or more inline-level structures (runs, DrawingML objects, fields, etc.). This element’s contents shall be treated as a cache of the contents to be displayed in the structured document tag for the following reasons:

  • If the structured document tag specifies an XML mapping via the dataBinding element (17.5.2.6),
  • changes to the custom XML data part shall be reflected in the structured document tag as needed
  • If the contents of the structured document tag are placeholder text via the showingPlcHdr element
  • (17.5.2.39), then this content can be updated with the placeholder text stored in the Glossary
  • Document part

[Example: Consider a structured document tag with the friendly name firstName that must be located around two runs in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:

<w:p>
  <w:sdt>
    <w:sdtPr>
      <w:alias w:val="firstName"/>
    </w:sdtPr>
    <w:sdtContent>
      <w:r>
      </w:r>
      <w:r>
      </w:r>
    </w:sdtContent>
  </w:sdt>
</w:p>

The sdtContent element contains two adjacent runs (it is an inline-level structured document tag content container). end example]

[Note: The W3C XML Schema definition of this element’s content model (CT_SdtContentRun) is located in A.1. end note]

Last updated on