Mapping File Format

The mapping file is simply a pain text file, where the placeholders (patters) to be used within the template are defined. Unlike the template file, the placeholders within the mapping file should not contain angled brackets. Each placeholder should be on a separate line, e.g.

company_name

company_address

company_contact 

Also, take care to note the order in which these placeholders are listed in the file, as data related to these must be passed to the parseDocument() method in the same order. The should be at least the same amount of entries in the mapping file as there is data being passed to parseDocument().

Comments can also be included within the mapping file, each line starting with a '#' character are considered to be comments and are ignored when parsing the file.


Shane O'Neill 2005-11-10