3.6.2.2 ST_String (String Type)

This simple type 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:

 <w:pPr>
   <w:pStyle w:val="heading1" /> 
 </w:pPr>

The value of the val attribute is the ID of the associated paragraph style's styleId. However, consider the following fragment:

 <w:sdtPr>
   <w:alias w:val="SDT Title Example" />
   ...
 </w:sdtPr>

In this case, the decimal number in the val attribute is the caption of the parent-structured document tag. In each case, the value is of type ST_String, and therefore must be interpreted in the context of the parent element. end example]

This simple type's contents are a restriction of the XML Schema string datatype.

Referenced By

ocx@classid3.6.1.2, ocx); ocx@license (§3.6.1.2, ocx); ocxPr@name3.6.1.3, ocxPr); ocxPr@value (§3.6.1.3, ocxPr); ST_Persistence3.6.2.1, ST_Persistence)

The following XML Schema fragment defines the contents of this simple type:

 <simpleType name="ST_String">
   <restriction base="xsd:string"/>
 </simpleType>
Show: