source: proiecte/swift/trunk/lib/hoard-371/doc/skin/images/dc.svg.xslt @ 176

Last change on this file since 176 was 176, checked in by (none), 14 years ago
  • imported repo from "guagal"
File size: 1.2 KB
Line 
1<?xml version="1.0"?>
2<!--
3  Copyright 2002-2004 The Apache Software Foundation
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16-->
17<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
18  <xsl:import href="corner-imports.svg.xslt" />
19 
20  <!-- Diagonal 45 degrees corner -->
21  <xsl:template name="figure">
22        <xsl:variable name="biggersize" select="number($size)+number($size)"/>     
23                <g transform="translate(0 0.5)">
24           <polygon points="0,{$size} {$size},0 {$biggersize},0 {$biggersize},{$biggersize} 0,{$biggersize}"
25                    style="{$fill}{$stroke}stroke-width:1"/>
26                </g>
27  </xsl:template>
28     
29</xsl:stylesheet>
30
Note: See TracBrowser for help on using the repository browser.