Formatting parsed data

When parsing SGML or XML data, the parsed data can be formatted in one of two approaches. The first approach is to capture the parsed data in an OmniMark string and then use regular OmniMark programming techniques to format the data. The other is to give instructions to OmniMark on how the data should be formatted. The latter approach is often faster and cleaner.

OmniMark can be instructed on how to format data using format items and placing the appropriate format modifiers on the format commands %c, %v, and %q.

Formatting data content

Unless intercepted in a data-content rule, the parser outputs data content to the current output scope. You can apply format modifiers to the parse continuation operator, %c, to change how the data content is formatted.