Fix issue #10: Expand entity and character references in XPath expressions.