Forget the application of this XSLT, it's actually got some good style and technique. I really like the removeTags and removeEntities templates. Well done!