display of preview doc now much more closely resembles the logic used for the draft XML output