| 1 |
|
| 2 |
DWI XML Reference
|
| 3 |
-----------------
|
| 4 |
The following is a reference for the DWI XML markup elements.
|
| 5 |
Most of these elements are described in considerable detail in the
|
| 6 |
'testbasic.dui' example file, and are *not* repeated here. This
|
| 7 |
file contains information about elements that did *not* make it
|
| 8 |
into the 'testbasic.dui' example.
|
| 9 |
|
| 10 |
The <filter> element is used to define a custom filter. Currently,
|
| 11 |
one one type of custom filter is suspported: a user-defined lookup
|
| 12 |
table to map from one list of values to another.
|
| 13 |
|
| 14 |
The keyword "name" is used to give the filter a name.
|
| 15 |
The keyword "revname" is used to give a name to the reversed mapping.
|
| 16 |
This keyword only makes sense for lookup-table mappings, as other
|
| 17 |
types of filters might not be reversible.
|
| 18 |
|
| 19 |
Example:
|
| 20 |
The example below converts numeric values to strings.
|
| 21 |
|
| 22 |
<filter name="unmenu" revname="menuchoice">
|
| 23 |
<lookup key="0" val="itty" />
|
| 24 |
<lookup key="1" val="bitty" />
|
| 25 |
<lookup key="2" val="teeny" />
|
| 26 |
<lookup key="3" val="weeny" />
|
| 27 |
</filter>
|
| 28 |
|
| 29 |
The <lookup> element defines an entry in the filter lookup table.
|
| 30 |
It takes two keywords, "key" and "value", and associates the one
|
| 31 |
to the other.
|
| 32 |
|
| 33 |
|