xref: /AOO41X/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl (revision 83137a03adbb58b5b3bdafefefa1e93de35e0011)
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 whereever 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
46   <xsl:include href="../layout.xsl"/>
47
48
49     <!-- =============================
50                   HTML BODY
51     ================================== -->
52
53     <xsl:template name="body">
54        <body>
55
56           <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
57
58            <xsl:call-template name="title"/>
59            <xsl:call-template name="toc"/>
60
61            </table>
62
63        </body>
64     </xsl:template>
65
66
67     <xsl:template name="toc">
68        <!--
69             @ pre toc html here
70        -->
71            <tr>
72                <td width="30" class="ccolor">&#160;
73                </td>
74                <td>
75
76        <!-- use this alternative if you do not need to use groups
77        (uncomment to use - and do not forget to comment the group
78        option above...)-->
79
80      <xsl:apply-templates select="/session/content/document"/>
81
82        <!--
83             @ post toc html here
84        -->
85                </td>
86            </tr>
87
88     </xsl:template>
89
90    <!-- also when using groups, in the end it comes
91    to this template, which is called for each document -->
92    <xsl:template match="document">
93        <p>
94            <xsl:apply-templates select="@icon"/>
95
96            <xsl:apply-templates select="@title"/>
97            <xsl:apply-templates select="@description"/>
98            <xsl:apply-templates select="@author"/>
99            <xsl:apply-templates select="@create-date"/>
100            <xsl:apply-templates select="@update-date"/>
101            <xsl:apply-templates select="@filename"/>
102            <xsl:apply-templates select="@format"/>
103            <xsl:apply-templates select="@format-icon"/>
104            <xsl:apply-templates select="@format-icon"/>
105        </p>
106
107        <xsl:if test="position() &lt; last()">
108            <hr/>
109        </xsl:if>
110
111    </xsl:template>
112
113     <xsl:template name="document-group">
114        <xsl:param name="group"/>
115
116        <!-- @ pre group code here -->
117
118        <!-- - - -->
119
120            <xsl:variable name="count" select="(position() - 1) * $group + 1"/>
121
122            <xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">
123
124                    <xsl:apply-templates select="."/>
125
126            </xsl:for-each>
127
128        <!-- @ post group code here -->
129
130        <!-- - - -->
131
132     </xsl:template>
133
134
135     <xsl:template name="title">
136        <!--
137          @ Pre title html code here
138        -->
139        <tr>
140            <td height="80" colspan="2" class="toctitle">
141
142                <xsl:value-of select="/session/general-info/@title"/>
143
144        <!--
145          @ Post title html code here
146        -->
147            </td>
148        </tr>
149     </xsl:template>
150
151</xsl:stylesheet>
152