XSL: refactor header rules