Omnimark Code

John taught Omnimark.

Omnimark is from Stilo International. It is a high-performance rule-based declarative programming language used for processing streams of data using rules. Rules are triggered by events such as matching a certain data pattern or encountering a certain SGML or XML element.

Pattern Matching

This code sample demonstrates pattern matching - reading an input file, matching patterns of data within the file, and producing structured output:


This code sample demonstrates the technique of up-translation - converting structured or semi-structured data to SGML or XML:


This code sample demonstrates the technique of down-translation - coverting SGML or XML to another format (such as HTML):