17.5.1.9 smartTag

This element specifies the presence of a smart tag around one or more inline structures (runs, images, fields, etc.) within a paragraph. The attributes on this element shall be used to specify the name and namespace URI of the current smart tag.

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

<w:p>
  <w:smartTag w:element="firstName"  >
    <w:r>
    </w:r>
    <w:r>
    </w:r>
  </w:smartTag>
</w:p>

The smartTag element specifies that the name of the smart tag is firstName, and the smart tag contains a two text runs (it is an inline-level smart tag). end example]

Attributes

uri (Smart Tag Namespace)

Specifies the namespace URI of the current custom XML element or smart tag.

If this attribute is omitted, the URI shall be assumed to be null (no associated URI).

[Example: Consider a custom XML element which must have a namespace URI of WordprocessingML:

  <w:customXml 
                  w:uri="urn:customXmlExample" >
  </w:customXml>

The uri attribute specifies that the namespace for this element must be

The possible values for this attribute are defined by the ST_String simple type (22.9.2.13).

element (Smart Tag Name)

Specifies the name of the current custom XML element or smart tag within the document.

[Example: Consider a custom XML element which must have a name of companyName. This requirement would be specified using the following WordprocessingML:

  <w:customXml w:element="companyName"  >
  </w:customXml>

The element attribute specifies that the name for this element must be companyName. end example]

The possible values for this attribute are defined by the ST_XmlName simple type (22.9.2.21).

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

Last updated on