Product Documentation

c-treeRTG COBOL Edition User's Guide

Previous Topic

Next Topic

Rules for SQL Conversion Exception Handling

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.

In This Section

<XFDrules> root element

<rule> XFDRules element

<when> rule element

<[Condition]> when elements

<do> rule element

<[Action]> do elements

<[Target]> action element

Rule Examples

TOCIndex