XQuery diagnostic in surrogate diagnostic record