You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by to...@apache.org on 2005/01/27 11:14:39 UTC
cvs commit: ws-site/targets/axis/skin/images built-with-forrest-button.png corner-imports.svg.xslt dc.svg.xslt external-link.gif fix.jpg forrest-credit-logo.png hack.jpg help_logo.gif icon_alert.gif poddoc.png poddoc.svg.xslt rc.svg.xslt README.txt rss.png printer.gif
toshi 2005/01/27 02:14:39
Modified: targets/axis/skin/images printer.gif
Added: targets/axis/skin/images built-with-forrest-button.png
corner-imports.svg.xslt dc.svg.xslt
external-link.gif fix.jpg forrest-credit-logo.png
hack.jpg help_logo.gif icon_alert.gif poddoc.png
poddoc.svg.xslt rc.svg.xslt README.txt rss.png
Log:
Migration for Forrest 0.6
Revision Changes Path
1.4 +4 -5 ws-site/targets/axis/skin/images/printer.gif
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/built-with-forrest-button.png
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/corner-imports.svg.xslt
Index: corner-imports.svg.xslt
===================================================================
<?xml version="1.0"?>
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed 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.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="orientation-tb"/>
<xsl:param name="orientation-lr"/>
<xsl:param name="size"/>
<xsl:param name="bg-color-name"/>
<xsl:param name="stroke-color-name"/>
<xsl:param name="fg-color-name"/>
<!-- if not all colors are present, don't even try to render the corners -->
<xsl:variable name="isize"><xsl:choose>
<xsl:when test="$bg-color-name and $stroke-color-name and $fg-color-name"><xsl:value-of select="$size"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:variable name="smallersize" select="number($isize)-1"/>
<xsl:variable name="biggersize" select="number($isize)+1"/>
<xsl:variable name="bg"><xsl:if test="skinconfig/colors/color[@name=$bg-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$bg-color-name]/@value"/>;</xsl:if></xsl:variable>
<xsl:variable name="fill"><xsl:if test="skinconfig/colors/color[@name=$stroke-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$stroke-color-name]/@value"/>;</xsl:if></xsl:variable>
<xsl:variable name="stroke"><xsl:if test="skinconfig/colors/color[@name=$fg-color-name]">stroke:<xsl:value-of select="skinconfig/colors/color[@name=$fg-color-name]/@value"/>;</xsl:if></xsl:variable>
<xsl:template match="skinconfig">
<svg width="{$isize}" height="{$isize}">
<!-- background-->
<rect x="-1" y="-1" width="{$biggersize}" height="{$biggersize}" style="{$bg}stroke-width:0"/>
<!-- 0,0 0,-4 4,0 4,-4-->
<xsl:variable name="flip-tb-scale">
<xsl:choose>
<xsl:when test="$orientation-tb='t'">1</xsl:when>
<xsl:otherwise>-1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="flip-lr-scale">
<xsl:choose>
<xsl:when test="$orientation-lr='l'">1</xsl:when>
<xsl:otherwise>-1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="flip-tb-translate">
<xsl:choose>
<xsl:when test="$orientation-tb='t'">0</xsl:when>
<xsl:otherwise>-<xsl:value-of select="$isize" /></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="flip-lr-translate">
<xsl:choose>
<xsl:when test="$orientation-lr='l'">0</xsl:when>
<xsl:otherwise>-<xsl:value-of select="$isize" /></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- flip transform -->
<g transform="scale({$flip-lr-scale},{$flip-tb-scale}) translate({$flip-lr-translate}, {$flip-tb-translate})">
<xsl:call-template name="figure" />
</g>
</svg>
</xsl:template>
<xsl:template name="figure">
<!-- Just change shape here -->
<g transform="translate(0.5 0.5)">
<ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"
style="{$fill}{$stroke}stroke-width:1"/>
</g>
<!-- end -->
</xsl:template>
<xsl:template match="*"></xsl:template>
<xsl:template match="text()"></xsl:template>
</xsl:stylesheet>
1.1 ws-site/targets/axis/skin/images/dc.svg.xslt
Index: dc.svg.xslt
===================================================================
<?xml version="1.0"?>
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed 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.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="corner-imports.svg.xslt" />
<!-- Diagonal 45 degrees corner -->
<xsl:template name="figure">
<xsl:variable name="biggersize" select="number($size)+number($size)"/>
<g transform="translate(0 0.5)">
<polygon points="0,{$size} {$size},0 {$biggersize},0 {$biggersize},{$biggersize} 0,{$biggersize}"
style="{$fill}{$stroke}stroke-width:1"/>
</g>
</xsl:template>
</xsl:stylesheet>
1.1 ws-site/targets/axis/skin/images/external-link.gif
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/fix.jpg
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/forrest-credit-logo.png
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/hack.jpg
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/help_logo.gif
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/icon_alert.gif
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/poddoc.png
<<Binary file>>
1.1 ws-site/targets/axis/skin/images/poddoc.svg.xslt
Index: poddoc.svg.xslt
===================================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed 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.
-->
<svg width="20pt" height="20pt"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs
id="defs550">
<linearGradient id="gray2white">
<stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>
<stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>
</linearGradient>
<linearGradient id="pageshade" xlink:href="#gray2white"
x1="0.95" y1="0.95"
x2="0.40" y2="0.20"
gradientUnits="objectBoundingBox" spreadMethod="pad" />
<path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>
</defs>
<g transform="scale(0.08)">
<g transform="translate(40, 0)">
<rect width="230" height="300" x="0" y="0"
style="fill:url(#pageshade);fill-rule:evenodd;
stroke:#000000;stroke-width:1.25;"/>
<g transform="translate(15, 60)">
<use xlink:href="#hr" x="0" y="0"/>
<use xlink:href="#hr" x="0" y="60"/>
<use xlink:href="#hr" x="0" y="120"/>
<use xlink:href="#hr" x="0" y="180"/>
</g>
</g>
<g transform="translate(0,70),scale(1.1,1.6)">
<rect width="200" height="100" x="0" y="0"
style="fill:#ff0000;fill-rule:evenodd;
stroke:#000000;stroke-width:2.33903;"/>
<text x="20" y="75"
style="stroke:#ffffff;stroke-width:1.0;
font-size:72;font-weight:normal;fill:#ffffff;
font-family:Arial;text-anchor:start;">POD</text>
</g>
</g>
</svg>
1.1 ws-site/targets/axis/skin/images/rc.svg.xslt
Index: rc.svg.xslt
===================================================================
<?xml version="1.0"?>
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed 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.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="corner-imports.svg.xslt" />
<!-- Rounded corner -->
<xsl:template name="figure">
<g transform="translate(0.5 0.5)">
<ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"
style="{$fill}{$stroke}stroke-width:1"/>
</g>
</xsl:template>
</xsl:stylesheet>
1.1 ws-site/targets/axis/skin/images/README.txt
Index: README.txt
===================================================================
This directory is currently useless, as the sitemap only looks in
skins/{forrest:skin}, so files must be kept in synch manually until this is
fixed.
1.1 ws-site/targets/axis/skin/images/rss.png
<<Binary file>>