1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22<!-- ================================================= 23 24This template is a skeleton for single level TOC pages 25Do not overwrite this ! copy it and complete the missing 26code. 27 28I use the @ character wherever there is a missing code, so 29you can use a simple find to navigate and find the 30places... 31 32====================================================== --> 33 34<xsl:stylesheet version="1.0" 35 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 36 xmlns="http://www.w3.org/1999/xhtml"> 37 38 <xsl:output method = "html" 39 media-type = "text/html" 40 indent = "yes" 41 doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" 42 omit-xml-declaration = "yes" 43 standalone = "yes" /> 44 45 <xsl:include href="../layout.xsl"/> 46 47 48 49 <!-- ============================= 50 HTML BODY 51 ================================== --> 52 53 <xsl:template name="body"> 54 <xsl:call-template name="toc"/> 55 </xsl:template> 56 57 58 <xsl:template name="toc"> 59 <xsl:variable name="doc-count" select="count(/session/content/document)"/> 60 61 <table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor"> 62 63 <tr> 64 <td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle"> 65 <xsl:value-of select="/session/general-info/@title"/> 66 </td> 67 </tr> 68 69 <!-- use this alternative if you do not need to use groups 70 (uncomment to use - and do not forget to comment the group 71 option above...)--> 72 73 <tr> 74 <xsl:apply-templates select="/session/content/document"/> 75 <td colspan="2"></td> 76 </tr> 77 78 </table> 79 80 <!-- 81 @ post toc html here 82 --> 83 84 <p class="colback"> </p> 85 86 </xsl:template> 87 88 <!-- also when using groups, in the end it comes 89 to this template, which is called for each document --> 90 <xsl:template match="document"> 91 92 <!-- image cell --> 93 94 <td width="50" height="200" align="center"> 95 <p> 96 <xsl:apply-templates select="@icon"/> 97 </p> 98 </td> 99 100 <td width="200"><p> 101 102 <xsl:apply-templates select="@title"> 103 <xsl:with-param name="target" select="'mainframe'"/> 104 </xsl:apply-templates> 105 106 <xsl:apply-templates select="@description"/> 107 <xsl:apply-templates select="@author"/> 108 <xsl:apply-templates select="@create-date"/> 109 <xsl:apply-templates select="@update-date"/> 110 <xsl:apply-templates select="@filename"/> 111 <xsl:apply-templates select="@format"/> 112 <xsl:apply-templates select="@pages"/> 113 <xsl:apply-templates select="@size"/> 114 115 116 </p> </td> 117 118 </xsl:template> 119 120</xsl:stylesheet> 121