DocumentID: ECMA-376/Part4/2.5.2 Title: ECMA-376, Part4: 2.5.2 Structured Document Tags Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006 Warning: Coverted to HTML format by a script known to have bugs
The final type of customer-defined semantics which can be embedded in a WordprocessingML document are structured document tags (SDTs).
As shown above, smart tags and custom XML markup each provide a facility for embedding customer-defined semantics into the document: smart tags, via the ability to provide a basic namespace/name for a run or set of runs within a documents; and custom XML markup, via the ability to tag the document with XML elements and attributes specified by any valid XML Schema file.
However, each of these techniques, while they each provide a way to add the desired semantic information, does not provide a way to affect the presentation or interaction within the document. To bridge these two worlds, structured document tags allow both the specification of customer semantics as well as the ability to influence the presentation of that data in the document.
This means that the customer can define the semantics and context of the tag, but can then use a rich set of pre-defined properties to define its behavior and appearance within the WordprocessingML document's presentation.
[Example: Consider a region which should be tagged with the semantic of "birthday", for the user to enter their date or birth into the document. Ideally, this region would also utilize a date picker to allow the user to enter the date from a calendar:
This content would be specified using the following WordprocessingML:
<w:sdt>
<w:sdtPr>
<w:alias w:val="Birthday"/>
<w:id w:val="8775518"/>
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22479095"/>
</w:placeholder>
<w:showingPlcHdr/>
<w:date>
<w:dateFormat w:val="M/d/yyyy"/>
<w:lid w:val="EN-US"/>
</w:date>
</w:sdtPr>
<w:sdtContent>
<w:p>
<w:r>
<w:rPr>
<w:rStyle w:val="PlaceholderText"/>
</w:rPr>
<w:t>Click here to enter a date...</w:t>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
end example]
As shown above, each of the structured document tags in the WordprocessingML file is represented using the sdt element.
Within a structured document tag, there are two child elements which contain the definition and the content of this SDT. The first of these is the sdtPr element, which contains the set of properties specified for this structured document tag. The second is the sdtContent element, which contains all the content which is contained within this structured document tag.
This element specifies the friendly name associated with the current structured document tag. The string representing the friendly name shall be stored on this element's val attribute.
If this element is omitted, then no friendly name shall be associated with the given structured document tag.
[Example: Consider the following properties on a structured document tag:
<w:sdtPr>
<w:alias w:val="Birthday"/>
...
</w:sdtPr>
This set of properties specifies via the alias element that the friendly name for the parent structured document tag shall be Birthday. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Attributes |
Description |
|---|---|
|
val (String Value) |
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. [Example: Consider the following WordprocessingML fragment:
The value of the However, consider the following fragment:
In this case, the decimal number in 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_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>
This element specifies that the parent structured document tag shall be of type bibliography.
This type setting does not require or imply that the contents of the structured document tag shall contain only a field of type BIBLIOGRAPHY, it shall only be used to specify that the structured document tag is of this type, which may be used by an application as desired.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:bibliography/>
</w:sdtPr>
...
</w:sdt>
The bibliography element in this structured document tag's properties specify that the type of structured document tag is bibliography. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies the type of calendar which shall be displayed for the current date picker structured document tag, if a user interface is present for the structured document tag. The calendar type is stored on this element's val attribute.
If this element is omitted, then the calendar type shall be gregorian.
[Example: Consider the following structured document tag properties:
<w:sdtPr>
<w:date w:fullDate="01-01-2006T06:30:00Z">
<w:calendar w:val="gregorian"/>
</w:date>
</w:sdtPr>
The calendar element specifies that the calendar type for a calendar which may be displayed in the document shall be the Gregorian calendar format (gregorian). end example]
|
Parent Elements |
|
date (§2.5.2.7) |
|
Attributes |
Description |
|---|---|
|
val (Calendar Type Value) |
Specifies a type of calendar, the use of which is determined by the parent XML element. If this attribute is omitted, then the calendar type shall be gregorian. [Example: Consider the following WordprocessingML for a document containing a structured document tag:
The The possible values for this attribute are defined by the ST_CalendarType simple type (§2.18.7). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_CalendarType">
<attribute name="val" type="ST_CalendarType"/>
</complexType>
This element specifies that the parent structured document tag shall be of type citation.
This type setting does not require or imply that the contents of the structured document tag shall contain only a field of type CITATION, it shall only be used to specify that the structured document tag is of this type, which may be used by an application as desired.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:citation/>
</w:sdtPr>
...
</w:sdt>
The citation element in this structured document tag's properties specify that the type of structured document tag is citation. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies that the parent structured document tag shall be a combo box when displayed in the document.
This setting specifies that the behavior for this structured document tag shall be as follows:
As well, the structured document tag must satisfy the following restraints or the document shall be considered invalid:
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:comboBox>
...
</w:comboBox>
</w:sdtPr>
...
</w:sdt>
The comboBox element in this structured document tag's properties specify that the type of structured document tag is a combo box. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
listItem (Combo Box List Item) |
|
Attributes |
Description |
|---|---|
|
lastValue (Combo Box Last Saved Value) |
Specifies the value associated with the current display text for the combo box structured document tag. If this structured document tag is not mapped to XML using the dataBinding element (§2.5.2.6), then this attribute shall be ignored. If this structured document tag is mapped to XML, it shall be used to determine whether the current display text in the combo box structured document tag shall be retained when the document is opened, as follows:
[Example: Consider a combo box structured document tag defined as follows:
The current run content of the structured document tag reads 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_SdtComboBox">
<sequence>
<element name="listItem" type="CT_SdtListItem" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="lastValue" type="ST_String" use="optional"/>
</complexType>
This element specifies the information which shall be used to establish a mapping between the parent structured document tag and an XML element stored within a Custom XML Data part in the current WordprocessingML document.
If this element is omitted, then no XML mapping shall be associated with the current structured document tag. If the parent structured document tag is of type rich text or document part gallery, then this property shall be ignored.
If this element is present and the parent structured document tag is not of a rich text type, then the current value of the structured document tag shall be determined by finding the XML element (if any) which is determined by the attributes on this element. If this information does not result in a valid XML element, then the application may use any algorithm desired to find the closest available match. If this information does result in a valid XML element, then the contents of that element shall be used to replace the current run content within the document.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
<w:dataBinding w:xpath="/root/name/first" ... />
<w:text/>
</w:sdtPr>
<w:sdtContent>
<w:r>
<w:t>old text</w:t>
</w:r>
</w:sdtContent>
</w:sdt>
This structured document tag specifies that it contains only plain text via the text element, and that it shall be mapped to the element in the first Custom XML Data part which contains an element that matches the XPath expression /root/name/first. When that element is located, its contents shall replace the existing run content in the document (for example, if its contents are new text, then the contents of the run for this structured document tag shall be new text when the document is displayed. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Attributes |
Description |
|---|---|
|
prefixMappings (XML Namespace Prefix Mappings) |
Specifies the set of prefix mappings which shall be used to interpret the XPath expression specified on the This attribute's value shall be specified using the following syntax: If this attribute is omitted, then the prefix mappings specified on each of the custom XML data parts itself shall be used to evaluate the given XPath expression. [Example: Consider the following structured document tag properties:
This structured document tag specifies that it contains an XML mapping, and that mapping's The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
|
storeItemID (Custom XML Data Storage ID) |
Specifies the custom XML data identifier for the custom XML data part which shall be used to evaluate the given XPath expression. The custom XML data identifier, specified using the If specified, then the XPath expression specified on the If omitted, then the XPath expression shall be evaluated against each custom XML data part in turn until the given XPath expression is resolved to an XML element. [Example: Consider the following structured document tag properties:
This structured document tag specifies that it contains an XML mapping, and that mapping shall only be evaluated against the custom XML part whose identifier is equal to testXmlPart (if one exists). end example] The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
|
xpath (XPath) |
Specifies the XPath expression which shall be evaluated to find the custom XML node which is mapped to the parent structured document tag. This XPath expression shall be specified using the syntax defined in the XML Path Language (XPath) Version 1.0 specification (see Annex A for bibliographic reference information). [Example: Consider the following structured document tag properties:
This structured document tag specifies that it contains an XML mapping, and that mapping's 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_DataBinding">
<attribute name="prefixMappings" type="ST_String"/>
<attribute name="xpath" type="ST_String" use="required"/>
<attribute name="storeItemID" type="ST_String" use="required"/>
</complexType>
This element specifies that the parent structured document tag shall be a date picker when displayed in the document.
This setting specifies that the behavior for this structured document tag shall be as follows:
As well, the structured document tag must satisfy the following restraints or the document shall be considered invalid:
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:date>
...
</w:date>
</w:sdtPr>
...
</w:sdt>
The date element in this structured document tag's properties specifies that the type of structured document tag is a date picker. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
calendar (Date Picker Calendar Type) |
|
|
dateFormat (Date Display Mask) |
|
|
lid (Date Picker Language ID) |
|
|
storeMappedDataAs (Custom XML Data Date Storage Format) |
|
Attributes |
Description |
|---|---|
|
fullDate (Last Known Date in XML Schema DateTime Format) |
Specifies the full date and time last entered into the parent structured document tag using the standard XML Schema DateTime syntax. [Note: This cache is used because the date display mask stored on the dateFormat element (§2.5.2.8) may not contain all of the information about the date, which may be needed if the date display mask is later changed. end note] If this attribute is specified, then the current If this attribute is omitted, then the current display text shall be maintained when the document is displayed. [Example: Consider the following structured document tag properties:
The full XML Schema DateTime format for the current structured document tag is specified via the The possible values for this attribute are defined by the ST_DateTime simple type (§2.18.15). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtDate">
<sequence>
<element name="dateFormat" type="CT_String" minOccurs="0"/>
<element name="lid" type="CT_Lang" minOccurs="0"/>
<element name="storeMappedDataAs" type="CT_SdtDateMappingType" minOccurs="0"/>
<element name="calendar" type="CT_CalendarType" minOccurs="0"/>
</sequence>
<attribute name="fullDate" type="ST_DateTime" use="optional"/>
</complexType>
The element specifies the display format which shall be used to format any date entered into the parent structured document tag in full DateTime format [Example: Through a user interface (a date picker), or through custom XML data associated with this structured document tag via the dataBinding element (§2.5.2.6). end example] before displaying it in the structured document tag's run content.
If this element is omitted, then the date shall be formatted using the standard date display mask for the language ID specified on the lid element (§2.5.2.19) if present, or the language ID of the run contents otherwise.
The date display mask specified in the val attribute shall be interpreted using the semantics specified in §2.16.4.1 of this Office Open XML Standard.
[Example: Consider the following structured document tag properties:
<w:sdtPr>
<w:date w:fullDate="01-01-2006T06:30:00Z">
<w:dateFormat w:val="MM-YYYY"/>
</w:date>
</w:sdtPr>
The full XML Schema DateTime format for the current structured document tag is specified via the fullDate attribute value as 01-01-2006T06:30:00Z, and the date display mask is MM-YYYY, therefore the resulting date displayed in the document shall be 01-2006 (the month and long year from the full date value, respectively). end example]
|
Parent Elements |
|
date (§2.5.2.7) |
|
Attributes |
Description |
|---|---|
|
val (String Value) |
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. [Example: Consider the following WordprocessingML fragment:
The value of the However, consider the following fragment:
In this case, the decimal number in 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_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>
This element specifies the name of the document part which shall be displayed in the parent structured document tag when its run contents are empty. If this element is specified, then a document part whose name element (§2.12.12) specifies a name matching the value of this element, and which belongs to the bbPlcHdr type shall be located to be used as the placeholder text for the parent structured document tag.
If no document part is located matching the criteria specified by this element, then five non-breaking spaces shall be used as the default placeholder text.
[Example: Consider a structured document tag defined as follows:
<w:sdt>
<w:sdtPr>
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22610170" />
</w:placeholder>
...
</w:sdtPr>
<w:sdtContent>
...
</w:sdtContent>
</w:sdt>
This structured document tag specifies through the docPart element that its placeholder text shall be specified in the document part of type bbPlcHdr whose name is equal to DefaultPlaceholder_22610170. end example]
|
Parent Elements |
|
placeholder (§2.5.2.24) |
|
Attributes |
Description |
|---|---|
|
val (String Value) |
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. [Example: Consider the following WordprocessingML fragment:
The value of the However, consider the following fragment:
In this case, the decimal number in 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_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>
This element specifies the category of document parts which shall be used as the filter when determining the possible choices of document parts which are displayed for insertion into the parent structured document tag. A document part category is a sub-classification within a given document part gallery which may be used to further categorize the parts in a given gallery. [Example: Gallery custom1 may have categories of Legal Clauses, Conformance Clauses, etc. end example]. The category which shall be used as a filter is stored in this element's val attribute.
If this element is omitted, then the parent structured document tag shall display all document parts in the specified gallery regardless their specified category. If this element is present, but no document parts of the specified gallery and category combination are located by the application, then no document parts shall be displayed (i.e. the application shall not fall back to showing document parts in all categories in the specified gallery).
[Example: Consider the following properties for a structured document tag:
<w:sdtPr>
<w:docPartList>
<w:docPartGallery w:val="custom1"/>
<w:docPartCategory w:val="Legal Clauses"/>
</w:docPartList>
</w:sdtPr>
This structured document tag specifies that it shall present a selection of document parts for insertion via the docPartList element (§2.5.2.12) , and those document parts shall only be the parts which are in the custom1 gallery via the docPartType element (§2.5.2.11), and within that gallery, only the document parts which are in a category called Legal Clauses via this element. end example]
|
Parent Elements |
|
Attributes |
Description |
|---|---|
|
val (String Value) |
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. [Example: Consider the following WordprocessingML fragment:
The value of the However, consider the following fragment:
In this case, the decimal number in 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_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>
This element specifies the gallery of document parts which shall be used as the filter when determining the possible choices of document parts which are displayed for insertion into the parent structured document tag. A document part gallery is a classification of document parts, which may then be subdivided into categories. [Example: A gallery with a name of custom1 may have categories of Legal Clauses, Conformance Clauses, etc. end example]. The gallery which shall be used is stored in this element's val attribute.
If this element is omitted, then the parent structured document tag shall display all document parts in its default gallery. If this element is present, but no document parts of the specified gallery are located by the application, then document parts in the default gallery hall be displayed (i.e. the application shall behave as if the value was omitted).
[Example: Consider the following properties for a structured document tag:
<w:sdtPr>
<w:docPartList>
<w:docPartGallery w:val="custom1"/>
</w:docPartList>
</w:sdtPr>
This structured document tag specifies that it shall present a selection of document parts for insertion via the docPartList element (§2.5.2.12), and those document parts shall only be the parts which are in the custom1 gallery via this element. end example]
|
Parent Elements |
|
Attributes |
Description |
|---|---|
|
val (String Value) |
Specifies that its contents will contain a string. The contents of this string are interpreted based on the context of the parent XML element. [Example: Consider the following WordprocessingML fragment:
The value of the However, consider the following fragment:
In this case, the decimal number in 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_String">
<attribute name="val" type="ST_String" use="required"/>
</complexType>
This element specifies that the parent structured document tag shall be of a document part gallery type.
This type setting does not require or imply that the contents of the structured document tag shall contain only the exact contents of a document part of the specified gallery and category which is present on the current machine, it shall only be used to specify that the structured document tag is of this type, which shall be used by an application to present the possible list of choices for insertion into the parent structured document tag.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:docPartList>
...
</w:docPartList>
</w:sdtPr>
...
</w:sdt>
The docPartList element in this structured document tag's properties specifies that the type of structured document tag is a document part gallery. The child elements shall specify the gallery and category filters for this list, if any. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
docPartCategory (Document Part Category Filter) |
|
|
docPartGallery (Document Part Gallery Filter) |
|
|
docPartUnique (Built-In Document Part) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtDocPart">
<sequence>
<element name="docPartGallery" type="CT_String" minOccurs="0"/>
<element name="docPartCategory" type="CT_String" minOccurs="0"/>
<element name="docPartUnique" type="CT_OnOff" minOccurs="0"/>
</sequence>
</complexType>
This element specifies that the parent structured document tag shall be of a document part type.
This type setting does not require or imply that the contents of the structured document tag shall contain only the exact contents of a document part of the specified gallery and category which is present on the current machine, it shall only be used to specify that the structured document tag is of this type, which shall be used by an application to present the possible list of choices for insertion into the parent structured document tag.
This element differs from the docPartList element (§2.5.2.12) in that it may be used to semantically tag a set of block-level objects in a WordprocessingML document without requiring the ability to specify a category and gallery of objects which may be swapped with it via the user interface.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:docPartObj>
...
</w:docPartObj>
</w:sdtPr>
...
</w:sdt>
The docPartObj element in this structured document tag's properties specify that the type of structured document tag is a document part. The child elements shall specify the gallery and category semantics for this part, if any. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
docPartCategory (Document Part Category Filter) |
|
|
docPartGallery (Document Part Gallery Filter) |
|
|
docPartUnique (Built-In Document Part) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtDocPart">
<sequence>
<element name="docPartGallery" type="CT_String" minOccurs="0"/>
<element name="docPartCategory" type="CT_String" minOccurs="0"/>
<element name="docPartUnique" type="CT_OnOff" minOccurs="0"/>
</sequence>
</complexType>
This element specifies that this structured document tag is being used to encapsulate a built-in document part (i.e. this element appears as a child element of the docPartObj element).
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:docPartObj>
...
<w:docPartUnique/>
</w:docPartObj>
</w:sdtPr>
...
</w:sdt>
The docPartUnique element in this structured document tag's properties specify that the type of structured document tag is a container for a document part. end example]
|
Parent Elements |
|
Attributes |
Description |
|---|---|
|
val (On/Off Value) |
Specifies a binary value for the property defined by the parent XML element. A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted. A value of off, 0, or false specifies that the property shall be explicitly turned off. [Example: For example, consider the following on/off property:
The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_OnOff">
<attribute name="val" type="ST_OnOff"/>
</complexType>
This element specifies that the parent structured document tag shall be a drop-down list when displayed in the document.
This setting specifies that the behavior for this structured document tag shall be as follows:
As well, the structured document tag must satisfy the following restraints or the document shall be considered invalid:
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:dropDownList>
...
</w:dropDownList>
</w:sdtPr>
...
</w:sdt>
The dropDownList element in this structured document tag's properties specify that the type of structured document tag is a drop-down list. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
listItem (Drop-Down List Item) |
|
Attributes |
Description |
|---|---|
|
lastValue (Drop-down List Last Saved Value) |
Specifies the value associated with the current display text for the drop-down list structured document tag. If this structured document tag is not mapped to XML using the dataBinding element (§2.5.2.6), then this attribute shall be ignored. If this structured document tag is mapped to XML, it shall be used to determine whether the current display text in the combo box structured document tag shall be retained when the document is opened, as follows:
[Example: Consider a drop-down list structured document tag defined as follows:
The current run content of the structured document tag reads 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_SdtDropDownList">
<sequence>
<element name="listItem" type="CT_SdtListItem" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="lastValue" type="ST_String" use="optional"/>
</complexType>
This element specifies that the parent structured document tag shall be of type equation.
This type setting does not require or imply that the contents of the structured document tag shall contain only an equation or associated placeholder text, it shall only be used to specify that the structured document tag is of this type, which may be used by an application as desired.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:equation/>
</w:sdtPr>
...
</w:sdt>
The equation element in this structured document tag's properties specify that the type of structured document tag is equation. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies that the parent structured document tag shall be a restricted grouping when displayed in the document.
This setting specifies that the behavior for this structured document tag shall be as follows:
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:group/>
</w:sdtPr>
...
</w:sdt>
The group element in this structured document tag's properties specify that the type of structured document tag is a restricted group. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies a unique numerical ID for the parent structured document tag. This ID shall be persisted through multiple sessions (i.e. shall not be changed once specified).
If multiple structured document tags specify the same decimal number value for the id attribute, then the first structured document tag in the document shall maintain this original ID, and all subsequent structured document tags shall have new identifiers assigned to them when the document is opened.
If this element is omitted, then the parent structured document tag shall have a new unique identifier assigned to it when the document is opened.
[Example: Consider the following structured document tag properties:
<w:sdtPr>
<w:id w:val="8775518"/>
...
</w:sdtPr>
This set of properties specifies via the val attribute on the id element that the ID for the parent structured document shall be 8775518 (subject, of course, to the conflict management and resolution discussed above). end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Attributes |
Description |
|---|---|
|
val (Decimal Number Value) |
Specifies that the contents of this attribute will contain a decimal number. The contents of this decimal number are interpreted based on the context of the parent XML element. [Example: Consider the following numeric WordprocessingML property of type ST_DecimalNumber: <w:... w:val="1512645511" /> The value of the The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_DecimalNumber">
<attribute name="val" type="ST_DecimalNumber" use="required"/>
</complexType>
This element specifies the language ID which shall be used for displaying a calendar for the current date picker structured document tag, if a user interface is present for the structured document tag.
If this element is omitted, then the language ID shall be the language ID of the run contents of the parent structured document tag.
[Example: Consider the following structured document tag properties:
<w:sdtPr>
<w:date w:fullDate="01-01-2006T06:30:00Z">
<w:lid w:val="ja-JP"/>
</w:date>
</w:sdtPr>
The calendar language ID for a calendar which may be displayed in the document shall be the default calendar format for the Japanese (Japan) language format (ja-JP). end example]
|
Parent Elements |
|
date (§2.5.2.7) |
|
Attributes |
Description |
|---|---|
|
val (Language Code) |
Specifies an ISO 639-1 letter code or 4 digit hexadecimal code for a specific language. This code is interpreted in the context of the parent XML element. [Example: Consider an object which shall specify the English(Canada) language. That object would use the ISO 639-1 letter code of en-CA to specify this language. end example] The possible values for this attribute are defined by the ST_Lang simple type (§2.18.51). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Lang">
<attribute name="val" type="ST_Lang" use="required"/>
</complexType>
This element specifies a single list item within the parent combo box structured document tag. Each list item shall be displayed in the list displayed for the parent structured document tag (if a user interface is present).
[Example: Consider the following combo box structured document tag:
<w:sdt>
<w:sdtPr>
<w:comboBox>
<w:listItem w:displayText="Zero" w:value="0"/>
<w:listItem w:displayText="One" w:value="1"/>
</w:comboBox>
</w:sdtPr>
...
</w:sdt>
Each listItem element within the comboBox element specifies a single list item entry, in this case resulting in two list items within the parent combo box structured document tag. end example]
|
Parent Elements |
|
comboBox (§2.5.2.5) |
|
Attributes |
Description |
|---|---|
|
displayText (List Entry Display Text) |
Specifies the text to display in the run content (as well as any supplied user interface) in place of the This value shall be used as follows:
If this attribute is omitted, then the content of the [Example: Consider the following drop-down list structured document tag:
The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
|
value (List Entry Value) |
Specifies the value for the current list item entry. This value shall be used as follows:
[Example: Consider the following combo box structured document tag:
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_SdtListItem">
<attribute name="displayText" type="ST_String"/>
<attribute name="value" type="ST_String"/>
</complexType>
This element specifies a single list item within the parent drop-down list structured document tag. Each list item shall be displayed in the list displayed for the parent structured document tag (if a user interface is present).
[Example: Consider the following combo box structured document tag:
<w:sdt>
<w:sdtPr>
<w:dropDownList>
<w:listItem w:displayText="The Letter A" w:value="a"/>
<w:listItem w:displayText="The Letter B" w:value="b"/>
</w:dropDownList>
</w:sdtPr>
...
</w:sdt>
Each listItem element within the dropDownList element specifies a single list item entry, in this case resulting in two list items within the parent drop-down list structured document tag. end example]
|
Parent Elements |
|
dropDownList (§2.5.2.15) |
|
Attributes |
Description |
|---|---|
|
displayText (List Entry Display Text) |
Specifies the text to display in the run content (as well as any supplied user interface) in place of the This value shall be used as follows:
If this attribute is omitted, then the content of the [Example: Consider the following drop-down list structured document tag:
The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
|
value (List Entry Value) |
Specifies the value for the current list item entry. This value shall be used as follows:
[Example: Consider the following combo box structured document tag:
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_SdtListItem">
<attribute name="displayText" type="ST_String"/>
<attribute name="value" type="ST_String"/>
</complexType>
This element specifies the set of behaviors which shall be applied to the contents of the parent structured document tag when the contents of this documents are edited by an application (whether through a user interface or directly). The type of locking applied to the structured document tag is specified via the value of the associated val attribute.
If this element is omitted, then the locking settings implied for the structured document tag shall be as follows:
[Example: Consider the following plain text structured document tag:
<w:sdt>
<w:sdtPr>
<w:lock w:val="sdtLocked"/>
...
<w:text/>
</w:sdtPr>
...
</w:sdt>
This plain text structured document tag's properties contain a lock element, specifying locking behaviors for the structured document tag. Since the locking val attribute value is sdtLocked, this locking setting shall specify that the contents of the structured document tag may be edited, but the structured document tag itself shall not be deleted from the document. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Attributes |
Description |
|---|---|
|
val (Locking Type) |
Specifies the type of locking which shall be applied to the parent structured document tag. If this attribute is omitted, this its value shall be assumed to be unlocked (using the defaults stated above). [Example: Consider the following plain text structured document tag properties:
The The possible values for this attribute are defined by the ST_Lock simple type (§2.18.56). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Lock">
<attribute name="val" type="ST_Lock"/>
</complexType>
This element specifies that the parent structured document tag shall be a picture when displayed in the document.
This setting specifies that the behavior for this structured document tag shall be as follows:
As well, the structured document tag must satisfy the following restraints or the document shall be considered invalid:
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:picture/>
</w:sdtPr>
...
</w:sdt>
The text element in this structured document tag's properties specify that the type of structured document tag is a picture. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies the placeholder text which should be displayed when this structured document tag's run contents are empty, the associated mapped XML element is empty as specified via the dataBinding element (§2.5.2.6) or the showingPlcHdr element (§2.5.2.38) is set in the structured document tag's properties. The placeholder text which shall be shown is itself specified via the child element docPart.
If this element is omitted, then five non-breaking spaces shall be used as the default placeholder text for this structured document tag.
[Example: Consider a structured document tag defined as follows:
<w:sdt>
<w:sdtPr>
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22610170" />
</w:placeholder>
...
</w:sdtPr>
<w:sdtContent>
...
</w:sdtContent>
</w:sdt>
This structured document tag specifies through the placeholder element that its placeholder text shall be specified in the document part of type bbPlcHdr whose name is equal to DefaultPlaceholder_22610170. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
docPart (Document Part Reference) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Placeholder">
<sequence>
<element name="docPart" type="CT_String"/>
</sequence>
</complexType>
This element specifies that the parent structured document tag shall be a rich text box when displayed in the document.
If no type element (the xsd:choice block in the XML Schema fragment for the parent sdtPr element) is specified, then the parent structured document tag shall be of type richText.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
...
<w:richText/>
</w:sdtPr>
...
</w:sdt>
The richText element in this structured document tag's properties specify that the type of structured document tag is a rich text box. end example].
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>
This element specifies the set of run properties which shall be applied to the text entered into the parent structured document tag in replacement of placeholder text. When placeholder text is present in a structured document tag, its formatting is often different than the desired underlying formatting, and this element specifies the formatting which shall be used for non-placeholder text contents when they are initially added to the control.
If this element is not present, the inserted is unformatted, as with any other run of text - it shall not inherit the properties of the placeholder text.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
<w:placeholder>
<w:docPart w:val="TestPlaceholderDocPart"/>
</w:placeholder>
<w:showingPlcHdr/>
<w:rPr>
<w:rStyle w:val="UserName"/>
</w:rPr>
...
</w:sdtPr>
<w:sdtContent>
<w:r>
<w:rPr>
<w:rStyle w:val="PlaceholderText"/>
</w:rPr>
<w:t>[Type Your Name Here]</w:t>
</w:r>
</w:sdtContent>
</w:sdt>
This structured document tag specifies that its current contents are placeholder text via the showingPlcHdr element (§2.5.2.38), and that text has the PlaceholderText character style applied to it.
Now, assume that that style created grey shaded text (typical for placeholder text). This formatting would clearly not be desirable for any text entered into the structured document tag. Therefore, when this text is added, the rPr element in the sdtPr is used to store the formatting on the resulting text.
In this example, the text which initially populates the control shall be formatted with the UserName character style. end example]
|
Parent Elements |
|
sdtPr (§2.5.2.37) |
|
Child Elements |
Subclause |
|---|---|
|
b (Bold) |
|
|
bCs (Complex Script Bold) |
|
|
bdr (Text Border) |
|
|
caps (Display All Characters As Capital Letters) |
|
|
color (Run Content Color) |
|
|
cs (Use Complex Script Formatting on Run) |
|
|
dstrike (Double Strikethrough) |
|
|
eastAsianLayout (East Asian Typography Settings) |
|
|
effect (Animated Text Effect) |
|
|
em (Emphasis Mark) |
|
|
emboss (Embossing) |
|
|
fitText (Manual Run Width) |
|
|
highlight (Text Highlighting) |
|
|
i (Italics) |
|
|
iCs (Complex Script Italics) |
|
|
imprint (Imprinting) |
|
|
kern (Font Kerning) |
|
|
lang (Languages for Run Content) |
|
|
noProof (Do Not Check Spelling or Grammar) |
|
|
oMath (Office Open XML Math) |
|
|
outline (Display Character Outline) |
|
|
position (Vertically Raised or Lowered Text) |
|
|
rFonts (Run Fonts) |
|
|
rPrChange (Revision Information for Run Properties) |
|
|
rStyle (Referenced Character Style) |
|
|
rtl (Right To Left Text) |
|
|
shadow (Shadow) |
|
|
shd (Run Shading) |
|
|
smallCaps (Small Caps) |
|
|
snapToGrid (Use Document Grid Settings For Inter-Character Spacing) |
|
|
spacing (Character Spacing Adjustment) |
|
|
specVanish (Paragraph Mark Is Always Hidden) |
|
|
strike (Single Strikethrough) |
|
|
sz (Font Size) |
|
|
szCs (Complex Script Font Size) |
|
|
u (Underline) |
|
|
vanish (Hidden Text) |
|
|
vertAlign (Subscript/Superscript Text) |
|
|
w (Expanded/Compressed Text) |
|
|
webHidden (Web Hidden Text) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_RPr">
<sequence>
<group ref="EG_RPrContent" minOccurs="0"/>
</sequence>
</complexType>
This element specifies the set of run properties which shall be applied to the character present to delimit the end of the structured document tag's contents. When these properties are applied, they shall be applied in addition to the run properties specified for the entire structured document tag via the rPr element (§2.5.2.26) stored in the tag's main property container.
If this element is not present, the inserted closing tag shall be formatting identically to the start tag.
[Example: Consider the following structured document tag:
<w:sdt>
<w:sdtPr>
<w:placeholder>
<w:docPart w:val="TestPlaceholderDocPart"/>
</w:placeholder>
<w:showingPlcHdr/>
<w:rPr>
<w:rStyle w:val="UserName"/>
</w:rPr>
...
</w:sdtPr>
<w:sdtEndPr>
<w:rPr>
<w:b/>
<w:i/>
<w:rPr>
</w:sdtEndPr>
<w:sdtContent>
...
</w:sdtContent>
</w:sdt>
The rPr elements under the tag's properties specify that this structured document tag specifies that its start character shall have formatting in the character style UserName, and that the end character shall have the formatting in the character style UserName as well as bold and italic direct formatting. end example]
|
Parent Elements |
|
sdtEndPr (§2.5.2.36) |
|
Child Elements |
Subclause |
|---|---|
|
b (Bold) |
|
|
bCs (Complex Script Bold) |
|
|
bdr (Text Border) |
|
|
caps (Display All Characters As Capital Letters) |
|
|
color (Run Content Color) |
|
|
cs (Use Complex Script Formatting on Run) |
|
|
dstrike (Double Strikethrough) |
|
|
eastAsianLayout (East Asian Typography Settings) |
|
|
effect (Animated Text Effect) |
|
|
em (Emphasis Mark) |
|
|
emboss (Embossing) |
|
|
fitText (Manual Run Width) |
|
|
highlight (Text Highlighting) |
|
|
i (Italics) |
|
|
iCs (Complex Script Italics) |
|
|
imprint (Imprinting) |
|
|
kern (Font Kerning) |
|
|
lang (Languages for Run Content) |
|
|
noProof (Do Not Check Spelling or Grammar) |
|
|
oMath (Office Open XML Math) |
|
|
outline (Display Character Outline) |
|
|
position (Vertically Raised or Lowered Text) |
|
|
rFonts (Run Fonts) |
|
|
rPrChange (Revision Information for Run Properties) |
|
|
rStyle (Referenced Character Style) |
|
|
rtl (Right To Left Text) |
|
|
shadow (Shadow) |
|
|
shd (Run Shading) |
|
|
smallCaps (Small Caps) |
|
|
snapToGrid (Use Document Grid Settings For Inter-Character Spacing) |
|
|
spacing (Character Spacing Adjustment) |
|
|
specVanish (Paragraph Mark Is Always Hidden) |
|
|
strike (Single Strikethrough) |
|
|
sz (Font Size) |
|
|
szCs (Complex Script Font Size) |
|
|
u (Underline) |
|
|
vanish (Hidden Text) |
|
|
vertAlign (Subscript/Superscript Text) |
|
|
w (Expanded/Compressed Text) |
|
|
webHidden (Web Hidden Text) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_RPr">
<sequence>
<group ref="EG_RPrContent" minOccurs="0"/>
</sequence>
</complexType>
This element specifies the presence of a structured document tag around a single table cell. The two child elements of this element shall be used to specify the properties and content of the current structured document tag via the sdtPr and sdtContent elements, respectively.
[Example: Consider a structured document tag with the friendly name company that shall be located around a single table cell in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:tr>
<w:sdt>
<w:sdtPr>
<w:alias w:val="company"/>
</w:sdtPr>
<w:sdtContent>
<w:tc>
...
</w:tc>
</w:sdtContent>
</w:sdt>
...
</w:tr>
The sdt element specifies the structured document tag, the child sdtPr element contains the friendly name property set to company, and the sdtContent element contains a single table cell (it is a cell-level structured document tag). end example]
|
Parent Elements |
|
Child Elements |
Subclause |
|---|---|
|
sdtContent (Cell-Level Structured Document Tag Content) |
|
|
sdtEndPr (Structured Document Tag End Character Properties) |
|
|
sdtPr (Structured Document Tag Properties) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtCell">
<sequence>
<element name="sdtPr" type="CT_SdtPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtContent" type="CT_SdtContentCell" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
This element specifies the presence of a structured document tag around one or more inline-level structures (runs, DrawingML objects, fields, etc.) in the current paragraph. The two child elements of this element shall be used to specify the properties and content of the current structured document tag via the sdtPr and sdtContent elements, respectively.
[Example: Consider a structured document tag with the friendly name firstName that shall 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:tr>
The sdt element specifies the structured document tag, the child sdtPr element contains the friendly name property set to firstName, and the sdtContent element contains two runs (it is an inline-level structured document tag). end example]
|
Parent Elements |
|
customXml (§2.5.1.5); del (§2.13.5.12); fldSimple (§2.16.21); hyperlink (§2.16.24); ins (§2.13.5.20); moveFrom (§2.13.5.21); moveTo (§2.13.5.26); p (§2.3.1.22); sdtContent (§2.5.2.35); smartTag (§2.5.1.9) |
|
Child Elements |
Subclause |
|---|---|
|
sdtContent (Inline-Level Structured Document Tag Content) |
|
|
sdtEndPr (Structured Document Tag End Character Properties) |
|
|
sdtPr (Structured Document Tag Properties) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtRun">
<sequence>
<element name="sdtPr" type="CT_SdtPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtContent" type="CT_SdtContentRun" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
This element specifies the presence of a structured document tag around one or more block-level structures (paragraphs, tables, etc.). The two child elements of this element shall be used to specify the properties and content of the current structured document tag via the sdtPr and sdtContent elements, respectively.
[Example: Consider a structured document tag with the friendly name address that shall be located around a single paragraph in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:body>
<w:sdt>
<w:sdtPr>
<w:alias w:val="address"/>
</w:sdtPr>
<w:sdtContent>
<w:p>
...
</w:p>
</w:sdtContent>
</w:sdt>
...
</w:body>
The sdt element specifies the structured document tag, the child sdtPr element contains the friendly name property set to address, and the sdtContent element contains a single paragraph (it is a block-level structured document tag). end example]
|
Parent Elements |
|
body (§2.2.2); comment (§2.13.4.2); customXml (§2.5.1.6); docPartBody (§2.12.6); endnote (§2.11.2); footnote (§2.11.10); ftr (§2.10.3); hdr (§2.10.4); sdtContent (§2.5.2.32); tc (§2.4.62); txbxContent (§2.17.1.1) |
|
Child Elements |
Subclause |
|---|---|
|
sdtContent (Block-Level Structured Document Tag Content) |
|
|
sdtEndPr (Structured Document Tag End Character Properties) |
|
|
sdtPr (Structured Document Tag Properties) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtBlock">
<sequence>
<element name="sdtPr" type="CT_SdtPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtContent" type="CT_SdtContentBlock" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
This element specifies the presence of a structured document tag around a single table row. The two child elements of this element shall be used to specify the properties and content of the current structured document tag via the sdtPr and sdtContent elements, respectively.
[Example: Consider a structured document tag with the friendly name invoiceItem that shall be located around a single table row in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:tbl>
<w:sdt>
<w:sdtPr>
<w:alias w:val="invoiceItem"/>
</w:sdtPr>
<w:sdtContent>
<w:tr>
...
</w:tr>
</w:sdtContent>
</w:sdt>
...
</w:tbl>
The sdt element specifies the structured document tag, the child sdtPr element contains the friendly name property set to invoiceItem, and the sdtContent element contains a single table row (it is a row-level structured document tag). end example]
|
Parent Elements |
|
Child Elements |
Subclause |
|---|---|
|
sdtContent (Row-Level Structured Document Tag Content) |
|
|
sdtEndPr (Structured Document Tag End Character Properties) |
|
|
sdtPr (Structured Document Tag Properties) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtRow">
<sequence>
<element name="sdtPr" type="CT_SdtPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0" maxOccurs="1"/>
<element name="sdtContent" type="CT_SdtContentRow" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
This element specifies the last known contents of a structured document tag around one or more block-level structures (paragraphs, tables, 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:
[Example: Consider a structured document tag with the friendly name address that shall be located around a single paragraph in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:body>
<w:sdt>
<w:sdtPr>
<w:alias w:val="address"/>
</w:sdtPr>
<w:sdtContent>
<w:p>
...
</w:p>
</w:sdtContent>
</w:sdt>
...
</w:body>
The sdtContent element contains a single paragraph (it is a block-level structured document tag content container). end example]
|
Parent Elements |
|
sdt (§2.5.2.30) |
|
Child Elements |
Subclause |
|---|---|
|
bookmarkEnd (Bookmark End) |
|
|
bookmarkStart (Bookmark Start) |
|
|
commentRangeEnd (Comment Anchor Range End) |
|
|
commentRangeStart (Comment Anchor Range Start) |
|
|
customXml (Block-Level Custom XML Element) |
|
|
customXmlDelRangeEnd (Custom XML Markup Deletion End) |
|
|
customXmlDelRangeStart (Custom XML Markup Deletion Start) |
|
|
customXmlInsRangeEnd (Custom XML Markup Insertion End) |
|
|
customXmlInsRangeStart (Custom XML Markup Insertion Start) |
|
|
customXmlMoveFromRangeEnd (Custom XML Markup Move Source End) |
|
|
customXmlMoveFromRangeStart (Custom XML Markup Move Source Start) |
|
|
customXmlMoveToRangeEnd (Custom XML Markup Move Destination Location End) |
|
|
customXmlMoveToRangeStart (Custom XML Markup Move Destination Location Start) |
|
|
del (Deleted Run Content) |
|
|
ins (Inserted Run Content) |
|
|
moveFrom (Move Source Run Content) |
|
|
moveFromRangeEnd (Move Source Location Container - End) |
|
|
moveFromRangeStart (Move Source Location Container - Start) |
|
|
moveTo (Move Destination Run Content) |
|
|
moveToRangeEnd (Move Destination Location Container - End) |
|
|
moveToRangeStart (Move Destination Location Container - Start) |
|
|
oMath (Office Math) |
|
|
oMathPara (Math Paragraph) |
|
|
p (Paragraph) |
|
|
permEnd (Range Permission End) |
|
|
permStart (Range Permission Start) |
|
|
proofErr (Proofing Error Anchor) |
|
|
sdt (Block-Level Structured Document Tag) |
|
|
tbl (Table) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtContentBlock">
<group ref="EG_ContentBlockContent" minOccurs="0" maxOccurs="unbounded"/>
</complexType>
This element specifies the last known contents of a structured document tag around a single table cell. 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:
[Example: Consider a structured document tag with the friendly name company that shall be located around a single table cell in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:tr>
<w:sdt>
<w:sdtPr>
<w:alias w:val="company"/>
</w:sdtPr>
<w:sdtContent>
<w:tc>
...
</w:tc>
</w:sdtContent>
</w:sdt>
...
</w:tr>
The sdtContent element contains a single table cell (it is an cell-level structured document tag content container). end example]
|
Parent Elements |
|
sdt (§2.5.2.28) |
|
Child Elements |
Subclause |
|---|---|
|
bookmarkEnd (Bookmark End) |
|
|
bookmarkStart (Bookmark Start) |
|
|
commentRangeEnd (Comment Anchor Range End) |
|
|
commentRangeStart (Comment Anchor Range Start) |
|
|
customXml (Cell-Level Custom XML Element) |
|
|
customXmlDelRangeEnd (Custom XML Markup Deletion End) |
|
|
customXmlDelRangeStart (Custom XML Markup Deletion Start) |
|
|
customXmlInsRangeEnd (Custom XML Markup Insertion End) |
|
|
customXmlInsRangeStart (Custom XML Markup Insertion Start) |
|
|
customXmlMoveFromRangeEnd (Custom XML Markup Move Source End) |
|
|
customXmlMoveFromRangeStart (Custom XML Markup Move Source Start) |
|
|
customXmlMoveToRangeEnd (Custom XML Markup Move Destination Location End) |
|
|
customXmlMoveToRangeStart (Custom XML Markup Move Destination Location Start) |
|
|
del (Deleted Run Content) |
|
|
ins (Inserted Run Content) |
|
|
moveFrom (Move Source Run Content) |
|
|
moveFromRangeEnd (Move Source Location Container - End) |
|
|
moveFromRangeStart (Move Source Location Container - Start) |
|
|
moveTo (Move Destination Run Content) |
|
|
moveToRangeEnd (Move Destination Location Container - End) |
|
|
moveToRangeStart (Move Destination Location Container - Start) |
|
|
oMath (Office Math) |
|
|
oMathPara (Math Paragraph) |
|
|
permEnd (Range Permission End) |
|
|
permStart (Range Permission Start) |
|
|
proofErr (Proofing Error Anchor) |
|
|
sdt (Cell-Level Structured Document Tag) |
|
|
tc (Table Cell) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SdtContentCell">
<group ref="EG_ContentCellContent" minOccurs="0" maxOccurs="unbounded"/>
</complexType>
This element specifies the last known contents of a structured document tag around a single table row.
[Note: Unlike other types of structured document tags, this type cannot show placeholder text or have mapped XML data, therefore it is never a cache. end note]
[Example: Consider a structured document tag with the friendly name invoiceItem that shall be located around a single table row in a WordprocessingML document. This requirement would be specified as follows in the WordprocessingML:
<w:tbl>
<w:sdt>
<w:sdtPr>
<w:alias w:val="invoiceItem"/>
</w:sdtPr>
<w:sdtContent>
<w:tr>
...
</w:tr>
</w:sdtContent>
</w:sdt>
...
</w:tbl>
The sdtContent element contains a single table row (it is an row-level structured document tag content container). end example]
|
Parent Elements |
|
sdt (§2.5.2.31) |
|
Child Elements |
Subclause |
|---|---|
|
bookmarkEnd (Bookmark End) |
|
|
bookmarkStart (Bookmark Start) |
|
|
commentRangeEnd (Comment Anchor Range End) |
|
|
commentRangeStart (Comment Anchor Range Start) |
|
|
customXml (Row-Level Custom XML Element) |
|
|
customXmlDelRangeEnd (Custom XML Markup Deletion End) |
|
|
customXmlDelRangeStart (Custom XML Markup Deletion Start) |
|
|
customXmlInsRangeEnd (Custom XML Markup Insertion End) |
|
|
customXmlInsRangeStart (Custom XML Markup Insertion Start) |
|
|
customXmlMoveFromRangeEnd (Custom XML Markup Move Source End) |
|
|
customXmlMoveFromRangeStart (Custom XML Markup Move Source Start) |
|
|
customXmlMoveToRangeEnd (Custom XML Markup Move Destination Location End) |
|
|
customXmlMoveToRangeStart (Custom XML Markup Move Destination Location Start) |
|
|
del (Deleted Run Content) |
|
|
ins (Inserted Run Content) |
|
|
moveFrom (Move Source Run Content) |
|
|
moveFromRangeEnd (Move Source Location Container - End) |