bug fix: An XPath containing a @class attribute is now first validated against the element attribute existence.