1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
21e519d8dSAndrew Rist<!--***********************************************************
31e519d8dSAndrew Rist *
41e519d8dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
51e519d8dSAndrew Rist * or more contributor license agreements.  See the NOTICE file
61e519d8dSAndrew Rist * distributed with this work for additional information
71e519d8dSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
81e519d8dSAndrew Rist * to you under the Apache License, Version 2.0 (the
91e519d8dSAndrew Rist * "License"); you may not use this file except in compliance
101e519d8dSAndrew Rist * with the License.  You may obtain a copy of the License at
111e519d8dSAndrew Rist *
121e519d8dSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
131e519d8dSAndrew Rist *
141e519d8dSAndrew Rist * Unless required by applicable law or agreed to in writing,
151e519d8dSAndrew Rist * software distributed under the License is distributed on an
161e519d8dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
171e519d8dSAndrew Rist * KIND, either express or implied.  See the License for the
181e519d8dSAndrew Rist * specific language governing permissions and limitations
191e519d8dSAndrew Rist * under the License.
201e519d8dSAndrew Rist *
211e519d8dSAndrew Rist ***********************************************************-->
221e519d8dSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir<!-- =================================================
25cdf0e10cSrcweir
26cdf0e10cSrcweirThis template is a skeleton for single level TOC pages
27cdf0e10cSrcweirDo not overwrite this ! copy it and complete the missing
28cdf0e10cSrcweircode.
29cdf0e10cSrcweir
30cdf0e10cSrcweirI use the @ character whereever there is a missing code, so
31cdf0e10cSrcweiryou can use a simple find to navigate and find the
32cdf0e10cSrcweirplaces...
33cdf0e10cSrcweir
34cdf0e10cSrcweir====================================================== -->
35cdf0e10cSrcweir
36cdf0e10cSrcweir<xsl:stylesheet version="1.0"
37cdf0e10cSrcweir   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
38cdf0e10cSrcweir	xmlns="http://www.w3.org/1999/xhtml">
39cdf0e10cSrcweir
40cdf0e10cSrcweir	<xsl:output method               = "html"
41cdf0e10cSrcweir                media-type           = "text/html"
42cdf0e10cSrcweir                indent               = "yes"
43cdf0e10cSrcweir                doctype-public       = "-//W3C//DTD HTML 4.0 Transitional//EN"
44cdf0e10cSrcweir                omit-xml-declaration = "yes"
45cdf0e10cSrcweir                standalone           = "yes" />
46cdf0e10cSrcweir
47cdf0e10cSrcweir	 <!-- =============================
48cdf0e10cSrcweir	               ROOT
49cdf0e10cSrcweir	 ================================== -->
50cdf0e10cSrcweir
51cdf0e10cSrcweir
52cdf0e10cSrcweir    <xsl:template  match="/">
53cdf0e10cSrcweir      	<html>
54cdf0e10cSrcweir				   <xsl:call-template name="head"/>
55cdf0e10cSrcweir			      <xsl:call-template name="body"/>
56cdf0e10cSrcweir		   </html>
57cdf0e10cSrcweir	 </xsl:template>
58cdf0e10cSrcweir
59cdf0e10cSrcweir
60cdf0e10cSrcweir	 <!-- =============================
61cdf0e10cSrcweir	         Document properties
62cdf0e10cSrcweir
63cdf0e10cSrcweir	 This section contains templates which
64cdf0e10cSrcweir	 give the document properties...
65cdf0e10cSrcweir
66cdf0e10cSrcweir	 ================================== -->
67cdf0e10cSrcweir
68cdf0e10cSrcweir	 <!-- this tempaltes gives the
69cdf0e10cSrcweir	 relative href of the document. To use
70cdf0e10cSrcweir	 with the <a href="..."> attribute-->
71cdf0e10cSrcweir
72cdf0e10cSrcweir
73cdf0e10cSrcweir	 <xsl:template match="document" mode="href">
74cdf0e10cSrcweir	   <xsl:value-of select="concat(../@directory,'/')"/>
75cdf0e10cSrcweir	   <xsl:if test="@dir">
76cdf0e10cSrcweir	     <xsl:value-of select="concat(@dir,'/')"/>
77cdf0e10cSrcweir	   </xsl:if>
78cdf0e10cSrcweir	   <xsl:value-of select="@fn"/>
79cdf0e10cSrcweir	 </xsl:template>
80cdf0e10cSrcweir
81cdf0e10cSrcweir
82cdf0e10cSrcweir	<xsl:template match="document/@title">
83cdf0e10cSrcweir	 	<xsl:param name="target" select="''"/>
84cdf0e10cSrcweir
85cdf0e10cSrcweir	 	<span class="doctitle">
86cdf0e10cSrcweir	 		<a>
87cdf0e10cSrcweir	 		<xsl:attribute name="href">
88cdf0e10cSrcweir				<xsl:apply-templates select=".." mode="href"/>
89cdf0e10cSrcweir			</xsl:attribute>
90cdf0e10cSrcweir
91cdf0e10cSrcweir			<xsl:if test=" $target != ''">
92cdf0e10cSrcweir				<xsl:attribute name="target">
93cdf0e10cSrcweir					<xsl:value-of select="$target"/>
94cdf0e10cSrcweir				</xsl:attribute>
95cdf0e10cSrcweir			</xsl:if>
96cdf0e10cSrcweir
97cdf0e10cSrcweir			<xsl:value-of select="."/>
98cdf0e10cSrcweir			</a>
99cdf0e10cSrcweir	 	</span>
100cdf0e10cSrcweir	 	<br/>
101cdf0e10cSrcweir	 </xsl:template>
102cdf0e10cSrcweir
103cdf0e10cSrcweir
104cdf0e10cSrcweir	 <xsl:template match="document/@description">
105cdf0e10cSrcweir	 	<span class="docdescription">
106cdf0e10cSrcweir	 		<xsl:value-of select="."/>
107cdf0e10cSrcweir	 	</span>
108cdf0e10cSrcweir	 	<br/>
109cdf0e10cSrcweir	 </xsl:template>
110cdf0e10cSrcweir
111cdf0e10cSrcweir
112cdf0e10cSrcweir	 <xsl:template match="document/@author">
113cdf0e10cSrcweir	 	<span class="docauthor">
114cdf0e10cSrcweir	 		<xsl:value-of select="."/>
115cdf0e10cSrcweir	 	</span>
116cdf0e10cSrcweir	 	<br/>
117cdf0e10cSrcweir	 </xsl:template>
118cdf0e10cSrcweir
119cdf0e10cSrcweir
120cdf0e10cSrcweir	 <xsl:template match="document/@create-date">
121cdf0e10cSrcweir	 	<span class="doccreationdate">
122cdf0e10cSrcweir	 		<xsl:value-of select="."/>
123cdf0e10cSrcweir	 	</span>
124cdf0e10cSrcweir	 	<br/>
125cdf0e10cSrcweir	 </xsl:template>
126cdf0e10cSrcweir
127cdf0e10cSrcweir
128cdf0e10cSrcweir	 <xsl:template match="document/@update-date">
129*f155a093SAndrea Pescetti	 	<span class="doclastchangeddate">
130cdf0e10cSrcweir	 		<xsl:value-of select="."/>
131cdf0e10cSrcweir	 	</span>
132cdf0e10cSrcweir	 	<br/>
133cdf0e10cSrcweir	 </xsl:template>
134cdf0e10cSrcweir
135cdf0e10cSrcweir
136cdf0e10cSrcweir	 <xsl:template match="document/@filename">
137cdf0e10cSrcweir	 	<span class="docfilename">
138cdf0e10cSrcweir	 		<xsl:value-of select="."/>
139cdf0e10cSrcweir	 	</span>
140cdf0e10cSrcweir	 	<br/>
141cdf0e10cSrcweir	 </xsl:template>
142cdf0e10cSrcweir
143cdf0e10cSrcweir
144cdf0e10cSrcweir	 <xsl:template match="document/@format">
145cdf0e10cSrcweir	 	<span class="docfileformatinfo">
146cdf0e10cSrcweir	 		<xsl:value-of select="."/>
147cdf0e10cSrcweir	 	</span>
148cdf0e10cSrcweir	 	<br/>
149cdf0e10cSrcweir	 </xsl:template>
150cdf0e10cSrcweir
151cdf0e10cSrcweir
152cdf0e10cSrcweir	 <xsl:template match="document/@pages">
153cdf0e10cSrcweir	 	<span class="docnumberofpages">
154cdf0e10cSrcweir	 		<xsl:value-of select="."/>
155cdf0e10cSrcweir	 	</span>
156cdf0e10cSrcweir	 	<br/>
157cdf0e10cSrcweir	 </xsl:template>
158cdf0e10cSrcweir
159cdf0e10cSrcweir
160cdf0e10cSrcweir	 <xsl:template match="document/@size">
161cdf0e10cSrcweir	 	<span class="docsizeinkb">
162cdf0e10cSrcweir	 		<xsl:value-of select="."/>
163cdf0e10cSrcweir	 	</span>
164cdf0e10cSrcweir	 	<br/>
165cdf0e10cSrcweir	 </xsl:template>
166cdf0e10cSrcweir
167cdf0e10cSrcweir	 <xsl:template match="document/@icon">
168cdf0e10cSrcweir	   <img src="images/{.}"/>
169cdf0e10cSrcweir	 	<br/>
170cdf0e10cSrcweir	 </xsl:template>
171cdf0e10cSrcweir
172cdf0e10cSrcweir
173cdf0e10cSrcweir	 <!-- =============================
174cdf0e10cSrcweir	               HTML HEAD
175cdf0e10cSrcweir
176cdf0e10cSrcweir    this section should not be changed
177cdf0e10cSrcweir	 ================================== -->
178cdf0e10cSrcweir
179cdf0e10cSrcweir	 <xsl:template name="head">
180cdf0e10cSrcweir	 	<head>
181cdf0e10cSrcweir				<title>
182cdf0e10cSrcweir				 	<xsl:value-of select="/session/general-info/@title"/>
183cdf0e10cSrcweir				</title>
184cdf0e10cSrcweir				<!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
185cdf0e10cSrcweir				<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>
186cdf0e10cSrcweir				<meta name="description" content="{/session/general-info/@description}"/>
187cdf0e10cSrcweir				<meta name="keywords" content="{/session/general-info/@keywords}"/>
188cdf0e10cSrcweir				<meta name="author" content="{/session/general-info/@author}"/>
189cdf0e10cSrcweir				<meta name="email" content="{/session/general-info/@email}"/>
190cdf0e10cSrcweir				<meta name="copyright" content="{/session/general-info/@copyright}"/>
191cdf0e10cSrcweir				<!-- create date?
192cdf0e10cSrcweir				     update date?
193cdf0e10cSrcweir				     fav icon?
194cdf0e10cSrcweir				     -->
195cdf0e10cSrcweir		     <link href="style.css" rel="stylesheet" type="text/css"/>
196cdf0e10cSrcweir
197cdf0e10cSrcweir		</head>
198cdf0e10cSrcweir	 </xsl:template>
199cdf0e10cSrcweir
200cdf0e10cSrcweir</xsl:stylesheet>
201