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

Copy presentation slide result in error when an external reference is existent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • odfdom-0.8.6
    • odfdom-0.8.7
    • java
    • None
    • Operating System: All
      Platform: All
    • 233

    Description

      The Slide functionality of the high level DOC API does not work, whenever an external reference is being used in the slide.

      I tried to fix this quickly, but I could not follow your magic in the OdfPresentation document in a timely manner.

      Therefore I have added an external reference to one of our test documents.

      As the use case seems to be an often one, perhaps you might take a quick look into the problem.

      In addition of this, I have improved the following

      1)
      Adapted our namespace handling to our latest changes:

      For instance exchanged:
      OdfNamespace.newNamespace(OdfDocumentNamespace.DRAW).toString()
      OdfDocumentNamespace.DRAW.getUri()

      2)
      Used efficient XPATH expressions, for instance exchanged:
      NodeList linkNodes = (NodeList) xpath.evaluate("//*[@xlink:href]", sourceCloneEle, XPathConstants.NODESET);

      with

      NodeList linkNodes = (NodeList) xpath.evaluate(".//*[@xlink:href]", sourceCloneEle, XPathConstants.NODESET);

      3) Removed redundant casts in the SlideTest.

      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: