In effect when the xpath function parses the XML document it tosses away all of the document-local namespace aliases and instead associated the full namespace URI with each element (in the DOM). Since, in the xpath expression, usually you'd want to refer to nodes in the DOM via their namespace alias you need to tell the xpath function which aliases you intend to use in the xpath and which full URI they correspond to. Furthermore, there is not concept of a default namespace in the xpath expression. So while you can simply copy-paste the aliases and URIs from all of the non-default namespace aliases you must also choose a unique alias for the default namespace in the original document.
In the above I've copied the alias and namespace URI for the named "xsi" alias and gave the name "defaultns" to the original document's default namespace URI.