mapping-table

A <mapping-table> A DirXML mapping table consists of a top level <mapping-table> that contains a set of <col-def>'s and a set of <row>'s. A <col-def> defines the name of each column and the type that it contains. A <row> consists of a set of <col>'s. 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 map to multiple rows and therefore multiple values from the value column may 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>

1. Allowed Content

col-def
column definition
row
mapping table row

2. No Attributes

3. Content Rule

( col-def * , row * )

4. Parent Elements

None

Top Elements || All Elements || Tree


DirXMLMap DTD