svg-container doesn't an external image reference
Posted: Sat Apr 30, 2022 3:16 pm
Hello,
I have a project which uses the following declaration to embed svgs containing an image, text and drawn symbols.
However, it seems that the <svg:image> reference is not correctly interpreted when publishing to HTML. As shown in the screenshot below, the preview in Oxygen works well though. But the image reference is missing in the publication (second screenshot).
I've found this discussion : https://groups.google.com/g/dita-ot-users/c/9O-LtpmhV-g where Radu and Elliot provide some tips, notably the possibility to use a keyref for the image. However, I can't use a key ref in the element <svg:image>
So I feel stuck right now. Any idea or recommendation?
I have a project which uses the following declaration to embed svgs containing an image, text and drawn symbols.
However, it seems that the <svg:image> reference is not correctly interpreted when publishing to HTML. As shown in the screenshot below, the preview in Oxygen works well though. But the image reference is missing in the publication (second screenshot).
Code: Select all
<svg-container class="+ topic/foreign svg-d/svg-container ">
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" height="479"
id="svgcontent" overflow="visible" viewBox="0 0 604 479"
width="604" x="604" y="479">
<svg:g class="layer" style="pointer-events:all">
<svg:title style="pointer-events:inherit">Layer
1</svg:title>
<svg:image xmlns:xlink="http://www.w3.org/1999/xlink"
height="479"
id="svg_02d16585-53f9-433a-aaae-bcc4396f256a"
style="pointer-events:inherit" width="604"
xlink:actuate="onLoad" xlink:show="embed"
xlink:type="simple"
xlink:href="../../../../_common/images/image_k8s_master_worker_pod.png"/>
<svg:g id="svg_4" style="pointer-events:inherit">
<svg:rect fill="none" height="46" id="svg_6"
style="pointer-events:inherit" width="76" x="493"
y="232"/>
<svg:path
d="M493,255L517,250.5A15,15 0 1 1 517,259.5L493,255z"
fill="white" id="svg_7" stroke="#E65F26"
stroke-width="3" style="pointer-events:inherit"/>
</svg:g>
<svg:text fill="black" font-size="14pt" id="svg-2"
style="pointer-events:inherit" x="525" y="262">DUMMY
TEXT HERE</svg:text>
</svg:g>
</svg:svg>
</svg-container>
I've found this discussion : https://groups.google.com/g/dita-ot-users/c/9O-LtpmhV-g where Radu and Elliot provide some tips, notably the possibility to use a keyref for the image. However, I can't use a key ref in the element <svg:image>
So I feel stuck right now. Any idea or recommendation?