In order to make sure this file still outputs `NOT_CONVERTED_YET` divs you might want to restrict the match a bit more. Maybe `match="c:newline[not(@id)][not(@effect) or @effect='underline']"` Also, to preserve the semantic information (and the optional `id`) you might wrap all the `<br/>` or `<hr/>` tags with a `<div class="newline">` (probably requires a second template).