How Omnimark Works
In the event-driven paradigm, pieces of code are executed when certain events occur during the processing of the input document.
Therefore we need to formulate rules. Rules define and associate both the actions to be executed and the events that cause these actions to be triggered.
This is reflected in the structure of a rule, which has two parts:
- • A rule header
- • A rule body
The rule header is used to define the event and has a structure of its own. It defines the event and, optionally, additional conditions that need to be satisfied before the actions are fired.
In the rule body are the actions that will be executed.
An Omnimark script/program is a collection of such rules.