close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2010

Table Of Contents

5.7.2.1 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