Lines Matching refs:event_name
1579 for event_name in events_to_report:
1580 if event_name == "start":
1582 def handler(tag, attrib_in, event=event_name, append=append,
1586 elif event_name == "end":
1587 def handler(tag, event=event_name, append=append,
1591 elif event_name == "start-ns":
1594 def handler(prefix, uri, event=event_name, append=append,
1598 def handler(prefix, uri, event=event_name, append=append):
1601 elif event_name == "end-ns":
1604 def handler(prefix, event=event_name, append=append,
1608 def handler(prefix, event=event_name, append=append):
1611 elif event_name == 'comment':
1612 def handler(text, event=event_name, append=append, self=self):
1615 elif event_name == 'pi':
1616 def handler(pi_target, data, event=event_name, append=append,
1621 raise ValueError("unknown event %r" % event_name)