Reworked handling of relative vs absolute XPaths.