File: xmlBase.svg

package info (click to toggle)
batik 1.8-4%2Bdeb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,992 kB
  • sloc: java: 196,107; xml: 16,921; javascript: 1,276; sh: 160; makefile: 41
file content (67 lines) | stat: -rw-r--r-- 2,801 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<!--

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

-->
<!-- ====================================================================== -->
<!-- xml:base processing test.                                              -->
<!--                                                                        -->
<!-- @author thomas.deweese@kodak.com                                       -->
<!-- @version $Id: xmlBase.svg 475477 2006-11-15 22:44:28Z cam $    -->
<!-- ====================================================================== -->

<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>

<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">
    <title>XML Base Test</title>
    <g id="content" xml:base="../../../batikLogo.svg">
       <font-face font-family="Batik SVGFont">
          <font-face-src>
              <font-face-uri xlink:href="#Batik"/>
          </font-face-src>
       </font-face>

        <text x="225" y="30" class="title">
        Test of xml:base, use and SVG fonts 
        </text>

       <use transform="translate(25, 200) scale(.5)"
        xlink:href="#Batik_Logo_Shadow" />


       <g transform="translate(250,200) scale(.5)" filter="url(#dropShadow)">
        <use xlink:href="#Batik_Logo" />
       </g> <!-- End Batik_Logo_Shadow -->
       
       
       <g transform="translate(25, 350) scale(.5)" filter="url(#dropShadow)">
          <text x="0" y="0" font-family="Batik SVGFont" 
                font-size="180">Batik</text>
          <use xlink:href="#Batik_Logo_Underline"/>
       </g> <!-- End Batik_Logo_Shadow -->

       <g xml:base="tests/">
           <use transform="translate(250 350) scale(.5)" 
                xlink:href="../batikLogo.svg#Batik_Logo_Shadow" />
       </g>
    </g>

    <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> 
</svg>