Re: Rotation attribute
Paul Colomiets <pc@...
2008-02-08 11:24:08 GMT
Mark Winterhalder wrote:
> If you want to check for supported attributes, the ultimate source is
> still the source:
> It's fairly readable and easy to understand.
I've looked that, just not realized that skew, scale and shift
is a full transformation matrix.
>> I'm also wondering if there is support for rotation attribute in place tag
>> (or somewhere in xml)?
> There is no direct support for a rotation attribute, but for x, y,
> scalex, scaley, skewx and skewy, which amounts to a transformation
> matrix. So, if you want to rotate, it /should/ be (not tested):
> scalex = cos( angle )
> scaley = cos( angle )
> skewx = -sin( angle )
> skewy = sin( angle )
> Admittedly, this is not as straight forward as one would wish for...
Thanks, it works (althrough seems that I need to change angle to - angle).
Isn't it a nice addition to xsl stylesheet?
And yet another attribute is embedFonts. There no such attribute
neither in xslt/simple-elements.xslt nor codegen/simple.xml (probably