xref: /AOO41X/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl (revision 3e02b54d22df509acb089ca331193ac1c61a197b)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*3e02b54dSAndrew Rist<!--***********************************************************
3*3e02b54dSAndrew Rist *
4*3e02b54dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
5*3e02b54dSAndrew Rist * or more contributor license agreements.  See the NOTICE file
6*3e02b54dSAndrew Rist * distributed with this work for additional information
7*3e02b54dSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
8*3e02b54dSAndrew Rist * to you under the Apache License, Version 2.0 (the
9*3e02b54dSAndrew Rist * "License"); you may not use this file except in compliance
10*3e02b54dSAndrew Rist * with the License.  You may obtain a copy of the License at
11*3e02b54dSAndrew Rist *
12*3e02b54dSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
13*3e02b54dSAndrew Rist *
14*3e02b54dSAndrew Rist * Unless required by applicable law or agreed to in writing,
15*3e02b54dSAndrew Rist * software distributed under the License is distributed on an
16*3e02b54dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*3e02b54dSAndrew Rist * KIND, either express or implied.  See the License for the
18*3e02b54dSAndrew Rist * specific language governing permissions and limitations
19*3e02b54dSAndrew Rist * under the License.
20*3e02b54dSAndrew Rist *
21*3e02b54dSAndrew Rist ***********************************************************-->
22cdf0e10cSrcweir<!-- =================================================
23cdf0e10cSrcweir
24cdf0e10cSrcweirThis template is a skeleton for single level TOC pages
25cdf0e10cSrcweirDo not overwrite this ! copy it and complete the missing
26cdf0e10cSrcweircode.
27cdf0e10cSrcweir
28cdf0e10cSrcweirI use the @ character whereever there is a missing code, so
29cdf0e10cSrcweiryou can use a simple find to navigate and find the
30cdf0e10cSrcweirplaces...
31cdf0e10cSrcweir
32cdf0e10cSrcweir====================================================== -->
33cdf0e10cSrcweir
34cdf0e10cSrcweir<xsl:stylesheet version="1.0"
35cdf0e10cSrcweir   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
36cdf0e10cSrcweir	xmlns="http://www.w3.org/1999/xhtml">
37cdf0e10cSrcweir
38cdf0e10cSrcweir	<xsl:output method               = "html"
39cdf0e10cSrcweir                media-type           = "text/html"
40cdf0e10cSrcweir                indent               = "yes"
41cdf0e10cSrcweir                doctype-public       = "-//W3C//DTD HTML 4.0 Transitional//EN"
42cdf0e10cSrcweir                omit-xml-declaration = "yes"
43cdf0e10cSrcweir                standalone           = "yes" />
44cdf0e10cSrcweir
45cdf0e10cSrcweir
46cdf0e10cSrcweir   <xsl:include href="../layout.xsl"/>
47cdf0e10cSrcweir
48cdf0e10cSrcweir
49cdf0e10cSrcweir	 <!-- =============================
50cdf0e10cSrcweir	               HTML BODY
51cdf0e10cSrcweir	 ================================== -->
52cdf0e10cSrcweir
53cdf0e10cSrcweir	 <xsl:template name="body">
54cdf0e10cSrcweir	 	<body>
55cdf0e10cSrcweir
56cdf0e10cSrcweir	 	   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
57cdf0e10cSrcweir
58cdf0e10cSrcweir		 	<xsl:call-template name="title"/>
59cdf0e10cSrcweir		 	<xsl:call-template name="toc"/>
60cdf0e10cSrcweir
61cdf0e10cSrcweir		 	</table>
62cdf0e10cSrcweir
63cdf0e10cSrcweir		</body>
64cdf0e10cSrcweir	 </xsl:template>
65cdf0e10cSrcweir
66cdf0e10cSrcweir
67cdf0e10cSrcweir	 <xsl:template name="toc">
68cdf0e10cSrcweir		<!--
69cdf0e10cSrcweir		     @ pre toc html here
70cdf0e10cSrcweir		-->
71cdf0e10cSrcweir			<tr>
72cdf0e10cSrcweir    			<td width="30" class="ccolor">&#160;
73cdf0e10cSrcweir    			</td>
74cdf0e10cSrcweir    			<td>
75cdf0e10cSrcweir
76cdf0e10cSrcweir		<!-- use this alternative if you do not need to use groups
77cdf0e10cSrcweir		(uncomment to use - and do not forget to comment the group
78cdf0e10cSrcweir		option above...)-->
79cdf0e10cSrcweir
80cdf0e10cSrcweir	  <xsl:apply-templates select="/session/content/document"/>
81cdf0e10cSrcweir
82cdf0e10cSrcweir		<!--
83cdf0e10cSrcweir		     @ post toc html here
84cdf0e10cSrcweir		-->
85cdf0e10cSrcweir				</td>
86cdf0e10cSrcweir			</tr>
87cdf0e10cSrcweir
88cdf0e10cSrcweir	 </xsl:template>
89cdf0e10cSrcweir
90cdf0e10cSrcweir	<!-- also when using groups, in the end it comes
91cdf0e10cSrcweir	to this template, which is called for each document -->
92cdf0e10cSrcweir	<xsl:template match="document">
93cdf0e10cSrcweir		<p>
94cdf0e10cSrcweir			<xsl:apply-templates select="@icon"/>
95cdf0e10cSrcweir
96cdf0e10cSrcweir			<xsl:apply-templates select="@title"/>
97cdf0e10cSrcweir			<xsl:apply-templates select="@description"/>
98cdf0e10cSrcweir			<xsl:apply-templates select="@author"/>
99cdf0e10cSrcweir			<xsl:apply-templates select="@create-date"/>
100cdf0e10cSrcweir			<xsl:apply-templates select="@update-date"/>
101cdf0e10cSrcweir			<xsl:apply-templates select="@filename"/>
102cdf0e10cSrcweir			<xsl:apply-templates select="@format"/>
103cdf0e10cSrcweir			<xsl:apply-templates select="@format-icon"/>
104cdf0e10cSrcweir			<xsl:apply-templates select="@format-icon"/>
105cdf0e10cSrcweir		</p>
106cdf0e10cSrcweir
107cdf0e10cSrcweir		<xsl:if test="position() &lt; last()">
108cdf0e10cSrcweir			<hr/>
109cdf0e10cSrcweir		</xsl:if>
110cdf0e10cSrcweir
111cdf0e10cSrcweir	</xsl:template>
112cdf0e10cSrcweir
113cdf0e10cSrcweir	 <xsl:template name="document-group">
114cdf0e10cSrcweir	 	<xsl:param name="group"/>
115cdf0e10cSrcweir
116cdf0e10cSrcweir	 	<!-- @ pre group code here -->
117cdf0e10cSrcweir
118cdf0e10cSrcweir	 	<!-- - - -->
119cdf0e10cSrcweir
120cdf0e10cSrcweir		 	<xsl:variable name="count" select="(position() - 1) * $group + 1"/>
121cdf0e10cSrcweir
122cdf0e10cSrcweir		 	<xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">
123cdf0e10cSrcweir
124cdf0e10cSrcweir					<xsl:apply-templates select="."/>
125cdf0e10cSrcweir
126cdf0e10cSrcweir		 	</xsl:for-each>
127cdf0e10cSrcweir
128cdf0e10cSrcweir	 	<!-- @ post group code here -->
129cdf0e10cSrcweir
130cdf0e10cSrcweir	 	<!-- - - -->
131cdf0e10cSrcweir
132cdf0e10cSrcweir	 </xsl:template>
133cdf0e10cSrcweir
134cdf0e10cSrcweir
135cdf0e10cSrcweir	 <xsl:template name="title">
136cdf0e10cSrcweir	    <!--
137cdf0e10cSrcweir	      @ Pre title html code here
138cdf0e10cSrcweir	    -->
139cdf0e10cSrcweir  		<tr>
140cdf0e10cSrcweir    		<td height="80" colspan="2" class="toctitle">
141cdf0e10cSrcweir
142cdf0e10cSrcweir				<xsl:value-of select="/session/general-info/@title"/>
143cdf0e10cSrcweir
144cdf0e10cSrcweir	    <!--
145cdf0e10cSrcweir	      @ Post title html code here
146cdf0e10cSrcweir	    -->
147cdf0e10cSrcweir	    	</td>
148cdf0e10cSrcweir	    </tr>
149cdf0e10cSrcweir	 </xsl:template>
150cdf0e10cSrcweir
151cdf0e10cSrcweir</xsl:stylesheet>
152