I have an SVG with grouped elements like so:
<g id="group_id" transform="translate(-10,-10)">
<rect y="50" x="50" height="20" width="20" id="rect_id"/>
<ellipse cy="70" cx="70" ry="10" rx="10" id="ellipse_id"/>
</g>
Using Inkscape I want to get rid of the transform attribute of the group (<g>) and apply the translation to the subelements (<rect> and <ellipse>), while keeping them grouped.
The result should in principle look like this:
<g id="group_id">
<rect y="40" x="40" height="20" width="20" id="rect_id"/>
<ellipse cy="60" cx="60" ry="10" rx="10" id="ellipse_id"/>
</g>
Existing answers suggest ungrouping and regrouping (CTRL-U, CTRL-D), which works fine but changes the IDs of the elements and the group.
What I want is the IDs (group_id, rect_id and ellipse_id) of all elements to be kept.