1 <?xml version=
"1.0" standalone=
"no"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3 <svg viewBox=
"0 0 400 300" version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
7 <rect id=
"rect" stroke-width=
"5px" stroke=
"navy" width=
"60" height=
"10"/>
9 <circle id=
"circle" opacity=
"0.5" fill=
"green" cx=
"30" cy=
"5" r=
"10"/>
13 <use x=
"25" y=
"25" xlink:
href=
"#g"/>
14 <use x=
"125" y=
"25" xlink:
href=
"#g"/>
16 <text font-size=
"10" id=
"text" x=
"10" y=
"70">You should see a red rectangle and a green circle.
</text>
19 document.getElementById(
"g2").setAttribute(
"fill",
"red");