Implemented attribute-based markup selection.
Fixed DirectOutputMarkupHandler (was ignoring unmatched closing tags)