Some of the nodes in an XML document have namespaces, specified with a defined prefix.
It is possible to specify local-name() in XPath 1.0 and so ignore namespaces.
However, I want to enable the writer of the XPath to find nodes using their full namespace-qualified name as an identifier.
The recommended way is to add namespace declarations in the invoking code (in my case, Java). But this means that the person writing Xpath does not have the ability to work with namespaces!
How do we find nodes by their fully qualified names using pure XPath?
addNamespace("abc","http://example.com")
which then allows to do an Xpath query like/abc:node
, instead of somehow usinghttp://example.com
directly in the query. Have I interpreted the question correctly? – Jong Bor Lee