XPath: only direct object access may select an attribute. Either change the XPath to select an element, or else use direct ...