If you had asked how to remove elements from an XML document, I would have suggested using an XSLT identity transformation plus a template that failed to copy the elements you wanted to remove. And that's what you have there. So yes, I approve.
Besides, it works, right?
subject: Remove sibling elements according to the value of the attribute of another element