<mappedName> (Predefined Merge Field Name)

This element specifies the predefined WordprocessingML MERGEFIELD field name which shall be mapped to the column number specified by the <column> element (§2.14.7) within this field mapping. [: This element allows the current column from the specified data source to be mapped to a predefined field name, allowing applications to have one standard set of field names to use regardless of the data source column names, for example, to create the address formats to place into an ADDRESSBLOCK field. ]

If this element is omitted, then the current data source column mapping shall not have a predefined merge field name mapped to its contents, and shall only be referenced via the data source column name specified by the <name> element (§2.14.24) when referenced by one or more MERGEFIELD fields. If the application does not have a predefined merge field whose name matches the name specified using the @val attribute, then this element may be ignored.

example:
<w:fieldMapData>
  <w:column w:val="0" />
  <w:name w:val="Column Name A" />
  <w:mappedName w:val="First Name" /></w:fieldMapData>
<w:fieldMapData>
  <w:column w:val="1" />
  <w:name w:val="Column Name B" />
  <w:mappedName w:val="Last Name" /></w:fieldMapData>

The first and second columns, specified by the <column> element values of 0 and 1 respectively, specify that the predefined WordprocessingML field names First Name and Last Name are mapped to the columns of the external data source, and the data source names for those columns are Column Name A and Column Name B, respectively.

Therefore, if MERGEFIELD fields calling for First Name and Last Name are inserted in a WordprocessingML document connected to the external data source with the field mappings specified above, when the mail merge takes place, the data from the first and second column will populate the fields calling for First Name and Last Name data within the merged WordprocessingML document. ]

Parent Elements

<fieldMapData>2.14.15)

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.

<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 interpreted in the context of the parent element. ]

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>