Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / extras / source / misc_config / wizard / web / layouts / simple / index.html.xsl
blob2bbd0514122ec359cb6e7d19b75ab9be66853fbb
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
19 <!-- =================================================
21 This template is a skeleton for single level TOC pages
22 Do not overwrite this ! copy it and complete the missing
23 code.
25 I use the @ character whereever there is a missing code, so
26 you can use a simple find to navigate and find the
27 places...
29 ====================================================== -->
31 <xsl:stylesheet version="1.0"
32 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
33 xmlns="http://www.w3.org/1999/xhtml">
35 <xsl:output method = "html"
36 media-type = "text/html"
37 indent = "yes"
38 doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
39 omit-xml-declaration = "yes"
40 standalone = "yes" />
43 <xsl:include href="../layout.xsl"/>
46 <!-- =============================
47 HTML BODY
48 ================================== -->
50 <xsl:template name="body">
51 <body>
53 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
55 <xsl:call-template name="title"/>
56 <xsl:call-template name="toc"/>
58 </table>
60 </body>
61 </xsl:template>
64 <xsl:template name="toc">
65 <!--
66 @ pre toc html here
67 -->
68 <tr>
69 <td width="30" class="ccolor">&#160;
70 </td>
71 <td>
73 <!-- use this alternative if you do not need to use groups
74 (uncomment to use - and do not forget to comment the group
75 option above...)-->
77 <xsl:apply-templates select="/session/content/document"/>
79 <!--
80 @ post toc html here
81 -->
82 </td>
83 </tr>
85 </xsl:template>
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 <p>
91 <xsl:apply-templates select="@icon"/>
93 <xsl:apply-templates select="@title"/>
94 <xsl:apply-templates select="@description"/>
95 <xsl:apply-templates select="@author"/>
96 <xsl:apply-templates select="@create-date"/>
97 <xsl:apply-templates select="@update-date"/>
98 <xsl:apply-templates select="@filename"/>
99 <xsl:apply-templates select="@format"/>
100 <xsl:apply-templates select="@format-icon"/>
101 <xsl:apply-templates select="@format-icon"/>
102 </p>
104 <xsl:if test="position() &lt; last()">
105 <hr/>
106 </xsl:if>
108 </xsl:template>
110 <xsl:template name="document-group">
111 <xsl:param name="group"/>
113 <!-- @ pre group code here -->
115 <!-- - - -->
117 <xsl:variable name="count" select="(position() - 1) * $group + 1"/>
119 <xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">
121 <xsl:apply-templates select="."/>
123 </xsl:for-each>
125 <!-- @ post group code here -->
127 <!-- - - -->
129 </xsl:template>
132 <xsl:template name="title">
133 <!--
134 @ Pre title html code here
136 <tr>
137 <td height="80" colspan="2" class="toctitle">
139 <xsl:value-of select="/session/general-info/@title"/>
141 <!--
142 @ Post title html code here
144 </td>
145 </tr>
146 </xsl:template>
148 </xsl:stylesheet>