Migrate from Jaxen+Xerces to Saxon+JAXP, close #1360
Clear contextItem after use