swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Prerequisite Concepts      

Patterns: positional

Compound patterns can included positional patterns. Instead of matching data characters, positional patterns match positions within the input. The positional patterns are defined by the following OmniMark keywords:

The content-start and content-end patterns can be used to locate input at the boundary of an SGML element. They cannot be used to describe material that overlaps elements. Thus, no subpattern can precede content-start or follow content-end. These positional patterns may only appear in translate rules.

Similarly, value-start and value-end can only be used in the match part of a do scan or repeat scan action. value-start cannot be preceded by a subpattern, and value-end cannot be followed by a subpattern.

When a pattern matches and does not consume any input, the next pattern to match must consume a character. This is to avoid infinite loops.

There is no precedence to positional patterns. The first one that matches will succeed, even if other positional patterns also apply.

Prerequisite Concepts
     Pattern matching
 
   
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:40 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.