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 | |
---|
19 | <xsl:template match="skinconfig"> |
---|
20 | |
---|
21 | <xsl:if test="not(colors)"> |
---|
22 | <colors> |
---|
23 | <!-- Lenya --> |
---|
24 | <color name="header" value="#ffffff"/> |
---|
25 | |
---|
26 | <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/> |
---|
27 | <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/> |
---|
28 | <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/> |
---|
29 | <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/> |
---|
30 | |
---|
31 | <color name="heading" value="#E5E4D9"/> |
---|
32 | <color name="subheading" value="#E5E4D9"/> |
---|
33 | <color name="published" value="#4C6C8F" font="#FFFFFF"/> |
---|
34 | <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/> |
---|
35 | <color name="navstrip" value="#E5E4D9" font="#000000"/> |
---|
36 | |
---|
37 | <color name="toolbox" value="#CFDCED" font="#000000"/> |
---|
38 | |
---|
39 | <color name="border" value="#999999"/> |
---|
40 | <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" /> |
---|
41 | <color name="menuheading" value="#cfdced" font="#000000" /> |
---|
42 | <color name="searchbox" value="#E5E4D9" font="#000000"/> |
---|
43 | |
---|
44 | <color name="dialog" value="#E5E4D9" font="#000000"/> |
---|
45 | <color name="body" value="#ffffff" /> |
---|
46 | |
---|
47 | <color name="table" value="#ccc"/> |
---|
48 | <color name="table-cell" value="#ffffff"/> |
---|
49 | <color name="highlight" value="#ffff00"/> |
---|
50 | <color name="fixme" value="#cc6600"/> |
---|
51 | <color name="note" value="#006699"/> |
---|
52 | <color name="warning" value="#990000"/> |
---|
53 | <color name="code" value="#003366"/> |
---|
54 | |
---|
55 | <color name="footer" value="#E5E4D9"/> |
---|
56 | </colors> |
---|
57 | </xsl:if> |
---|
58 | |
---|
59 | <xsl:copy> |
---|
60 | <xsl:copy-of select="@*"/> |
---|
61 | <xsl:copy-of select="node()[not(name(.)='colors')]"/> |
---|
62 | <xsl:apply-templates select="colors"/> |
---|
63 | </xsl:copy> |
---|
64 | |
---|
65 | </xsl:template> |
---|
66 | |
---|
67 | <xsl:template match="colors"> |
---|
68 | <xsl:copy> |
---|
69 | <xsl:copy-of select="@*"/> |
---|
70 | <xsl:copy-of select="node()[name(.)='color']"/> |
---|
71 | |
---|
72 | <xsl:if test="not(color[@name='header'])"> |
---|
73 | <color name="header" value="#FFFFFF"/> |
---|
74 | </xsl:if> |
---|
75 | <xsl:if test="not(color[@name='tab-selected'])"> |
---|
76 | <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/> |
---|
77 | </xsl:if> |
---|
78 | <xsl:if test="not(color[@name='tab-unselected'])"> |
---|
79 | <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/> |
---|
80 | </xsl:if> |
---|
81 | <xsl:if test="not(color[@name='subtab-selected'])"> |
---|
82 | <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/> |
---|
83 | </xsl:if> |
---|
84 | <xsl:if test="not(color[@name='subtab-unselected'])"> |
---|
85 | <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/> |
---|
86 | </xsl:if> |
---|
87 | <xsl:if test="not(color[@name='heading'])"> |
---|
88 | <color name="heading" value="#E5E4D9"/> |
---|
89 | </xsl:if> |
---|
90 | <xsl:if test="not(color[@name='subheading'])"> |
---|
91 | <color name="subheading" value="#E5E4D9"/> |
---|
92 | </xsl:if> |
---|
93 | <xsl:if test="not(color[@name='published'])"> |
---|
94 | <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/> |
---|
95 | </xsl:if> |
---|
96 | <xsl:if test="not(color[@name='published'])"> |
---|
97 | <color name="published" value="#4C6C8F" font="#FFFFFF"/> |
---|
98 | </xsl:if> |
---|
99 | <xsl:if test="not(color[@name='navstrip'])"> |
---|
100 | <color name="navstrip" value="#E5E4D9" font="#000000"/> |
---|
101 | </xsl:if> |
---|
102 | <xsl:if test="not(color[@name='toolbox'])"> |
---|
103 | <color name="toolbox" value="#CFDCED" font="#000000"/> |
---|
104 | </xsl:if> |
---|
105 | <xsl:if test="not(color[@name='border'])"> |
---|
106 | <color name="border" value="#999999"/> |
---|
107 | </xsl:if> |
---|
108 | <xsl:if test="not(color[@name='menu'])"> |
---|
109 | <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" /> |
---|
110 | </xsl:if> |
---|
111 | <xsl:if test="not(color[@name='menuheading'])"> |
---|
112 | <color name="menuheading" value="#cfdced" font="#000000" /> |
---|
113 | </xsl:if> |
---|
114 | <xsl:if test="not(color[@name='searchbox'])"> |
---|
115 | <color name="searchbox" value="#E5E4D9" font="#000000"/> |
---|
116 | </xsl:if> |
---|
117 | <xsl:if test="not(color[@name='dialog'])"> |
---|
118 | <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/> |
---|
119 | </xsl:if> |
---|
120 | <xsl:if test="not(color[@name='body'])"> |
---|
121 | <color name="body" value="#ffffff" /> |
---|
122 | </xsl:if> |
---|
123 | <xsl:if test="not(color[@name='table'])"> |
---|
124 | <color name="table" value="#ccc"/> |
---|
125 | </xsl:if> |
---|
126 | <xsl:if test="not(color[@name='table-cell'])"> |
---|
127 | <color name="table-cell" value="#ffffff"/> |
---|
128 | </xsl:if> |
---|
129 | <xsl:if test="not(color[@name='highlight'])"> |
---|
130 | <color name="highlight" value="#ffff00"/> |
---|
131 | </xsl:if> |
---|
132 | <xsl:if test="not(color[@name='fixme'])"> |
---|
133 | <color name="fixme" value="#c60"/> |
---|
134 | </xsl:if> |
---|
135 | <xsl:if test="not(color[@name='note'])"> |
---|
136 | <color name="note" value="#069"/> |
---|
137 | </xsl:if> |
---|
138 | <xsl:if test="not(color[@name='warning'])"> |
---|
139 | <color name="warning" value="#900"/> |
---|
140 | </xsl:if> |
---|
141 | <xsl:if test="not(color[@name='code'])"> |
---|
142 | <color name="code" value="#a5b6c6"/> |
---|
143 | </xsl:if> |
---|
144 | <xsl:if test="not(color[@name='footer'])"> |
---|
145 | <color name="footer" value="#E5E4D9"/> |
---|
146 | </xsl:if> |
---|
147 | |
---|
148 | </xsl:copy> |
---|
149 | |
---|
150 | </xsl:template> |
---|
151 | |
---|
152 | </xsl:stylesheet> |
---|