<div>Hi,</div>
<div> </div>
<div>I have an SVG image that shows up a grey triangle at the end of a grey box where some titles will go.</div>
<div> </div>
<div>Basically I set a table width to 100% with 2 columns, one with no width specified and one with 2.5mm column-width, which will be where the triangle will go.</div>
<div>The height of the table has an initial value of 5mm (i.e. initially it should look 2.5mm by 5mm). However it may increase if the text inside wraps (probably close to 2.5mm by 9mm). In that case the image also needs to increase in height, but not in width. Since SVG is vector-based, the triangle should still look good, but obviously the angle would change.</div>
<div> </div>
<div>Here is the code I put inside the 2nd column:</div>
<div> </div>
<div><fo:block line-height="0pt"><fo:external-graphic content-width="scale-to-fit" content-height="scale-to-fit" scaling="non-uniform" scaling-method="resample-any-method"><br>
<xsl:attribute name="src">url('<xsl:call-template name="imagesloc" />triangle.svg')</xsl:attribute><br></fo:external-graphic></fo:block></div>
<div> </div>
<div>I have also tried this (since the width is going to be constant):</div>
<div> </div>
<div><fo:block line-height="0pt"><fo:external-graphic content-width="2.5mm" content-height="scale-to-fit" scaling="non-uniform" scaling-method="resample-any-method"><br>
<xsl:attribute name="src">url('<xsl:call-template name="imagesloc" />triangle.svg')</xsl:attribute><br></fo:external-graphic></fo:block></div>
<div> </div>
<div>My problem is that the SVG is showing at 100% of its width and height, in any scenario. It is refusing to scale to fit the area allocated to it.</div>
<div> </div>
<div>Any ideas please?</div>