<svg width="200px" height="200px" viewBox="0 0 200 200"> <g id="square"> <rect x="10" y="10" width="20" height="20" style="fill: none; stroke:black;"/> </g> <use xlink:href="#square" transform="scale()"/> </svg>