The StreamServer scans the input and finds a match in <music>. The rule is fulfilled, and the Event is triggered. The Event is triggered once in this scenario.
The StreamServer scans the input and finds a match in <CD>. The rule is fulfilled, and the Event is triggered. The StreamServer continues to scan the input, and finds two more matches for
<CD>. The rule is fulfilled, and the Event is triggered two times more. The Event is triggered three times in this scenario.
The StreamServer scans the input and finds a match in the second occurrence of <CD>. The rule is fulfilled, and the Event is triggered. The Event is triggered once in this scenario.
The StreamServer scans the input and finds a match in <CD type="western">. The rule is fulfilled, and the Event is triggered. The Event is triggered once in this scenario.