Use separate directive instead of XPath to get hovered fragment