3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. 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.
18 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
19 <!-- This is not used by Forrest but makes it possible to debug the
20 stylesheet in standalone editors -->
21 <xsl:output method = "text" omit-xml-declaration="yes" />
23 If the skin doesn't override this, at least aural styles
24 and extra-css are present
26 <xsl:template match="skinconfig">
27 <xsl:call-template name="aural"/>
28 <xsl:call-template name="a-external"/>
29 <xsl:apply-templates/>
30 <xsl:call-template name="add-extra-css"/>
32 <xsl:template match="colors">
33 <xsl:apply-templates/>
35 <xsl:template name="aural">
37 /* ==================== aural ============================ */
40 h1, h2, h3, h4, h5, h6 { voice-family: paul, male; stress: 20; richness: 90 }
41 h1 { pitch: x-low; pitch-range: 90 }
42 h2 { pitch: x-low; pitch-range: 80 }
43 h3 { pitch: low; pitch-range: 70 }
44 h4 { pitch: medium; pitch-range: 60 }
45 h5 { pitch: medium; pitch-range: 50 }
46 h6 { pitch: medium; pitch-range: 40 }
47 li, dt, dd { pitch: medium; richness: 60 }
49 pre, code, tt { pitch: medium; pitch-range: 0; stress: 0; richness: 80 }
50 em { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
51 strong { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
52 dfn { pitch: high; pitch-range: 60; stress: 60 }
53 s, strike { richness: 0 }
54 i { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
55 b { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
58 :link { voice-family: harry, male }
59 :visited { voice-family: betty, female }
60 :active { voice-family: betty, female; pitch-range: 80; pitch: x-high }
63 <xsl:template name="a-external">
65 padding: 0 20px 0px 0px;
67 background-repeat: no-repeat;
68 background-position: center right;
69 background-image: url(images/external-link.gif);
72 <xsl:template name="add-extra-css">
73 <xsl:text>/* extra-css */</xsl:text>
74 <xsl:value-of select="extra-css"/>
76 <xsl:template match="*"></xsl:template>
77 <xsl:template match="text()"></xsl:template>