<matchSrc>
(Keep Source Formatting on Import)
This element specifies if any style definitions present in the imported content shall be overridden by identical styles present in the host WordprocessingML document. If this element's @val
attribute is true
, then any style exists in both the imported content and main document shall be maintained on the imported content by redefining the style name and/or ID as needed. Conversely, if this element's @val
attribute is false, any style which exists in both the imported content and main document shall apply the style form the main document in place of the style in the imported content.
If this element is omitted, then styles from the main document shall override identical styles from the imported content.
<w:body> <w:altChunk r:id="altChunk1"> <w:altChunkPr> <w:matchSrc w:val="true" /> </w:altChunkPr> </w:altChunk> <w:p/> <w:sectPr> … </w:sectPr> </w:body>
The <matchSrc>
element has a @val
attribute value of true
, which specifies that conflicting styles shall be maintained when importing the specified content. For example, if the Heading 1
style was defined in both places, then applications shall ensure that the resulting document does not lose either instance of its formatting as appropriate. ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies a binary value for the property defined by the parent XML element. A value of A value of <w:… w:val="off"/> 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>