Debian Codegraph @

samples/tests/spec/linking/anchor.svg

raw
1 <?xml version="1.0" 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
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ====================================================================== -->
24 <!-- This interactive test validates that the <anchor> tag works on the -->
25 <!-- various element types. -->
26 <!-- -->
27 <!-- @author [email protected] -->
28 <!-- @version $Id$ -->
29 <!-- ====================================================================== -->
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg id="body" width="450" height="500" viewBox="0 0 450 500"
33 xmlns="http://www.w3.org/2000/svg"
34 xmlns:xlink="http://www.w3.org/1999/xlink" >
35 <title>Anchor (&lt;a/&gt;) Test</title>
36
37 <style type="text/css"><![CDATA[
38 .label { text-anchor: middle; }
39 ]]></style>
40
41 <g id="content">
42
43 <text class="title" x="50%" y="40"
44 >Anchor (&lt;a&gt;) Test<desc
45 >Click in any of the links in the
46 table. You should see a smilley.</desc></text>
47
48 <defs>
49 <g id="smilley">
50 <g transform="scale(.8, .8) translate(-15,-15)">
51 <circle cx="15" cy="15" r="10"/>
52 <circle cx="12" cy="12" r="1.5" fill="black"/>
53 <circle cx="17" cy="12" r="1.5" fill="black"/>
54 <path d="M 10 19 A 8 8 0 0 0 20 19"
55 stroke="black" stroke-width="1"/>
56 </g>
57 </g>
58
59 <g id="unsmilley">
60 <g transform="scale(.8, .8) translate(-15,-15)">
61 <circle cx="15" cy="15" r="10"/>
62 <circle cx="12" cy="12" r="1.5" fill="black"/>
63 <circle cx="17" cy="12" r="1.5" fill="black"/>
64 <path d="M 10 19 A 8 8 0 0 1 20 19" fill="none"
65 stroke="black" stroke-width="1"/>
66 </g>
67 </g>
68
69 <g id="success" fill="rgb(0,255,0)">
70 <use xlink:href="#smilley" />
71 </g>
72
73 <g id="failure" fill="rgb(255,0,0)">
74 <use xlink:href="#unsmilley" />
75 </g>
76
77 </defs>
78
79 <g transform="translate(5, 5) scale(.2)">
80 <a xlink:href="#svgView(viewBox(0,0,450,500))">
81 <use xlink:href="#success"/>
82 <text y="-11" font-size="2" fill="blue" text-decoration="underline" text-anchor="middle">Return to test</text>
83 </a>
84 </g>
85
86 <g transform="translate(10, 5) scale(.2)">
87 <a xlink:href="#svgView(viewBox(0,0,450,500))">
88 <use xlink:href="#failure"/>
89 <text y="-11" font-size="2" fill="blue" text-decoration="underline" text-anchor="middle">Return to test</text>
90 </a>
91 </g>
92
93
94
95 <g id="graphicsElementsTable" transform="translate(4, 60)">
96
97 <g id="additionalInfoHeader">
98 <g stroke="black">
99 <rect x="60" y="0" width="60" height="40" fill="#AFA"/>
100 <rect x="120" y="0" width="90" height="40" fill="#FCC"/>
101 <rect x="210" y="0" width="90" height="40" fill="#FCC"/>
102 <rect x="300" y="0" width="70" height="40" fill="#AFA"/>
103 <rect x="370" y="0" width="70" height="40" fill="#FCC"/>
104 </g>
105 <g id="additionalInfoHeaderLabels" class="label">
106 <text x="90" y="15">Link</text>
107
108 <text x="165" y="15">preventDefault</text>
109 <text x="165" y="30">inside a</text>
110
111 <text x="255" y="15">preventDefault</text>
112 <text x="255" y="30">outside a</text>
113
114 <text x="335" y="15">mouseover</text>
115 <text x="335" y="30">prvtDflt</text>
116
117 <text x="405" y="15">click</text>
118 <text x="405" y="30">prvtDflt</text>
119 </g>
120 </g>
121
122 <g id="rectRow" transform="translate(0, 40)">
123 <g fill="white" stroke="black">
124 <rect x="0" y="0" width="60" height="20"/>
125 <rect x="60 " y="0" width="60" height="20"/>
126 <rect x="120" y="0" width="90" height="20"/>
127 <rect x="210" y="0" width="90" height="20"/>
128 <rect x="300" y="0" width="70" height="20"/>
129 <rect x="370" y="0" width="70" height="20"/>
130 </g>
131
132 <text x="30" y="15" class="label">&lt;rect&gt;</text>
133
134 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
135 <rect id="testRect" x="80" y="3" fill="gold" width="20" height="14" />
136 </a>
137
138 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
139 <rect onclick="evt.preventDefault()"
140 onmouseover="evt.preventDefault()"
141 x="155" y="3" fill="gold" width="20" height="14" />
142 </a>
143
144 <g transform="translate(90,0)"
145 onclick="evt.preventDefault()"
146 onmouseover="evt.preventDefault()">
147 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
148 <rect x="155" y="3" fill="gold" width="20" height="14" />
149 </a>
150 </g>
151
152 <g transform="translate(170,0)"
153 onmouseover="evt.preventDefault()">
154 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
155 <rect x="155" y="3" fill="gold" width="20" height="14" />
156 </a>
157 </g>
158
159 <g transform="translate(240,0)"
160 onclick="evt.preventDefault()">
161 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
162 <rect x="155" y="3" fill="gold" width="20" height="14" />
163 </a>
164 </g>
165
166 </g> <!-- "rectRow" -->
167
168 <g id="circleRow" transform="translate(0, 60)">
169 <g fill="white" stroke="black">
170 <rect x="0" y="0" width="60" height="20"/>
171 <rect x="60 " y="0" width="60" height="20"/>
172 <rect x="120" y="0" width="90" height="20"/>
173 <rect x="210" y="0" width="90" height="20"/>
174 <rect x="300" y="0" width="70" height="20"/>
175 <rect x="370" y="0" width="70" height="20"/>
176 </g>
177
178 <text x="30" y="15" class="label">&lt;circle&gt;</text>
179
180 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
181 <circle id="testCircle" cx="90" cy="10" r="8" fill="crimson" />
182 </a>
183
184 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
185 <circle id="testCirclePd1"
186 onclick ="evt.preventDefault()"
187 onmouseover="evt.preventDefault()"
188 cx="165" cy="10" r="8" fill="crimson" />
189 </a>
190
191 <g transform="translate(90,0)"
192 onclick="evt.preventDefault()"
193 onmouseover="evt.preventDefault()">
194 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
195 <circle cx="165" cy="10" r="8" fill="crimson" />
196 </a>
197 </g>
198
199 <g transform="translate(170,0)"
200 onmouseover="evt.preventDefault()">
201 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
202 <circle cx="165" cy="10" r="8" fill="crimson" />
203 </a>
204 </g>
205
206 <g transform="translate(240,0)"
207 onclick="evt.preventDefault()">
208 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
209 <circle cx="165" cy="10" r="8" fill="crimson" />
210 </a>
211 </g>
212 </g> <!-- "circleRow" -->
213
214 <g id="ellipseRow" transform="translate(0, 80)">
215 <g fill="white" stroke="black">
216 <rect x="0" y="0" width="60" height="20"/>
217 <rect x="60 " y="0" width="60" height="20"/>
218 <rect x="120" y="0" width="90" height="20"/>
219 <rect x="210" y="0" width="90" height="20"/>
220 <rect x="300" y="0" width="70" height="20"/>
221 <rect x="370" y="0" width="70" height="20"/>
222 </g>
223
224 <text x="30" y="15" class="label">&lt;ellipse&gt;</text>
225
226 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
227 <ellipse cx="90" cy="10" rx="20" ry="6" fill="gold" />
228 </a>
229
230 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
231 <ellipse onclick ="evt.preventDefault()"
232 onmouseover="evt.preventDefault()"
233 cx="165" cy="10" rx="20" ry="6" fill="gold" />
234 </a>
235
236 <g transform="translate(90,0)"
237 onclick="evt.preventDefault()"
238 onmouseover="evt.preventDefault()">
239 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
240 <ellipse cx="165" cy="10" rx="20" ry="6" fill="gold" />
241 </a>
242 </g>
243
244 <g transform="translate(170,0)"
245 onmouseover="evt.preventDefault()">
246 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
247 <ellipse cx="165" cy="10" rx="20" ry="6" fill="gold" />
248 </a>
249 </g>
250
251 <g transform="translate(240,0)"
252 onclick="evt.preventDefault()">
253 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
254 <ellipse cx="165" cy="10" rx="20" ry="6" fill="gold" />
255 </a>
256 </g>
257 </g> <!-- "ellipseRow" -->
258
259 <g id="lineRow" transform="translate(0, 100)">
260 <g fill="white" stroke="black">
261 <rect x="0" y="0" width="60" height="20"/>
262 <rect x="60 " y="0" width="60" height="20"/>
263 <rect x="120" y="0" width="90" height="20"/>
264 <rect x="210" y="0" width="90" height="20"/>
265 <rect x="300" y="0" width="70" height="20"/>
266 <rect x="370" y="0" width="70" height="20"/>
267 </g>
268
269 <text x="30" y="15" class="label">&lt;line&gt;</text>
270
271 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
272 <line x1="70" y1="10" x2="110" y2="10" stroke="gold" stroke-width="4" />
273 </a>
274
275 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
276 <line onclick="evt.preventDefault()"
277 onmouseover="evt.preventDefault()"
278 x1="145" y1="10" x2="185" y2="10"
279 stroke="gold" stroke-width="4" />
280 </a>
281
282
283 <g transform="translate(90,0)"
284 onclick="evt.preventDefault()"
285 onmouseover="evt.preventDefault()">
286 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
287 <line x1="145" y1="10" x2="185" y2="10"
288 stroke="gold" stroke-width="4" />
289 </a>
290 </g>
291
292 <g transform="translate(170,0)"
293 onmouseover="evt.preventDefault()">
294 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
295 <line x1="145" y1="10" x2="185" y2="10"
296 stroke="gold" stroke-width="4" />
297 </a>
298 </g>
299
300 <g transform="translate(240,0)"
301 onclick="evt.preventDefault()">
302 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
303 <line x1="145" y1="10" x2="185" y2="10"
304 stroke="gold" stroke-width="4" />
305 </a>
306 </g>
307 </g> <!-- "lineRow" -->
308
309 <g id="polylineRow" transform="translate(0, 120)">
310 <g fill="white" stroke="black">
311 <rect x="0" y="0" width="60" height="20"/>
312 <rect x="60 " y="0" width="60" height="20"/>
313 <rect x="120" y="0" width="90" height="20"/>
314 <rect x="210" y="0" width="90" height="20"/>
315 <rect x="300" y="0" width="70" height="20"/>
316 <rect x="370" y="0" width="70" height="20"/>
317 </g>
318
319 <text x="30" y="15" class="label">&lt;polyline&gt;</text>
320
321 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
322 <polyline transform="translate(60, 0)" points="5,10 5,15 30,15 30,5 55,5 55,10"
323 fill="none" stroke="gold" stroke-width="4" />
324 </a>
325
326 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
327 <polyline onclick="evt.preventDefault()"
328 onmouseover="evt.preventDefault()"
329 points="140,10 140,15 165,15 165,5 190,5 190,10"
330 fill="none" stroke="gold" stroke-width="4" />
331 </a>
332 <g transform="translate(90,0)"
333 onclick="evt.preventDefault()"
334 onmouseover="evt.preventDefault()">
335 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
336 <polyline points="140,10 140,15 165,15 165,5 190,5 190,10"
337 fill="none" stroke="gold" stroke-width="4" />
338 </a>
339 </g>
340
341 <g transform="translate(170,0)"
342 onmouseover="evt.preventDefault()">
343 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
344 <polyline points="140,10 140,15 165,15 165,5 190,5 190,10"
345 fill="none" stroke="gold" stroke-width="4" />
346 </a>
347 </g>
348
349 <g transform="translate(240,0)"
350 onclick="evt.preventDefault()">
351 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
352 <polyline points="140,10 140,15 165,15 165,5 190,5 190,10"
353 fill="none" stroke="gold" stroke-width="4" />
354 </a>
355 </g>
356 </g> <!-- "polylineRow" -->
357
358 <g id="polygonRow" transform="translate(0, 140)">
359 <g fill="white" stroke="black">
360 <rect x="0" y="0" width="60" height="20"/>
361 <rect x="60 " y="0" width="60" height="20"/>
362 <rect x="120" y="0" width="90" height="20"/>
363 <rect x="210" y="0" width="90" height="20"/>
364 <rect x="300" y="0" width="70" height="20"/>
365 <rect x="370" y="0" width="70" height="20"/>
366 </g>
367
368 <text x="30" y="15" class="label">&lt;polygon&gt;</text>
369
370 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
371 <polygon points="65,10 65,15 90,15 90,5 115,5 115,10"
372 fill="gold" stroke="black" stroke-width="1" />
373 </a>
374
375 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
376 <polygon onclick="evt.preventDefault()"
377 onmouseover="evt.preventDefault()"
378 points="140,10 140,15 165,15 165,5 190,5 190,10"
379 fill="gold" stroke="black" stroke-width="1" />
380 </a>
381
382 <g transform="translate(90,0)"
383 onclick="evt.preventDefault()"
384 onmouseover="evt.preventDefault()">
385 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
386 <polygon points="140,10 140,15 165,15 165,5 190,5 190,10"
387 fill="gold" stroke="black" stroke-width="1" />
388 </a>
389 </g>
390
391 <g transform="translate(170,0)"
392 onmouseover="evt.preventDefault()">
393 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
394 <polygon points="140,10 140,15 165,15 165,5 190,5 190,10"
395 fill="gold" stroke="black" stroke-width="1" />
396 </a>
397 </g>
398
399 <g transform="translate(240,0)"
400 onclick="evt.preventDefault()">
401 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
402 <polygon points="140,10 140,15 165,15 165,5 190,5 190,10"
403 fill="gold" stroke="black" stroke-width="1" />
404 </a>
405 </g>
406 </g> <!-- "polygonRow" -->
407
408 <g id="pathRow" transform="translate(0, 160)">
409 <g fill="white" stroke="black">
410 <rect x="0" y="0" width="60" height="20"/>
411 <rect x="60 " y="0" width="60" height="20"/>
412 <rect x="120" y="0" width="90" height="20"/>
413 <rect x="210" y="0" width="90" height="20"/>
414 <rect x="300" y="0" width="70" height="20"/>
415 <rect x="370" y="0" width="70" height="20"/>
416 </g>
417
418 <text x="30" y="15" class="label">&lt;path&gt;</text>
419
420 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
421 <path d="M65,10l0,5l25,0l0,-10l25,0l0,5Z"
422 fill="gold" stroke="black" stroke-width="1" />
423 </a>
424
425 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
426 <path onclick="evt.preventDefault()"
427 onmouseover="evt.preventDefault()"
428 d="M140,10l0,5l25,0l0,-10l25,0l0,5Z"
429 fill="gold" stroke="black" stroke-width="1" />
430 </a>
431
432 <g transform="translate(90,0)"
433 onclick="evt.preventDefault()"
434 onmouseover="evt.preventDefault()">
435 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
436 <path d="M140,10l0,5l25,0l0,-10l25,0l0,5Z"
437 fill="gold" stroke="black" stroke-width="1" />
438 </a>
439 </g>
440
441 <g transform="translate(170,0)"
442 onmouseover="evt.preventDefault()">
443 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
444 <path d="M140,10l0,5l25,0l0,-10l25,0l0,5Z"
445 fill="gold" stroke="black" stroke-width="1" />
446 </a>
447 </g>
448
449 <g transform="translate(240,0)"
450 onclick="evt.preventDefault()">
451 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
452 <path d="M140,10l0,5l25,0l0,-10l25,0l0,5Z"
453 fill="gold" stroke="black" stroke-width="1" />
454 </a>
455 </g>
456 </g> <!-- "pathRow" -->
457
458 <g id="imageRow" transform="translate(0, 180)">
459 <g fill="white" stroke="black">
460 <rect x="0" y="0" width="60" height="20"/>
461 <rect x="60 " y="0" width="60" height="20"/>
462 <rect x="120" y="0" width="90" height="20"/>
463 <rect x="210" y="0" width="90" height="20"/>
464 <rect x="300" y="0" width="70" height="20"/>
465 <rect x="370" y="0" width="70" height="20"/>
466 </g>
467
468 <text x="30" y="15" class="label">&lt;image&gt;</text>
469
470 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
471 <image x="68" y="1" width="43" height="18"
472 xlink:href="../../resources/images/tde.jpg"/>
473 </a>
474
475 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
476 <image onclick="evt.preventDefault()"
477 onmouseover="evt.preventDefault()"
478 x="143" y="1" width="43" height="18"
479 xlink:href="../../resources/images/tde.jpg"/>
480 </a>
481
482 <g transform="translate(90,0)"
483 onclick="evt.preventDefault()"
484 onmouseover="evt.preventDefault()">
485 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
486 <image x="143" y="1" width="43" height="18"
487 xlink:href="../../resources/images/tde.jpg"/>
488 </a>
489 </g>
490
491 <g transform="translate(170,0)"
492 onmouseover="evt.preventDefault()">
493 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
494 <image x="143" y="1" width="43" height="18"
495 xlink:href="../../resources/images/tde.jpg"/>
496 </a>
497 </g>
498
499 <g transform="translate(240,0)"
500 onclick="evt.preventDefault()">
501 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
502 <image x="143" y="1" width="43" height="18"
503 xlink:href="../../resources/images/tde.jpg"/>
504 </a>
505 </g>
506 </g> <!-- "imageRow" -->
507
508 <g id="svgImageRow" transform="translate(0, 200)">
509 <g fill="white" stroke="black">
510 <rect x="0" y="0" width="60" height="20"/>
511 <rect x="60 " y="0" width="60" height="20"/>
512 <rect x="120" y="0" width="90" height="20"/>
513 <rect x="210" y="0" width="90" height="20"/>
514 <rect x="300" y="0" width="70" height="20"/>
515 <rect x="370" y="0" width="70" height="20"/>
516 </g>
517
518 <text x="30" y="15" class="label">&lt;image&gt;</text>
519
520 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
521 <image x="80" y="2" width="24" height="18"
522 xlink:href="../../resources/images/svg.svg"/>
523 </a>
524
525 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
526 <image onclick="evt.preventDefault()"
527 onmouseover="evt.preventDefault()"
528 x="155" y="2" width="24" height="18"
529 xlink:href="../../resources/images/svg.svg"/>
530 </a>
531
532 <g transform="translate(90,0)"
533 onclick="evt.preventDefault()"
534 onmouseover="evt.preventDefault()">
535 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
536 <image x="155" y="2" width="24" height="18"
537 xlink:href="../../resources/images/svg.svg"/>
538 </a>
539 </g>
540
541 <g transform="translate(170,0)"
542 onmouseover="evt.preventDefault()">
543 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
544 <image x="155" y="2" width="24" height="18"
545 xlink:href="../../resources/images/svg.svg"/>
546 </a>
547 </g>
548
549 <g transform="translate(240,0)"
550 onclick="evt.preventDefault()">
551 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
552 <image x="155" y="2" width="24" height="18"
553 xlink:href="../../resources/images/svg.svg"/>
554 </a>
555 </g>
556 </g> <!-- "svgImageRow" -->
557
558 <g id="textRow" transform="translate(0, 220)">
559 <g fill="white" stroke="black">
560 <rect x="0" y="0" width="60" height="20"/>
561 <rect x="60 " y="0" width="60" height="20"/>
562 <rect x="120" y="0" width="90" height="20"/>
563 <rect x="210" y="0" width="90" height="20"/>
564 <rect x="300" y="0" width="70" height="20"/>
565 <rect x="370" y="0" width="70" height="20"/>
566 </g>
567
568 <text x="30" y="15" class="label">&lt;text&gt;</text>
569
570 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
571 <text x="90" y="15" text-anchor="middle">Ho, la, la!</text>
572 </a>
573
574 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
575 <text onclick="evt.preventDefault()"
576 onmouseover="evt.preventDefault()"
577 x="165" y="15" text-anchor="middle">Ho, la, la!</text>
578 </a>
579
580 <g transform="translate(90,0)"
581 onclick="evt.preventDefault()"
582 onmouseover="evt.preventDefault()">
583 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
584 <text x="165" y="15" text-anchor="middle">Ho, la, la!</text>
585 </a>
586 </g>
587
588 <g transform="translate(170,0)"
589 onmouseover="evt.preventDefault()">
590 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
591 <text x="165" y="15" text-anchor="middle">Ho, la, la!</text>
592 </a>
593 </g>
594
595 <g transform="translate(240,0)"
596 onclick="evt.preventDefault()">
597 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
598 <text x="165" y="15" text-anchor="middle">Ho, la, la!</text>
599 </a>
600 </g>
601 </g> <!-- "textRow" -->
602
603 <g id="useRow" transform="translate(0, 240)">
604 <g fill="white" stroke="black">
605 <rect x="0" y="0" width="60" height="20"/>
606 <rect x="60 " y="0" width="60" height="20"/>
607 <rect x="120" y="0" width="90" height="20"/>
608 <rect x="210" y="0" width="90" height="20"/>
609 <rect x="300" y="0" width="70" height="20"/>
610 <rect x="370" y="0" width="70" height="20"/>
611 </g>
612
613 <text x="30" y="15" class="label">&lt;use&gt;</text>
614
615 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
616 <use xlink:href="#testRect" />
617 </a>
618
619 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
620 <use onclick="evt.preventDefault()"
621 onmouseover="evt.preventDefault()"
622 x="75" xlink:href="#testRect" />
623 </a>
624
625 <g transform="translate(90,0)"
626 onclick="evt.preventDefault()"
627 onmouseover="evt.preventDefault()">
628 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
629 <use x="75" xlink:href="#testRect" />
630 </a>
631 </g>
632
633 <g transform="translate(170,0)"
634 onmouseover="evt.preventDefault()">
635 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
636 <use x="75" xlink:href="#testRect" />
637 </a>
638 </g>
639
640 <g transform="translate(240,0)"
641 onclick="evt.preventDefault()">
642 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
643 <use x="75" xlink:href="#testRect" />
644 </a>
645 </g>
646
647 </g> <!-- "useRow" -->
648
649 <g id="groupRow" transform="translate(0, 260)">
650 <g fill="white" stroke="black">
651 <rect x="0" y="0" width="60" height="20"/>
652 <rect x="60 " y="0" width="60" height="20"/>
653 <rect x="120" y="0" width="90" height="20"/>
654 <rect x="210" y="0" width="90" height="20"/>
655 <rect x="300" y="0" width="70" height="20"/>
656 <rect x="370" y="0" width="70" height="20"/>
657 </g>
658
659 <text x="30" y="15" class="label">&lt;g&gt;</text>
660
661 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
662 <g>
663 <use xlink:href="#testRect" />
664 <use x="10" xlink:href="#testCircle"/>
665 </g>
666 </a>
667
668 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
669 <g onclick="evt.preventDefault()"
670 onmouseover="evt.preventDefault()">
671 <use x="75" xlink:href="#testRect" />
672 <use x="85" xlink:href="#testCircle"/>
673 </g>
674 </a>
675
676 <g transform="translate(90,0)"
677 onclick="evt.preventDefault()"
678 onmouseover="evt.preventDefault()">
679 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
680 <g>
681 <use x="75" xlink:href="#testRect" />
682 <use x="85" xlink:href="#testCircle"/>
683 </g>
684 </a>
685 </g>
686
687 <g transform="translate(170,0)"
688 onmouseover="evt.preventDefault()">
689 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
690 <g>
691 <use x="75" xlink:href="#testRect" />
692 <use x="85" xlink:href="#testCircle"/>
693 </g>
694 </a>
695 </g>
696
697 <g transform="translate(240,0)"
698 onclick="evt.preventDefault()">
699 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
700 <g>
701 <use x="75" xlink:href="#testRect" />
702 <use x="85" xlink:href="#testCircle"/>
703 </g>
704 </a>
705 </g>
706 </g> <!-- "groupRow" -->
707
708 <a xlink:href="#svgView(viewBox(8,2.5,4,4))">
709 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
710 <g transform="translate(120,330)">
711 <use xlink:href="#testRect" />
712 <use x="10" xlink:href="#testCircle"/>
713 </g>
714 </a>
715 </a>
716
717 <text x="215" y="365" class="label"
718 >Element with two 'a' elems</text>
719
720 </g>
721 </g><!-- "content" -->
722
723 <!-- ============================================================= -->
724 <!-- Batik sample mark -->
725 <!-- ============================================================= -->
726 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
727
728 </svg>