Debian Codegraph @

samples/tests/spec/structure/requiredFeatures.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 <!-- Test the 'requiredFeatures' attribute -->
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>Test the 'requiredFeatures' attribute</title>
34
35 <!-- ============================================================= -->
36 <!-- Test content -->
37 <!-- ============================================================= -->
38 <g id="testContent">
39 <text x="225" y="50" class="title">Test the 'requiredFeatures' attribute</text>
40
41
42 <g style="fill:#eee; stroke:black">
43 <rect x="50" y="80" width="360" height="20" />
44
45 <rect x="30" y="100" width="20" height="85" />
46 <rect x="30" y="185" width="20" height="85" />
47 <rect x="30" y="270" width="20" height="85" />
48 <rect x="30" y="355" width="20" height="85" />
49 </g>
50 <g style="fill:none; stroke:black">
51 <rect x="50" y="80" width="360" height="360" />
52
53 <line x1="170" y1="80" x2="170" y2="440" />
54 <line x1="290" y1="80" x2="290" y2="440" />
55
56 <line x1="50" y1="185" x2="410" y2="185" />
57 <line x1="50" y1="270" x2="410" y2="270" />
58 <line x1="50" y1="355" x2="410" y2="355" />
59 </g>
60 <g style="fill:black; text-anchor:middle;">
61 <text x="110" y="94">default</text>
62 <text x="230" y="94">org.w3c.svg.static</text>
63 <text x="350" y="94">invalid</text>
64
65 <text x="0" y="0" transform="translate(44, 145) rotate(-90)">Graphic Obj.</text>
66 <text x="0" y="0" transform="translate(44, 230) rotate(-90)">&lt;svg></text>
67 <text x="0" y="0" transform="translate(44, 315) rotate(-90)">&lt;g></text>
68 <text x="0" y="0" transform="translate(44, 400) rotate(-90)">&lt;use></text>
69
70 </g>
71
72 <defs>
73
74 </defs>
75
76 <!-- ####################################################################################### -->
77 <g transform="translate(60, 110)">
78 <g>
79 <rect x="0" y="0" width="30" height="20" style="fill:crimson" />
80 <circle cx="50" cy="10" r="10" style="fill:orange" />
81 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" />
82 </g>
83
84 <g style="stroke-width:3; fill:none">
85 <line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" />
86 <polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" />
87 <polygon points="70 25 80 42 90 25 100 42" style="fill: gold" />
88 </g>
89
90 <g style="stroke-width:3; fill:none">
91 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" />
92 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" />
93 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle">text</text>
94 </g>
95
96 </g>
97
98 <g transform="translate(180, 110)">
99 <g>
100 <rect x="0" y="0" width="30" height="20" style="fill:crimson" requiredFeatures="org.w3c.svg.static" />
101 <circle cx="50" cy="10" r="10" style="fill:orange" requiredFeatures="org.w3c.svg.static"/>
102 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" requiredFeatures="org.w3c.svg.static"/>
103 </g>
104
105 <g style="stroke-width:3; fill:none">
106 <line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" requiredFeatures="org.w3c.svg.static"/>
107 <polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" requiredFeatures="org.w3c.svg.static"/>
108 <polygon points="70 25 80 42 90 25 100 42" style="fill: gold" requiredFeatures="org.w3c.svg.static"/>
109 </g>
110
111 <g style="stroke-width:3; fill:none">
112 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" requiredFeatures="org.w3c.svg.static"/>
113 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" requiredFeatures="org.w3c.svg.static"/>
114 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" requiredFeatures="org.w3c.svg.static">text</text>
115 </g>
116
117 </g>
118
119 <g transform="translate(300, 110)">
120 <g>
121 <rect x="0" y="0" width="30" height="20" style="fill:crimson" requiredFeatures="invalid"/>
122 <circle cx="50" cy="10" r="10" style="fill:orange" requiredFeatures="invalid"/>
123 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" requiredFeatures="invalid"/>
124 </g>
125
126 <g style="stroke-width:3; fill:none">
127 <line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" requiredFeatures="invalid"/>
128 <polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" requiredFeatures="invalid"/>
129 <polygon points="70 25 80 42 90 25 100 42" style="fill: gold" requiredFeatures="invalid"/>
130 </g>
131
132 <g style="stroke-width:3; fill:none">
133 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" requiredFeatures="invalid"/>
134 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" requiredFeatures="invalid"/>
135 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" requiredFeatures="invalid">text</text>
136 </g>
137
138 </g>
139 <!-- ####################################################################################### -->
140
141 <g style="fill:crimson">
142 <svg x="52" y="187" width="116" height="81">
143 <rect x="0" y="0" width="100%" height="100%" />
144 </svg>
145
146 <svg x="172" y="187" width="116" height="81" requiredFeatures="org.w3c.svg.static">
147 <rect x="0" y="0" width="100%" height="100%" />
148 </svg>
149
150 <svg x="292" y="187" width="116" height="81" requiredFeatures="invalid">
151 <rect x="0" y="0" width="100%" height="100%" />
152 </svg>
153 </g>
154
155 <!-- ####################################################################################### -->
156 <g style="fill:crimson" transform="translate(0 85)">
157 <g>
158 <rect x="52" y="187" width="116" height="81" />
159 </g>
160
161 <g>
162 <rect x="172" y="187" width="116" height="81" requiredFeatures="org.w3c.svg.static" />
163 </g>
164
165 <g>
166 <rect x="292" y="187" width="116" height="81" requiredFeatures="invalid" />
167 </g>
168 </g>
169 <!-- ####################################################################################### -->
170 <defs>
171 <rect id="use" x="0" y="0" width="116" height="81" style="fill:crimson"/>
172 </defs>
173
174 <g>
175
176 <use xlink:href="#use" x="52" y="357" />
177
178 <use xlink:href="#use" x="172" y="357" requiredFeatures="org.w3c.svg.static" />
179
180 <use xlink:href="#use" x="292" y="357" requiredFeatures="invalid" />
181
182 </g>
183
184
185 </g>
186
187 <!-- ============================================================= -->
188 <!-- Batik sample mark -->
189 <!-- ============================================================= -->
190 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
191
192 </svg>