Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-72

XML nodes with none ODF namespaces should be accessible by XPath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • simple-odfdom-0.8
    • odfdom-0.8.7
    • java
    • 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.

      Attachments

        Activity

          People

            svanteschubert@odftoolkit.org Svante Schubert
            svanteschubert@odftoolkit.org Svante Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: