source: main/trunk/model-interfaces-dev/wmtb/transform/layouts/toc.xsl@ 36047

Last change on this file since 36047 was 36046, checked in by cstephen, 2 years ago

Add missing newline

File size: 1.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
8 extension-element-prefixes="java util"
9 exclude-result-prefixes="java util gsf">
10
11 <!--
12 We have to override the default TOC template because it is
13 impossible to extract from consumers without redefining them
14 using large amounts of copy-paste and restructuring.
15 -->
16 <xsl:template name="rightSidebarTOC"></xsl:template>
17
18 <!-- We don't offer a floating TOC in this interface -->
19 <xsl:template name="floatingTOCToggle"></xsl:template>
20
21 <!-- A replica of rightSidebarTOC -->
22 <xsl:template name="rightSidebarTOCAlt">
23 <div id="rightSidebar">
24 <xsl:choose>
25 <xsl:when test="@docType = 'simple'">
26 <xsl:for-each select=".">
27 <xsl:call-template name="displayCoverImage" />
28 </xsl:for-each>
29 <xsl:call-template name="viewOptions"/>
30 </xsl:when>
31 <xsl:otherwise>
32 <xsl:for-each select="documentNode[1]">
33 <xsl:call-template name="displayCoverImage" />
34 </xsl:for-each>
35 <xsl:call-template name="viewOptions" />
36 <xsl:call-template name="displayTOC" />
37 </xsl:otherwise>
38 </xsl:choose>
39 </div>
40 </xsl:template>
41</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.