1 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
3 <rect id=
"rect" fill=
"green" width=
"100" height=
"100"/>
6 <g transform=
"translate(50 10)">
7 <rect fill=
"red" width=
"100" height=
"100"/>
8 <use id=
"use1" xlink:
href=
"#none"/>
11 <g transform=
"translate(0 60)">
12 <use id=
"use2" xlink:
href=
"#rect"/>
15 <text x=
"60" y=
"140">You should see two green rectangles.
</text>
19 document.getElementById(
"use2").setAttribute(
"transform",
"translate(200 -50)");
20 document.getElementById(
"use1").setAttributeNS(
"http://www.w3.org/1999/xlink",
"href",
"#rect");