<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to rotate an image (eg. 5°) using SVG. 
Here's my (simplified) code (width &amp; height in mm):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;xsl:template 
match="PICTURE"&gt;<BR>&nbsp;&nbsp;&lt;fo:block-container 
absolute-position="absolute"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="top"&gt;&lt;xsl:value-of select="@TOP" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="left"&gt;&lt;xsl:value-of select="@LEFT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="width"&gt;&lt;xsl:value-of select="@WIDTH" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;xsl:attribute 
name="height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;fo:block&gt;<BR>&lt;fo:instream-foreign-object&gt;<BR>&nbsp;&lt;xsl:attribute 
name="content-width"&gt;&lt;xsl:value-of select="@WIDTH" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&lt;xsl:attribute 
name="content-height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&lt;svg:svg preserveAspectRatio="none 
meet"&gt;<BR>&nbsp;&nbsp;&lt;xsl:attribute name="width"&gt;&lt;xsl:value-of 
select="@WIDTH" /&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&lt;xsl:attribute 
name="height"&gt;&lt;xsl:value-of select="@HEIGHT" 
/&gt;&lt;/xsl:attribute&gt;<BR>&nbsp;&nbsp;&lt;svg:image xlink:href="<A 
href="mailto:{@FILE">{@FILE</A>}" 
transform="rotate(5)"/&gt;<BR>&nbsp;&lt;/svg:svg&gt;<BR>&lt;/fo:instream-foreign-object&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/fo:block&gt;<BR>&nbsp;&nbsp;&lt;/fo:block-container&gt;<BR>&nbsp;&lt;/xsl:template&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The resulting pdf contains indeed the rotated 
image, but it appears to be magnified.&nbsp;Also,&nbsp;the viewBox attr needs to 
be set. Is there an easy way to dynamically set the viewBox based on the 
rotation angle in the XSL?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Stijn Elst.</DIV></FONT></BODY></HTML>