Mapping from metadata to a TTMAKER document
In the createtable.mms source file, tblimp is the executable map. It takes as its input the Acme metadata file and produces a type tree command file that will create a new type tree file defining this data. The TableImport map generates the .mts file.
The input card for the map uses the definitions of the metadata contained in the Acmemeta.mtt type tree file and uses the actual metadata contained in ACMEDEF.TXT:
The acmemeta.mtt type tree describes the Acme metadata:
The type of the output card for the map is Document XML from the myimport.mtt type tree.
The TableImport executable map contains rules that create the .mts file from the input metadata.
After you build and run the map, view the Run Results.
When you run the Type Tree Maker with the acme_tables.mts file as input, the Type Tree Maker window shows the type tree being built. When the Type Tree Maker completes, the Type Tree Maker window and a completion message is displayed.
The acme_tables.mtt type tree contains types for all the fields, rows, and tables defined in acmedef.txt.
This type tree can then be used to describe the input or output data for some other map.