When generating a XDD from an XFD file, it is useful to have an automated method for altering the resulting XDD to better fit user requirements (for example, to add defaults, hide fields, etc.). The "rules file" provides an automated method to control the process using rules saved in XML format.
When rules are specified using the ctutil -sqlize option or the ctutil -xfd2xdd option they are applied to the generated XDD.
XML Rule Format
Rules files have the following XML structure:
<XFDrules>
<rule>
<when> OPTIONAL
<"condition"> </"condition">
...
More <"condition"> elements
...
</when>
<do>
<"action">
<"target"> </"target">
...
More <"target"> elements
...
</"action">
...
More <"action"> elements
...
</do>
</rule>
...
More <rule> elements
...
</XFDrules>
Each of the XML elements are defined in the sections following this topic.