close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2307

Table Of Contents
Event Matcher

An event handler applies to a specific start element event within the XML event stream (except for default handlers).

          !Matcher
        
PropertyDescription
qnameThe 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
            ...
        

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.