Adjusted XPath grammar.