Replies: 1 comment
|
Update! I think I figured out the root cause of this issue. When the DITA OT resolves dependencies it doesn't consider xlink:href attributes inside SVGs, so the image that is embedded in the SVG is never copied to the processing folder (or something like that). I believe the fix here is for the DITA OT reference resolver to look for xlink:href and include media dependencies referenced in this way. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When trying to render a set of content containing an SVG with a link to another image inside the SVG using html5 (or any other transtype), the DITA OT fails with the following error:
patrickbosek@mac dita-ot-4.4 % rm -r out;dita -i ../issue-reproductions/svg_issue/parent-map.ditamap -f pdf Error: Build failed with an exception: The following error occurred while executing this line: /Users/patrickbosek/dev/DITA/dita-ot-4.4/plugins/org.dita.base/build_preprocess2.xml:197: java.lang.NullPointerException: Cannot invoke "java.net.URI.toString()" because the return value of "org.dita.dost.writer.DitaWriterFilter.replaceHREF(String, org.xml.sax.Attributes)" is nullThe content will render if the <svg:image .. > tag is deleted. I'm not sure if the issue is with the way I've structured the svg:image tag or it's an issue in the OT. Can someone help me out here?
Attached is the full test content (3 files):
svg_issue.zip
Here is the troublesome SVG XML:
`
`
All reactions