aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/svg/test/use02.svg
blob: e774c9dee0a5fe7e08d5e0c53776f3b7a3145372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" standalone="yes"?>

<svg:svg width="10cm" height="3cm" xmlns:svg="http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
  <svg:title>Use02</svg:title>
  <svg:desc>Example Use02 - 'use' on a 'symbol'</svg:desc>
  <svg:defs>
    <svg:symbol id="MySymbol" viewBox="0 0 20 20">
      <svg:desc>MySymbol - four rectangles in a grid</svg:desc>
      <svg:rect x="1" y="1" width="8" height="8"/>
      <svg:rect x="11" y="1" width="8" height="8"/>
      <svg:rect x="1" y="11" width="8" height="8"/>
      <svg:rect x="11" y="11" width="8" height="8"/>
    </svg:symbol>
  </svg:defs>
  <svg:use x="4.5cm" y="1cm" width="1cm" height="1cm"
       xlink:href="#MySymbol" style="fill:black" />
</svg:svg>