check for xpaths in datum/@function as well