I have searched a lot in forums and of course here, but I have not found a definitive solution. I have found similar issues, but it doesn't works.
When I draw a rect, Inkscape gives me the exact x and y position from it. But, when I rotate, it changes the x and y positions to incomprehensible values. For example:
<rect
id="rect2985"
width="100"
height="100"
x="100"
y="100" />
It's OK, but when rotated, take a look at "transform" attribute and at x,y:
<rect
id="rect2985"
width="100"
height="100"
x="4.9038105"
y="154.90381"
transform="matrix(0.8660254,-0.5,0.5,0.8660254,0,0)" />
How can I calculate to get x=100 y=100 from x=4.9... and y=154.9... or from the matrix values?