rewrite bemxml and html pages