| 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 |
<!-- Linking and viewBox test. --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500"> |
| 33 |
<title>Linking and viewBox test</title> |
| 34 |
<!-- ============================================================= --> |
| 35 |
<!-- Test content --> |
| 36 |
<!-- ============================================================= --> |
| 37 |
|
| 38 |
<g id="testContent"> |
| 39 |
|
| 40 |
<text x="225" y="50" class="title"> |
| 41 |
Linking and viewBox test |
| 42 |
</text> |
| 43 |
|
| 44 |
<a xlink:href="#svgView(viewBox(125,125,100,100))"> |
| 45 |
<text x="120" y="90" class="title" style="fill:blue;text-decoration:underline"> |
| 46 |
Click here to start... |
| 47 |
</text> |
| 48 |
</a> |
| 49 |
|
| 50 |
<g transform="translate(125 125)" |
| 51 |
style="stroke:black;stroke-width:4;font-size:12;text-anchor:middle"> |
| 52 |
|
| 53 |
<rect x="0" y="0" width="100" height="100" style="fill:crimson" /> |
| 54 |
<a xlink:href="#svgView(viewBox(235,125,100,100))"> <!-- go to orange --> |
| 55 |
<text x="50" y="50" style="fill:blue;stroke:none;text-decoration:underline">Go to 'orange'</text> |
| 56 |
</a> |
| 57 |
|
| 58 |
|
| 59 |
<rect x="110" y="0" width="100" height="100" style="fill:orange" /> |
| 60 |
<a xlink:href="#svgView(viewBox(125,235,100,100))"> <!-- go to gold --> |
| 61 |
<text x="160" y="50" style="fill:blue;stroke:none;text-decoration:underline">Go to 'gold'</text> |
| 62 |
</a> |
| 63 |
|
| 64 |
|
| 65 |
<rect x="0" y="110" width="100" height="100" style="fill:gold" /> |
| 66 |
<a xlink:href="#svgView(viewBox(235,235,100,100))"> <!-- go to grey --> |
| 67 |
<text x="50" y="160" style="fill:blue;stroke:none;text-decoration:underline">Go to 'grey'</text> |
| 68 |
</a> |
| 69 |
|
| 70 |
|
| 71 |
<rect x="110" y="110" width="100" height="100" style="fill:#eee" /> |
| 72 |
<a xlink:href="#svgView(viewBox(125,125,100,100))"> <!-- go to crimson --> |
| 73 |
<text x="160" y="160" style="fill:blue;stroke:none;text-decoration:underline">Back to 'crimson'</text> |
| 74 |
</a> |
| 75 |
|
| 76 |
</g> |
| 77 |
|
| 78 |
</g> |
| 79 |
|
| 80 |
<!-- ============================================================= --> |
| 81 |
<!-- Batik sample mark --> |
| 82 |
<!-- ============================================================= --> |
| 83 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 84 |
|
| 85 |
</svg> |