/ libxml2 / test / SVG / bike.xml
bike.xml
 1  <?xml version="1.0"?>
 2  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" 
 3    "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
 4  <!--DOCTYPE svg SYSTEM "svg-19990412.dtd"-->
 5  <svg width="4in" height="3in">
 6    <title>Kona Lavadome mountain bike
 7    </title>
 8    <desc>This picture shows a mountain bike, a human-propelled, 
 9    multi-terrain vehicle. While it can be succesfully used on moorland, 
10    forest, roads, and large hills it is not actually suitable for going 
11    up mountains.
12    </desc>
13    <g id="bike">
14      <defs>
15       <symbol id="spoke"><desc>14/12 gauge double butted spoke</desc>
16       <!-- the path data goes here --></symbol>
17       
18       <symbol id="hub"><desc>black anodised low torsion hub</desc>
19       <!--the path data goes here --></symbol>
20       
21       <symbol id="rim"><desc>twin wall, eyeletted rim</desc>
22       <!-- the path data goes here--></symbol>
23       
24       <symbol id="cogs"><desc>8 speed, wide ratio gearing</desc>
25       <!--the path data goes here --></symbol>
26       
27       <symbol id="lacing"><desc>double cross lacing of 32 spokes</desc>
28       </symbol>
29      </defs>
30      <!-- the overall bike drawing goes here -->
31      <g id="frontwheel">
32      <title>Front wheel</title>
33      <desc>The front wheel provides grip, steering and some shock absorption</desc>
34      <use href="id(lacing)" style="rotation: 20deg; fillcolor: black"/>
35      </g>
36      <g id="backwheel">
37      </g>
38      <g id="frame"><!-- and so on -->
39      </g>
40    </g>
41  </svg>