Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
simple-odfdom-0.8
-
None
-
Operating System: All
Platform: All
-
120
Description
To be able to use JDK's XPath implementation, OdfNamespace is implementing javax.xml.namespace.NamespaceContext interface.
The interface returns the namespaceURI and qualified name used within XPath.
To handle this efficiently, OdfNamespace uses several Maps, which are filled with the from the in ODF 1.2 specified Namespaces.
Unfortunately the Map is not being updated when a node with foreign namespace is being parsed during loading.
Updating the maps on parsing and adding an node with foreign XML namespace would solve our problem.