Issue #17011: Fix caching of xpath path when namespaces are present.

Thanks to Stefan Behnel for the report and proposed solution & test.
2 files changed