update rules to move documentByLine in 'header' tag