Debian Codegraph @

samples/tests/spec/structure/useMultipleURI.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 <!-- Multiple use combined (external and internal) -->
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" width="450" height="500" viewBox="0 0 450 500">
33 <title>Multiple &lt;use> with CSS property values: URIs</title>
34
35 <!-- ============================================================= -->
36 <!-- Test content -->
37 <!-- ============================================================= -->
38 <g id="testContent">
39 <text x="225" y="50" class="title">Multiple &lt;use> with CSS property values: URIs</text>
40 <text x="225" y="70" style="text-anchor:middle; font-size:12; font-style:italic">This file is using the defs.svg file to get the external resources</text>
41
42 <!-- ############################### -->
43 <g id="board" style="fill:none; stroke:black;">
44
45 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
46 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
47
48 <rect x="55" y="120" width="20" height="150" style="fill:#eee"/>
49 <rect x="55" y="270" width="20" height="150" style="fill:#eee"/>
50
51 <rect x="75" y="120" width="150" height="300"/>
52 <rect x="225" y="120" width="150" height="300"/>
53
54 <line x1="75" y1="270" x2="375" y2="270" />
55
56 <g style="font-size:12; text-anchor:middle; fill:black; stroke:none">
57 <text x="150" y="114">&lt;use></text>
58 <text x="300" y="114">External &lt;use></text>
59
60 <text x="0" y="0" transform="translate(70 195) rotate(-90)">&lt;use></text>
61 <text x="0" y="0" transform="translate(70 345) rotate(-90)">External &lt;use></text>
62 </g>
63 </g>
64
65 <defs>
66
67 <linearGradient id="crimson">
68 <stop style="stop-color:crimson" offset="0" />
69 <stop style="stop-color:white" offset="1" />
70 </linearGradient>
71
72 <linearGradient id="orange">
73 <stop style="stop-color:orange" offset="0" />
74 <stop style="stop-color:white" offset="1" />
75 </linearGradient>
76
77 <linearGradient id="gold">
78 <stop style="stop-color:gold" offset="0" />
79 <stop style="stop-color:white" offset="1" />
80 </linearGradient>
81
82 <rect id="r1" x="0" y="0" width="80" height="80" />
83
84 <g id="uu11" style="fill:url(#orange)">
85 <rect x="0" y="0" width="80" height="80" fill="url(#crimson)" />
86 <use xlink:href="#r1" x="20" y="20" width="80" height="80" />
87 <use xlink:href="#r1" x="40" y="40" width="80" height="80" style="fill:url(../../resources/svg/defs.svg#extGold)" />
88 </g>
89
90 <g id="uu12" style="fill:url(#orange)">
91 <rect x="0" y="0" width="80" height="80" fill="url(#crimson)" />
92 <use xlink:href="../../resources/svg/defs.svg#extR1" x="20" y="20" width="80" height="80" />
93 <use xlink:href="../../resources/svg/defs.svg#extR1" x="40" y="40" width="80" height="80" style="fill:url(../../resources/svg/defs.svg#extGold)" />
94 </g>
95
96 </defs>
97
98 <use xlink:href="#uu11" x="90" y="130" />
99
100 <use xlink:href="../../resources/svg/defs.svg#uu21" x="240" y="130" />
101
102 <use xlink:href="#uu12" x="90" y="280" />
103
104 <use xlink:href="../../resources/svg/defs.svg#uu22" x="240" y="280" />
105
106
107 </g>
108
109 <!-- ============================================================= -->
110 <!-- Batik sample mark -->
111 <!-- ============================================================= -->
112 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
113
114 </svg>