Match for attribute entry should be more precise

When processing the document header, Assembler is letting through attribute entries which aren't actually valid. The match should be more precise.