Compile xpaths first to catch syntax errors