The <filter> element is used to define a custom filter. Currently, one one type of custom filter is suspported: a user-defined lookup table to map from one list of values to another.
The keyword "name" is used to give the filter a name. The keyword "revname" is used to give a name to the reversed mapping. This keyword only makes sense for lookup-table mappings, as other types of filters might not be reversible.
Example: The example below converts numeric values to strings.
<filter name="unmenu" revname="menuchoice"> <lookup key="0" val="itty" /> <lookup key="1" val="bitty" /> <lookup key="2" val="teeny" /> <lookup key="3" val="weeny" /> </filter>
The <lookup> element defines an entry in the filter lookup table. It takes two keywords, "key" and "value", and associates the one to the other.
1.5.5