Headless Server Developer Manual / Version 2101
Table Of ContentsAn event handler applies to a specific start element event within the XML event stream (except for default handlers).
!Matcher
Property | Description |
---|---|
qname | The qualified name of the start element event. |
classes | Optional style classes. Matches if the event’s attribute class contains any of the styles. |
Table 5.3. Available properties for !Matcher.
Example:
contexts: - !Context name: headline defaultHandler: !Handler eventMatcher: !Matcher { qname: *p, classes: *headline_styles } ... # alternative (equivalent) YAML style contexts: - !Context name: headline defaultHandler: !Handler eventMatcher: !Matcher qname: *p classes: *headline_styles ...