Content-based Rule Sets

Top  Previous  Next

In addition to rule files, it is also possible to include a rule set in the content of a job, by beginning the job with a name in square brackets, like [ruleset].  If UnForm sees this line structure as the first line of a job, it then reads the input stream until it encounters a form-feed (ASCII 12, hex 0C), and then doesn't process the rule file at all.  Instead, it uses the rule set provided for the job.  The first character after the form-feed is treated as the start of the document, so take care that you don't have an extra line-feed that would throw off line numbers.

 

Using this technique, it is possible for applications such as report generators to enhance output programmatically.