HTML
<object
data="../svg/svg_example_eight_group_use.svg"
type="image/svg+xml">
</object>
SVG
// svg_example_eight_group_use.svg
<svg
version="1.1"
width="300"
height="150"
xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="150"
rx="20"
fill="lightgoldenrodyellow"/>
<g id="mydiag" stroke-width="5">
<rect x="10" y="10"
rx="10" ry="10"
height="50" width="100"
fill="red"/>
<circle cx="40" cy="40" r="25"
fill="white"
stroke="green" />
<circle cx="60" cy="60" r="25"
fill="lightblue"
stroke="blue" />
</g>
<use href="#mydiag" x="180" y="0" fill="blue"/>
<use href="#mydiag" x="90" y="60" fill="blue"/>
</svg>