r8224: add entities argument to dtd-prologue