Namespace Handling

The current implementation uses the namespace resolver to resolve the namespace for elements in the document, too. But they are already resolved. Elements and attributes in a document have a namespaceURI property. This contains the already resolved namespace for the node. Using the namespace resolver expects the same prefix used in the document and this is wrong.