Debian Codegraph @

samples/tests/spec12/structure/multi.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 <!-- =================================================================== -->
25 <!-- Tests 'multiImage' element with just 'subImageRef' children. -->
26 <!-- -->
27 <!-- @author [email protected] -->
28 <!-- @version $Id$ -->
29 <!-- =================================================================== -->
30
31 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
32
33 <svg width="450" height="500" xml:space="preserve"
34 viewBox="0 0 450 500"
35 xmlns="http://www.w3.org/2000/svg" version="1.2"
36 xmlns:xlink="http://www.w3.org/1999/xlink">
37
38 <title>MultiImage Extension Tag</title>
39 <defs>
40 <symbol id="theImage" viewBox="0 0 264 384">
41 <rect fill="#ADA" x="0" y="0" width="264" height="384"/>
42 <multiImage id="img" x="12" y="12" width="240" height="360">
43 <subImageRef xlink:href="multi-5.jpg"
44 max-pixel-size="2"/>
45 <subImageRef xlink:href="multi-4.jpg"
46 min-pixel-size="2" max-pixel-size="4"/>
47 <subImageRef xlink:href="multi-3.jpg"
48 min-pixel-size="4" max-pixel-size="8"/>
49 <subImageRef xlink:href="multi-2.jpg"
50 min-pixel-size="8" max-pixel-size="16"/>
51 <subImageRef xlink:href="data:image/jpeg;base64,
52 /9j/4AAQSkZJRgABAQEA5gD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age>
69 </symbol>
70 </defs>
71
72 <!-- ============================================================= -->
73 <!-- Test content -->
74 <!-- ============================================================= -->
75 <g id="testContent" class="legend" style="text-anchor:middle">
76 <text x="225" y="40" class="title">MultiImage Extension Tag</text>
77
78 <use x="85" y="75" width="176" height="256" xlink:href="#theImage"/>
79 <use x="281" y="75" width="88" height="128" xlink:href="#theImage"/>
80 <use x="303" y="223" width="44" height="64" xlink:href="#theImage"/>
81 </g>
82
83 <!-- ============================================================= -->
84 <!-- Batik sample mark -->
85 <!-- ============================================================= -->
86 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
87 </svg>