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 | <xsl:variable name="docID" select="/page/pageRequest/paramList/param[@name='d']/@value"/>
|
---|
12 |
|
---|
13 | <xsl:template name="documentHeading">
|
---|
14 | <span style="font-weight:bold; font-size: 120%;">
|
---|
15 | <xsl:call-template name="choose-title"/>
|
---|
16 | </span>
|
---|
17 | </xsl:template>
|
---|
18 |
|
---|
19 | <!-- content of a simple document. Will not be used for editing mode -->
|
---|
20 | <xsl:template name="documentContent">
|
---|
21 | <div id="gs-document">
|
---|
22 | <xsl:call-template name="documentPre"/>
|
---|
23 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
24 | <div id="gs-document-text">
|
---|
25 | <xsl:call-template name="documentNodeText"/>
|
---|
26 | </div>
|
---|
27 | <xsl:call-template name="documentPost"/>
|
---|
28 | </div>
|
---|
29 | </xsl:template>
|
---|
30 |
|
---|
31 | <!-- For symmetry reasons, companion template to wrappedDocumentTopLevel -->
|
---|
32 | <xsl:template name="documentContentTopLevel">
|
---|
33 | <xsl:call-template name="documentContent"/>
|
---|
34 | </xsl:template>
|
---|
35 |
|
---|
36 | <xsl:template name="topLevelSectionContent">
|
---|
37 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
38 | <xsl:call-template name="wrappedSectionText"/>
|
---|
39 | </xsl:template>
|
---|
40 |
|
---|
41 | <xsl:template name="sectionContent">
|
---|
42 | <xsl:call-template name="wrappedSectionImage"/>
|
---|
43 | <xsl:call-template name="wrappedSectionText"/>
|
---|
44 | </xsl:template>
|
---|
45 |
|
---|
46 | <xsl:template name="wrappedSectionText">
|
---|
47 | <!-- <br /><br /> --> <!-- **** better to do with CSS .setionText -->
|
---|
48 |
|
---|
49 | <div id="text{@nodeID}" class="sectionText"><!-- *** -->
|
---|
50 | <xsl:attribute name="style">
|
---|
51 | <xsl:choose>
|
---|
52 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'view']/@value = 'image'">
|
---|
53 | <xsl:text>display:none;</xsl:text>
|
---|
54 | </xsl:when>
|
---|
55 | <xsl:otherwise>
|
---|
56 | <xsl:text>display:block;</xsl:text>
|
---|
57 | </xsl:otherwise>
|
---|
58 | </xsl:choose>
|
---|
59 | </xsl:attribute>
|
---|
60 | <xsl:call-template name="documentNodeText"/>
|
---|
61 | </div>
|
---|
62 | </xsl:template>
|
---|
63 |
|
---|
64 | <xsl:template name="sectionImage">
|
---|
65 | <gsf:image type="screen"/>
|
---|
66 | </xsl:template>
|
---|
67 |
|
---|
68 | </xsl:stylesheet>
|
---|