Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
odfdom-0.8.6
-
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.