OwS Style Sheet Directive: obligation

Aus CTS2-LE
Zur Navigation springen Zur Suche springen

Syntax

ObligationDirective := #obligation PrePostQualifier? StyleName => ExecutableCode  
| #obligation PrePostQualifier? StyleName de-registers all obligations for the given style and mode (pre/post)
PrePostQualifier := < Obligation is executed before a line of text with the given style is processed
| > Obligation is executed after a line of text with the given style is processed. This is the default behavior.
ExecutableCode := PackageName
| Text


Description

The #obligation directive triggers the execution of a set of OwS code whenever the OwS tokenizer discovers a paragraph of a certain style.

Examples