SVG – Learning by Coding

[ symbol.svg --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 3:   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
 4:   <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
 5: ]>
 6: 
 7: <!-- SVG Learning by Coding http://www.datenverdrahten.de/svglbc/ -->
 8: <!--    AuthorDrThomas Meinike 12/02 thomas@handmadecode.de     -->
 9: 
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11: 
12:   <defs>
13:     <symbol id="einsymbol">
14:       <circle cx="11" cy="10" r="5" style="fill: #090"/>
15:       <rect x="0" y="16" width="10" height="10" style="fill: #00C"/>
16:       <rect x="11" y="16" width="10" height="10" style="fill: #F00"/>
17:     </symbol>
18:   </defs>
19: 
20:   <title>SVG Learning by Coding</title>
21:   <desc>SVG-Spezifikation in Beispielen</desc>
22:   <text x="20" y="30" style="fill: #000; font-size: 24px">Element symbol</text>
23: 
24:   <use xlink:href="#einsymbol" x="35" y="80" width="25" height="25"/>
25:   <use xlink:href="#einsymbol" x="65" y="80" width="25" height="25"/>
26:   <use xlink:href="#einsymbol" x="95" y="80" width="25" height="25"/>
27: 
28: </svg>

[zum Anfang]