1 <?xml version="1.0" standalone="no"?>
3 Copyright 2002-2004 The Apache Software Foundation or its licensors,
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
22 To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
23 xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
24 SVG spec (http://www.w3.org/TR/SVG/) as a reference.
27 <!-- See Forrest Issue: FOR-229
28 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
29 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
31 <!ATTLIST svg xmlns:for CDATA #FIXED "http://apache.org/forrest">
32 <!ENTITY % textExt "|for:group-name">
33 <!ELEMENT for:group-name (#PCDATA)>
36 <svg xmlns="http://www.w3.org/2000/svg"
37 xmlns:xlink="http://www.w3.org/1999/xlink"
38 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
40 xmlns:for="http://apache.org/forrest"
41 width="220" height="65" >
42 <title>Anteater logo</title>
47 <radialGradient id="radialGradient">
48 <stop style="stop-color:gold" offset="0"/>
49 <stop style="stop-color:orange" offset=".5"/>
50 <stop style="stop-color:crimson" offset="1"/>
52 <linearGradient id="linearGradient">
53 <stop style="stop-color:gold" offset="0"/>
54 <stop style="stop-color:orange" offset=".5"/>
55 <stop style="stop-color:crimson" offset="1"/>
59 <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
60 <stop style="stop-color:white" offset="0"/>
61 <stop style="stop-color:lightgreen" offset="1"/>
64 <filter id="shadowFilter" filterUnits="objectBoundingBox" width="1.4" height="1.4">
65 <!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
66 <feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
67 <!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
68 <feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
69 <!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
70 former 'over' the latter, and using the merged result as the finished
72 <feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
77 <g filter="url(#shadowFilter)" fill="url(#gradient)">
78 <text x="40%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: middle">