Looks like Inkscape is rotating and then translating? I just want to rotate a rectangle and have it to be at its original x,y position, not to have some very silly x,y value that don't seem to match with the gui grid in inkscape.
Inkscape has a concept of a rotation centre so when rotation is done from within Inkscape, it will happen about this:
see
http://en.flossmanuals.net/Inkscape/SelectorTool under "
Rotating" and "
Rotation centre" headings
If you are hand editing the XML, then things get a bit more tricky, as the rotation is done about the co-ordinate system origin (In svg normally top left page border), although this can get transformed again to be the "user co-ordinate system": I don't understand this though! You would have to manually specify the correct displacement to the centre of the object you want to rotate.
Tomh - how do you put the rotate into the transform attribute, everytime I apply a rotation, the xml shows transform matrix(.....)?!
Yes, this is a bug in Inkscape. Inkscape knows how to do the rotate()->matrix() conversion, and uses this to display the rotation, however in the process it forgets the original rotate(). See:
https://bugs.launchpad.net/inkscape/+bug/179309 It's an old bug...