Adapting to use Lightweight XPath2 library.