The stm:remove-ns operation removes a namespace and associated prefix from a document fragment located by an xpath.
The children of the target element are all moved out of the namespace.
Due to the historical difficulty of handling namespaces they have generally been infrequently used by XML applications.
STM attempts to make removal of namespaces straightforward. We anticipate that namespace assigment can be a valuable
tool in XML processing. For example portions of an in-process document may be moved into a temporary namespace to hide it
from intermediate processing steps before moving it back to the original namespace on completion.
Limitations: The current implementation only handles namespace removal from elements, though this should
cover 90% of use cases.
Due to the limitations of the DOM model removing namespaces is a relatively expensive operation.