xref: /trunk/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl (revision ef1ef8e674fabf3a541d12c6e6c14cecdfc2f9e7)
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- =================================================
3
4This template is a skeleton for single level TOC pages
5Do not overwrite this ! copy it and complete the missing
6code.
7
8I use the @ character whereever there is a missing code, so
9you can use a simple find to navigate and find the
10places...
11
12====================================================== -->
13
14<xsl:stylesheet version="1.0"
15   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16    xmlns="http://www.w3.org/1999/xhtml">
17
18    <xsl:output method               = "html"
19                media-type           = "text/html"
20                indent               = "yes"
21                doctype-public       = "-//W3C//DTD HTML 4.0 Transitional//EN"
22                omit-xml-declaration = "yes"
23                standalone           = "yes" />
24
25
26   <xsl:include href="../layout.xsl"/>
27
28
29     <!-- =============================
30                   HTML BODY
31     ================================== -->
32
33     <xsl:template name="body">
34        <body>
35
36           <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
37
38            <xsl:call-template name="title"/>
39            <xsl:call-template name="toc"/>
40
41            </table>
42
43        </body>
44     </xsl:template>
45
46
47     <xsl:template name="toc">
48        <!--
49             @ pre toc html here
50        -->
51            <tr>
52                <td width="30" class="ccolor">&#160;
53                </td>
54                <td>
55
56        <!-- use this alternative if you do not need to use groups
57        (uncomment to use - and do not forget to comment the group
58        option above...)-->
59
60      <xsl:apply-templates select="/session/content/document"/>
61
62        <!--
63             @ post toc html here
64        -->
65                </td>
66            </tr>
67
68     </xsl:template>
69
70    <!-- also when using groups, in the end it comes
71    to this template, which is called for each document -->
72    <xsl:template match="document">
73        <p>
74            <xsl:apply-templates select="@icon"/>
75
76            <xsl:apply-templates select="@title"/>
77            <xsl:apply-templates select="@description"/>
78            <xsl:apply-templates select="@author"/>
79            <xsl:apply-templates select="@create-date"/>
80            <xsl:apply-templates select="@update-date"/>
81            <xsl:apply-templates select="@filename"/>
82            <xsl:apply-templates select="@format"/>
83            <xsl:apply-templates select="@format-icon"/>
84            <xsl:apply-templates select="@format-icon"/>
85        </p>
86
87        <xsl:if test="position() &lt; last()">
88            <hr/>
89        </xsl:if>
90
91    </xsl:template>
92
93     <xsl:template name="document-group">
94        <xsl:param name="group"/>
95
96        <!-- @ pre group code here -->
97
98        <!-- - - -->
99
100            <xsl:variable name="count" select="(position() - 1) * $group + 1"/>
101
102            <xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">
103
104                    <xsl:apply-templates select="."/>
105
106            </xsl:for-each>
107
108        <!-- @ post group code here -->
109
110        <!-- - - -->
111
112     </xsl:template>
113
114
115     <xsl:template name="title">
116        <!--
117          @ Pre title html code here
118        -->
119        <tr>
120            <td height="80" colspan="2" class="toctitle">
121
122                <xsl:value-of select="/session/general-info/@title"/>
123
124        <!--
125          @ Post title html code here
126        -->
127            </td>
128        </tr>
129     </xsl:template>
130
131</xsl:stylesheet>
132