Update of /cvsroot/metamorphosis/antlets/forrest/src/resources/transforms
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29868/forrest/src/resources/transforms
Added Files:
project-logo.xsl
Log Message:
fixed problems that showed up in an empty install
--- NEW FILE: project-logo.xsl ---
<?xml version="1.0" standalone="no"?>
<!-- $Header: /cvsroot/metamorphosis/antlets/forrest/src/resources/transforms/project-logo.xsl,v 1.1 2004/02/23 12:12:00 homeijer Exp $-->
<!--
The Krysalis Patchy Software License, Version 1.1_01
Copyright (c) 2003 Nicola Ken Barozzi. All rights reserved.
This Licence is compatible with the BSD licence as described and
approved by http://www.opensource.org/, and is based on the
Apache Software Licence Version 1.1.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
"This product includes software developed for project
Krysalis (http://www.krysalis.org/)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.
4. The names "Krysalis" and "Nicola Ken Barozzi" and
"Krysalis Centipede" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact [email protected].
5. Products derived from this software may not be called "Krysalis",
"Krysalis Centipede", nor may "Krysalis" appear in their name,
without prior written permission of Nicola Ken Barozzi.
6. This software may contain voluntary contributions made by many
individuals, who decided to donate the code to this project in
respect of this licence.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE KRYSALIS PROJECT OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
====================================================================
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method = "xml" encoding="Windows-1252" />
<xsl:param name="projectName">
</xsl:param>
<xsl:template match="/">
<!--
Modified from
SVG Anteater logo
[email protected]
To get started with SVG, I'd recommend getting the Adobe SVG plugin, and the
xml-batik CVS module. Then have a look at the xml-batik/samples files. Use the
SVG spec (http://www.w3.org/TR/SVG/) as a reference.
-->
<!--
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
-->
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="340" height="60" viewBox="0 0 340 60">
<title><xsl:value-of select="$projectName"/> logo</title>
<defs>
<!--
<radialGradient id="radialGradient">
<stop style="stop-color:gold" offset="0"/>
<stop style="stop-color:orange" offset=".5"/>
<stop style="stop-color:crimson" offset="1"/>
</radialGradient>
<linearGradient id="linearGradient">
<stop style="stop-color:gold" offset="0"/>
<stop style="stop-color:orange" offset=".5"/>
<stop style="stop-color:crimson" offset="1"/>
</linearGradient>
-->
<linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
<stop style="stop-color:white" offset="0"/>
<stop style="stop-color:lightgreen" offset="1"/>
</linearGradient>
<filter id="shadowFilter" filterUnits="objectBoundingBox">
<!-- Takes the alpha channel (black outline of the text), blurs it and saves as 'blur' -->
<feGaussianBlur in="SourceAlpha" stdDeviation="2 2" result="blur"/>
<!-- Takes saved 'blur' and offsets it by 4 pixels, saves as 'offsetBlur' -->
<feOffset in="blur" dx="4" dy="4" result="offsetBlur"/>
<!-- Merges SourceGraphic (original image) and 'offsetBlur', putting the
former 'over' the latter, and using the merged result as the finished
image -->
<feComposite in="SourceGraphic" in2="offsetBlur" operator="over"/>
</filter>
</defs>
<g filter="url(#shadowFilter)" fill="url(#gradient)">
<text x="45%" y="50%" style="font-size:32pt; font-family:Verdana ; text-anchor: middle">
<xsl:value-of select="/module/@fullname"/>
</text>
<text x="55%" y="80%" style="font-size:10pt; font-family:Arial ; text-anchor: middle">
<xsl:value-of select="/module/description"/>
</text>
</g>
</svg>
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.