error in xref in Word generation; and in Ant script to make PDF