1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Copyright 1999-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.
-->
<!-- Content Stylesheet for Site -->
## Defined variables
#set ($bodybg = "#ffffff")
#set ($bodyfg = "#000000")
#set ($bodylink = "#525D76")
#set ($pagebannerbg = "#ffffff")
#set ($pagebannerfg = "#625972")
#set ($bannerbg = "#726982")
#set ($bannerfg = "#ffffff")
#set ($subbannerbg = "#9289A2")
#set ($subbannerfg = "#ffffff")
#set ($tablethbg = "#039acc")
#set ($tabletdbg = "#a0ddf0")
<!-- start the processing -->
#document()
<!-- end the processing -->
## This is where the macro's live
#macro ( table $table)
<table>
#foreach ( $items in $table.getChildren() )
#if ($items.getName().equals("tr"))
#tr ($items)
#end
#end
</table>
#end
#macro ( tr $tr)
<tr>
#foreach ( $items in $tr.getChildren() )
#if ($items.getName().equals("td"))
#td ($items)
#elseif ($items.getName().equals("th"))
#th ($items)
#end
#end
</tr>
#end
#macro ( td $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
<td colspan="$!colspan" rowspan="$!rowspan" valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$value.getContent()
#else
#end
</font>
</td>
#end
#macro ( th $value)
#if ($value.getAttributeValue("colspan"))
#set ($colspan = $value.getAttributeValue("colspan"))
#end
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
<th colspan="$!colspan" rowspan="$!rowspan" valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$value.getContent()
#else
#end
</font>
</th>
#end
#macro ( projectanchor $name $value )
#if ($value.startsWith("http://"))
<a href="$value" target="_blank">$name</a>
#elseif($value.equals("#"))
<a name="$name">$name</a>
#else
<a href="$relativePath$value">$name</a>
#end
#end
#macro ( metaauthor $author $email )
<meta name="author" value="$author">
<meta name="email" value="$email">
#end
#macro ( image $value )
#if ($value.getAttributeValue("width"))
#set ($width=$value.getAttributeValue("width"))
#end
#if ($value.getAttributeValue("height"))
#set ($height=$value.getAttributeValue("height"))
#end
#if ($value.getAttributeValue("align"))
#set ($align=$value.getAttributeValue("align"))
#end
#if ($value.getAttributeValue("usemap"))
#set ($usemap=$value.getAttributeValue("usemap"))
#end
<img src="$relativePath$value.getAttributeValue("src")" width="$!width" height="$!height" align="$!align" usemap="$!usemap" />
#end
#macro ( source $value)
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>$escape.getText($value.getText())</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
#end
#macro ( subsection $subsection)
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="$subbannerbg">
<font color="$subbannerfg" face="arial,helvetica,sanserif">
<a name="$subsection.getAttributeValue("name")"><strong>$subsection.getAttributeValue("name")</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
#foreach ( $items in $subsection.getChildren() )
#if ($items.getName().equals("img"))
#image ($items)
#elseif ($items.getName().equals("source"))
#source ($items)
#elseif ($items.getName().equals("table"))
#table ($items)
#else
$items
#end
#end
</blockquote>
</td></tr>
<tr><td><br/></td></tr>
</table>
#end
#macro ( section $section)
<tr>
<td>
<table class="content" border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
<tr class="title" height="17" >
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
<td height="4" background="images/NavBarT.png"></td>
<td align="left"><img src="images/NavBarTR.png"></td>
</tr>
<tr>
<td background="images/NavBarLS.png" width="8"></td>
<td align="center" background="images/NavBarM.png">
#projectanchor($section.getAttributeValue("name") "#")
</td>
<td width="8" height="4" background="images/NavBarRS.png" ></td>
</tr>
<tr>
<td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
<td background="images/NavBarB.png"></td>
<td align="left"><img src="images/NavBarBR.png"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td background="images/ContentBoxLS.png" width="8"></td>
<td align="left">
#foreach ( $items in $section.getChildren() )
$items
#end
</td>
<td width="8" height="4" background="images/ContentBoxRS.png" >
</td>
</tr>
<tr>
<td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
<td background="images/ContentBoxB.png"></td>
<td align="left"><img src="images/ContentBoxBR.png"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
#end
#macro ( makeMenu )
#set ($menus = $project.getChild("body").getChildren("menu"))
#foreach ( $menu in $menus )
<tr class="navbarHead">
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="137">
<tbody>
<tr>
<td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
<td height="4" background="images/NavBarT.png"></td>
<td align="left"><img src="images/NavBarTR.png"></td>
</tr>
<tr>
<td background="images/NavBarLS.png" width="8"></td>
<td align="center" background="images/NavBarM.png">
$menu.getAttributeValue("name")
</td>
<td width="8" height="4"background="images/NavBarRS.png" ></td>
<tr>
<td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
<td background="images/NavBarB.png"></td>
<td align="left"><img src="images/NavBarBR.png"></td>
</tr>
</tbody>
</table>
</td>
<td width="6"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td background="images/leftSideGreyBorder.png" width="6" ></td>
<td bgcolor="#fafafa" width="124">
#foreach ( $item in $menu.getChildren() )
#set ($name = $item.getAttributeValue("name"))
#projectanchor($name $item.getAttributeValue("href"))<br>
#end</td>
<td background="images/rightSideGreyBorder.png" width="7"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
</tr>
#end
#end
#macro ( makeTabs )
##TODO Make this work!
#set ($tabs = $project.getChild("body").getChildren("tab"))
#foreach ($tab in $tabs)
<td width="64">
<table width="64" border="0" cellspacing="0" cellpadding="0">
<tr height="59"><td>
#set ($pos = $tab.getAttributeValue("position").concat("px"))
#set ($name =$tab.getAttributeValue("name"))
#set ($label = $tab.getAttributeValue("label"))
#set ($roll = $tab.getAttributeValue("rollover"))
#if ($name.equals($root.getChild("properties").getChild("tab").getText()))
#set ($label = $roll)
#end
<div style="width: 64px; height: 22px; position: absolute; left: $pos; top: 59px">
<a href='$tab.getAttributeValue("href")' onMouseover="return !showMenu(event, '$name');" class="History">
<img src='$label' width="64" height="22" border="0"
onMouseOver="this.src='$roll';" onMouseOut="this.src='$label';"></a>
</div>
</td></tr>
<tr><td>
<div class="menu" id='$name'
style="width: 65px; position:absolute; left:$pos; top: 81px; z-index:2 ; visibility:hidden; "
onmouseover="event.cancelBubble = true;">
<table border="0" cellspacing="0" cellpadding="0">
#foreach ( $item in $tab.getChildren() )
<tr><td>
#set ($label = $item.getAttributeValue("label"))
#set ($roll = $item.getAttributeValue("rollover"))
<a href='$item.getAttributeValue("href")'>
<img onMouseOver="this.src='$roll';"
onMouseOut="this.src='$label';" src="$label" border="0"></a>
</td></tr>
#end
</table>
</div>
</td></tr>
</table>
</td>
#end
#end
#macro (getProjectImage)
#set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
<td align="left">
<a href="$project.getAttributeValue("href")"><img src="$relativePath$logoString" alt="$project.getChild("logo").getText()" border="0" height="32" width="120"/></a>
</td>
#end
#macro (getBannerTitle)
#if ( $root.getChild("properties").getChild("bannertitle") )
#set ( $pageBanner = $root.getChild("properties").getChild("bannertitle") )
#else
#set ( $pageBanner = $root.getChild("properties").getChild("title").getText() )
#end
<td width="80%" align="left" valign="bottom" bgcolor="$pagebannerbg">
<font color="$pagebannerfg" size="+3" face="arial,helvetica,sanserif">
<b>$pageBanner</b>
</font>
</td>
#end
#macro (printMeta $metaElement)
<meta #set ($attribs = $metaElement.getAttributes())
#foreach ($a in $attribs) $a.getName()="$a.getValue()" #end />
#end
#macro (document)
<!-- ====================================================================== -->
<!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
<head>
<link rel="stylesheet" href="$relativePath/css/style.css"/>
<script src="DropMenu.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
#set ($authors = $root.getChild("properties").getChildren("author"))
#foreach ( $au in $authors )
#metaauthor ( $au.getText() $au.getAttributeValue("email") )
#end
#set ($metas = $root.getChildren("meta"))
## Parse meta directives such as
## <meta name="keyword" content="jakarta, java"/>
#foreach ($meta in $metas) #printMeta($meta) #end
## Support for <base> tags.
#if ($root.getChild("properties").getChild("base"))
#set ($url = $root.getChild("properties").getChild("base").getAttributeValue("href"))
<base href="$url"/>
#end
<title>$project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()</title>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table class="topbar" id="topbar" border="0" width="100%" cellspacing="0" cellpadding="0" height="94" background="images/TopBarBG.png">
<tr>
<td width="244">
<img src="images/Logo.png" width="244" height="94" alt=""></td>
##makeTabs()
<td align="right">
<img src="http://incubator.apache.org/tuscany/images/apache-incubator-logo.png" style="padding: 5px;"> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="4">
<tr>
<!-- LEFT SIDE NAVIGATION -->
<td width="141" valign="top" nowrap="true" >
<table width="100%" class="navbar" border="0" cellpadding="0" cellspacing="0" align="center" height="100%" >
#makeMenu()
</table>
</td>
<!-- CONTENT! -->
<td width="100%" align="left" valign="top">
<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
#set ($allSections = $root.getChild("body").getChildren("section"))
#foreach ( $section in $allSections )
#section ($section)
#end
</table>
</td>
</table>
<div class="copyright">
Copyright � 2006, The Apache Software Foundation
Apache Tuscany is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Web Services PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
</div>
</body>
</html>
#end
|