Witten
Bainbridge
Nichols
|
HOME HELP PREFERENCES
SEARCHFIGURESTABLES
|
| How to Build a Digital Library Second Edition |
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3 <svg width="100%" height="100%" version="1.1"
4 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
5
6 <image x="10" y="30" width="100px" height="138px" xlink:href="nzmap.png">
7 <title>Map of New Zealand</title>
8 <desc>Raster image of New Zealand showing the major waterways</desc>
9 </image>
10
11 <defs>
12 <linearGradient id="mygradient" x1="0%" y1="0%" x2="0%" y2="100%">
13 <stop offset="0%" style="stop-color:yellow;stop-opacity:1"/>
14 <stop offset="100%" style="stop-color:red;stop-opacity:1"/>
15 </linearGradient>
16 </defs>
17
18 <ellipse cx="200" cy="60" rx="80" ry="50" style="fill:url(#mygradient)"/>
19 <ellipse cx="240" cy="100" rx="80" ry="50" style="fill:green;opacity:0.5"/>
20
21 <g transform="translate(200,140) rotate(45)">
22 <a xlink:href="http://www.greenstone.org">
23 <ellipse rx="80" ry="50" style="fill:yellow;" />
24 </a>
25 </g>
26 </svg>
| | Figure 5.19b: SVG advanced features; Underlying XML |
|