1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- =================================================
4 This template is a skeleton for single level TOC pages
5 Do not overwrite this ! copy it and complete the missing
8 I use the @ character whereever there is a missing code, so
9 you can use a simple find to navigate and find the
12 ====================================================== -->
14 <xsl:stylesheet version=
"1.0"
15 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
16 xmlns=
"http://www.w3.org/1999/xhtml">
18 <xsl:output method =
"html"
19 media-type =
"text/html"
21 doctype-public =
"-//W3C//DTD HTML 4.0 Transitional//EN"
22 omit-xml-declaration =
"yes"
26 <xsl:include href=
"../layout.xsl"/>
29 <!-- =============================
31 ================================== -->
33 <xsl:template name=
"body">
36 <table width=
"100%" border=
"0" cellpadding=
"0" cellspacing=
"0" class=
"tcolor">
38 <xsl:call-template name=
"title"/>
39 <xsl:call-template name=
"toc"/>
47 <xsl:template name=
"toc">
52 <td width=
"30" class=
"ccolor"> 
56 <!-- use this alternative if you do not need to use groups
57 (uncomment to use - and do not forget to comment the group
60 <xsl:apply-templates select=
"/session/content/document"/>
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">
74 <xsl:apply-templates select=
"@icon"/>
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"/>
87 <xsl:if test=
"position() < last()">
93 <xsl:template name=
"document-group">
94 <xsl:param name=
"group"/>
96 <!-- @ pre group code here -->
100 <xsl:variable name=
"count" select=
"(position() - 1) * $group + 1"/>
102 <xsl:for-each select=
"/session/content/document[$count <= position() and position() < ($count + $group)]">
104 <xsl:apply-templates select=
"."/>
108 <!-- @ post group code here -->
115 <xsl:template name=
"title">
117 @ Pre title html code here
120 <td height=
"80" colspan=
"2" class=
"toctitle">
122 <xsl:value-of select=
"/session/general-info/@title"/>
125 @ Post title html code here