1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22<!-- =================================================
23
24This template is a skeleton for single level TOC pages
25Do not overwrite this ! copy it and complete the missing
26code.
27
28I use the @ character wherever there is a missing code, so
29you can use a simple find to navigate and find the
30places...
31
32====================================================== -->
33
34<xsl:stylesheet version="1.0"
35   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
36	xmlns="http://www.w3.org/1999/xhtml">
37
38	<xsl:output method               = "html"
39                media-type           = "text/html"
40                indent               = "yes"
41                doctype-public       = "-//W3C//DTD HTML 4.0 Transitional//EN"
42                omit-xml-declaration = "yes"
43                standalone           = "yes" />
44
45		<xsl:include href="../layout.xsl"/>
46
47
48	 <!-- =============================
49	               HTML BODY
50	 ================================== -->
51
52	 <xsl:template name="body">
53	 	<xsl:call-template name="toc"/>
54	 </xsl:template>
55
56
57	 <xsl:template name="toc">
58	 	<xsl:variable name="doc-count" select="count(/session/content/document)"/>
59
60		<table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor">
61
62  		<tr>
63	    <td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle">
64	      <xsl:value-of select="/session/general-info/@title"/>
65	    </td>
66  		</tr>
67
68		<!-- use this alternative if you do not need to use groups
69		(uncomment to use - and do not forget to comment the group
70		option above...)-->
71
72		<tr>
73			<xsl:apply-templates select="/session/content/document"/>
74			<td colspan="2"></td>
75		</tr>
76
77		</table>
78
79		<!--
80		     @ post toc html here
81		-->
82
83		<p class="colback"> </p>
84
85	 </xsl:template>
86
87	<!-- also when using groups, in the end it comes
88	to this template, which is called for each document -->
89	<xsl:template match="document">
90
91 		     <!-- image cell -->
92
93    			<td width="50" height="200" align="center">
94      			<p>
95				  		<xsl:apply-templates select="@icon"/>
96		   		</p>
97				</td>
98
99	  		<td width="200"><p>
100
101	  		<xsl:apply-templates select="@title">
102				<xsl:with-param name="target" select="'mainframe'"/>
103			</xsl:apply-templates>
104			<xsl:apply-templates select="@description"/>
105			<xsl:apply-templates select="@author"/>
106			<xsl:apply-templates select="@create-date"/>
107			<xsl:apply-templates select="@update-date"/>
108			<xsl:apply-templates select="@filename"/>
109			<xsl:apply-templates select="@format"/>
110			<xsl:apply-templates select="@pages"/>
111			<xsl:apply-templates select="@size"/>
112
113		</p> </td>
114
115	</xsl:template>
116
117
118
119</xsl:stylesheet>
120