1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!--*************************************************************************
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 Copyright 2008 by Sun Microsystems, Inc.
8 OpenOffice.org - a multi-platform office productivity suite
10 $RCSfile: header.hxx,v $
14 This file is part of OpenOffice.org.
16 OpenOffice.org is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License version 3
18 only, as published by the Free Software Foundation.
20 OpenOffice.org is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU Lesser General Public License version 3 for more details
24 (a copy is included in the LICENSE file that accompanied this code).
26 You should have received a copy of the GNU Lesser General Public License
27 version 3 along with OpenOffice.org. If not, see
28 <http://www.openoffice.org/license.html>
29 for a copy of the LGPLv3 License.
31 ************************************************************************-->
32 <!-- =================================================
34 This template is a skeleton for single level TOC pages
35 Do not overwrite this ! copy it and complete the missing
38 I use the @ character whereever there is a missing code, so
39 you can use a simple find to navigate and find the
42 ====================================================== -->
44 <xsl:stylesheet version=
"1.0"
45 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
46 xmlns=
"http://www.w3.org/1999/xhtml">
48 <xsl:output method =
"html"
49 media-type =
"text/html"
51 doctype-public =
"-//W3C//DTD HTML 4.0 Transitional//EN"
52 omit-xml-declaration =
"yes"
55 <!-- =============================
57 ================================== -->
60 <xsl:template match=
"/">
62 <xsl:call-template name=
"head"/>
63 <xsl:call-template name=
"body"/>
68 <!-- =============================
71 This section contains templates which
72 give the document properties...
74 ================================== -->
76 <!-- this tempaltes gives the
77 relative href of the document. To use
78 with the <a href="..."> attribute-->
81 <xsl:template match=
"document" mode=
"href">
82 <xsl:value-of select=
"concat(../@directory,'/')"/>
84 <xsl:value-of select=
"concat(@dir,'/')"/>
86 <xsl:value-of select=
"@fn"/>
90 <xsl:template match=
"document/@title">
91 <xsl:param name=
"target" select=
"''"/>
93 <span class=
"doctitle">
95 <xsl:attribute name=
"href">
96 <xsl:apply-templates select=
".." mode=
"href"/>
99 <xsl:if test=
" $target != ''">
100 <xsl:attribute name=
"target">
101 <xsl:value-of select=
"$target"/>
105 <xsl:value-of select=
"."/>
112 <xsl:template match=
"document/@description">
113 <span class=
"docdescription">
114 <xsl:value-of select=
"."/>
120 <xsl:template match=
"document/@author">
121 <span class=
"docauthor">
122 <xsl:value-of select=
"."/>
128 <xsl:template match=
"document/@create-date">
129 <span class=
"doccreationdate">
130 <xsl:value-of select=
"."/>
136 <xsl:template match=
"document/@update-date">
137 <span class=
"doclastchangedate">
138 <xsl:value-of select=
"."/>
144 <xsl:template match=
"document/@filename">
145 <span class=
"docfilename">
146 <xsl:value-of select=
"."/>
152 <xsl:template match=
"document/@format">
153 <span class=
"docfileformatinfo">
154 <xsl:value-of select=
"."/>
160 <xsl:template match=
"document/@pages">
161 <span class=
"docnumberofpages">
162 <xsl:value-of select=
"."/>
168 <xsl:template match=
"document/@size">
169 <span class=
"docsizeinkb">
170 <xsl:value-of select=
"."/>
175 <xsl:template match=
"document/@icon">
176 <img src=
"images/{.}"/>
181 <!-- =============================
184 this section should not be changed
185 ================================== -->
187 <xsl:template name=
"head">
190 <xsl:value-of select=
"/session/general-info/@title"/>
192 <!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
193 <meta HTTP-EQUIV=
"CONTENT-TYPE" CONTENT=
"text/html; charset=UTF-8"/>
194 <meta name=
"description" content=
"{/session/general-info/@description}"/>
195 <meta name=
"keywords" content=
"{/session/general-info/@keywords}"/>
196 <meta name=
"author" content=
"{/session/general-info/@author}"/>
197 <meta name=
"email" content=
"{/session/general-info/@email}"/>
198 <meta name=
"copyright" content=
"{/session/general-info/@copyright}"/>
203 <link href=
"style.css" rel=
"stylesheet" type=
"text/css"/>