mapping-table

A mapping table consists of a top level <mapping-table> that contains a set of <col-def> elements and a set of <row> elements. A <col-def> defines the name of each column and the type that it contains. A <row> consists of a set of <col> elements. DirXML Script uses <token-map> to map a value using a specified key column to a different value or values in a specified value column. A given key column map to multiple rows and therefore multiple values from the value column can be specified.

Example

<mapping-table>	<col-def name="dept" type="nocase"/>	<col-def name="code" type="nocase"/>	<col-def name="location" type="nocase"/>	<row>	<col>Engineering</col>	<col>00001</col>	<col>New York</col>	</row> <row>	<col>Sales</col>	<col>00002</col>	<col>London</col>	</row> <row>	<col>Accounting</col>	<col>00003</col>		<col>Paris</col>	</row> <row>		<col>Marketing</col>		<col>00004</col>		<col>Rome</col>	</row></mapping-table>

Allowed Content

Element

Description

col-def

Column definition.

row

Mapping table row.

Attributes

None

Content Rule

( col-def * , row * )

Parent Elements

None