25 lines
831 B
XML
25 lines
831 B
XML
<?xml version="1.0" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<svg width="800" height="600" viewBox="0 0 400 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<defs>
|
|
<g id="g">
|
|
<rect stroke-width="5px" fill="red" stroke="navy" width="60" height="10"/>
|
|
<circle opacity="0.5" fill="green" cx="30" cy="5" r="10"/>
|
|
</g>
|
|
|
|
<use id="use" xlink:href="#g"/>
|
|
</defs>
|
|
|
|
<g transform="translate(125 25)">
|
|
<g>
|
|
<rect stroke-width="5px" fill="red" stroke="navy" width="60" height="10"/>
|
|
<circle opacity="0.5" fill="green" cx="30" cy="5" r="10"/>
|
|
</g>
|
|
</g>
|
|
|
|
<text x="10" y="60">The two objects should look identical.</text>
|
|
<use x="25" y="25" xlink:href="#use"/>
|
|
|
|
</svg>
|
|
|