passing around xml fragments tracking down undecl entity ref