[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

delInstrText (Deleted Field Code)

This element specifies that this run contains deleted field codes (§2.16.5) within a complex field in the document. The delInstrText element shall be used for all runs containing field codes which are part of a region of text that is contained in a deleted region using the del element (§2.13.5.12).

If this element is not contained within a del element, then the document is invalid. If this element is contained within a run which is not part of a complex field's field codes, then it should be handled as regular deleted text.

[Example: Consider a complex field within a WordprocessingML document which was changed from a text box form field to a checkbox form field with revision tracking enabled. This field would therefore be represented as follows:

<w:fldchar w:type="begin" />
<w:ins>
<w:r>
<w:instrText>FORMCHECKBOX</w:instrText>
</w:r>
<w:del>
<w:r>
<w:delInstrText>FORMFIELDTEXT</w:delInstrText>
</w:r>
</w:del>
<w:fldChar w:type="seperate" />

<w:fldChar w:type="end" />

The deleted field code is contained in a delInstrText node, while the inserted (and current) field code is contained in an instrText node. end example]

Parent Elements

r7.1.2.87); r2.3.2.23)

 

Attributes

Description

space (Content Contains Significant Whitespace)

 

Namespace: http://www.w3.org/XML/1998/namespace

Specifies how white space should be handled for the contents of this element using the W3C space preservation rules.

 

[Example: Consider the following run contained within a WordprocessingML document:

 

<w:r>
<w:t>significant whitespace </w:t>
</w:r>

 

Although there are three spaces on each side of the text content in the run, that whitespace has not been specifically marked as significant, therefore it is removed when this run is added to the document. end example]

 

The possible values for this attribute are defined by the type in the namespace.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Text">

   <simpleContent>

   <extension base="ST_String">

   <attribute ref="xml:space" use="optional"/>

   </extension>

   </simpleContent>

</complexType>