1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 |
|
---|
3 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan">
|
---|
4 |
|
---|
5 | <xsl:import href="./util.xsl"/>
|
---|
6 |
|
---|
7 | <xsl:output method="html"/>
|
---|
8 |
|
---|
9 | <xsl:template match="/">
|
---|
10 | <html>
|
---|
11 | <head>
|
---|
12 | <title>
|
---|
13 | <xsl:call-template name="metadataItem">
|
---|
14 | <xsl:with-param name="name">siteName</xsl:with-param>
|
---|
15 | </xsl:call-template>
|
---|
16 | /
|
---|
17 | <xsl:call-template name="metadataItem">
|
---|
18 | <xsl:with-param name="name">collectionName</xsl:with-param>
|
---|
19 | </xsl:call-template>
|
---|
20 | </title>
|
---|
21 |
|
---|
22 | <xsl:copy-of select="$js"/>
|
---|
23 | </head>
|
---|
24 | <body>
|
---|
25 |
|
---|
26 | <xsl:if test="$document_currentSection/@nodeType = 'root'">
|
---|
27 | <xsl:attribute name="onload">showContents()</xsl:attribute>
|
---|
28 | </xsl:if>
|
---|
29 |
|
---|
30 | <div id="container">
|
---|
31 |
|
---|
32 | <div id="header">
|
---|
33 | <div class="title_minor">
|
---|
34 |
|
---|
35 |
|
---|
36 |
|
---|
37 | <a href="{$library}?a=p&sa=home">
|
---|
38 | <xsl:call-template name="metadataItem">
|
---|
39 | <xsl:with-param name="name">siteName</xsl:with-param>
|
---|
40 | </xsl:call-template>
|
---|
41 | </a>
|
---|
42 | /
|
---|
43 | </div>
|
---|
44 | <div class="title_major">
|
---|
45 | <xsl:call-template name="metadataItem">
|
---|
46 | <xsl:with-param name="name">collectionName</xsl:with-param>
|
---|
47 | </xsl:call-template>
|
---|
48 | </div>
|
---|
49 |
|
---|
50 | <div id="tablist" class="linklist">
|
---|
51 | <xsl:call-template name="service_list" />
|
---|
52 | </div>
|
---|
53 |
|
---|
54 | </div>
|
---|
55 |
|
---|
56 | <div id="content" class="noSidebar">
|
---|
57 |
|
---|
58 | <br/>
|
---|
59 |
|
---|
60 | <xsl:if test="$document_coverImage_exists='true'">
|
---|
61 | <div class="coverImage">
|
---|
62 | <img src="{$document_coverImage_url}"> </img>
|
---|
63 | </div>
|
---|
64 | </xsl:if>
|
---|
65 |
|
---|
66 | <h1>
|
---|
67 | <xsl:value-of select="$document_title"/>
|
---|
68 | </h1>
|
---|
69 |
|
---|
70 | <div id="subServiceList" class="linklist">
|
---|
71 | <ul>
|
---|
72 | <li> <a href="" target="_blank">view entire document</a></li>
|
---|
73 | <li> <a href="" target="_blank">open in new window</a></li>
|
---|
74 | </ul>
|
---|
75 | </div>
|
---|
76 |
|
---|
77 | <xsl:choose>
|
---|
78 | <xsl:when test="$document_type='simple'">
|
---|
79 | <div class="documentBody">
|
---|
80 | <xsl:value-of disable-output-escaping='yes' select="$document_currentSection_content" />
|
---|
81 | </div>
|
---|
82 | </xsl:when>
|
---|
83 |
|
---|
84 | <xsl:when test="$document_type='hierarchy' and $document_is_expanded != 'true'">
|
---|
85 | <a id="contentsLink" onclick="showContents()">contents</a>
|
---|
86 |
|
---|
87 | <div id="contents">
|
---|
88 | <xsl:call-template name="list_document_content" />
|
---|
89 | </div>
|
---|
90 |
|
---|
91 | <br/><br/>
|
---|
92 |
|
---|
93 | <div class="documentBody">
|
---|
94 |
|
---|
95 | <xsl:choose>
|
---|
96 | <xsl:when test="$document_ancestorSections!=''">
|
---|
97 | <p class="ancestorSections">
|
---|
98 | <xsl:for-each select="$document_ancestorSections_titles">
|
---|
99 | <xsl:value-of select="."/> /
|
---|
100 | </xsl:for-each>
|
---|
101 | </p>
|
---|
102 |
|
---|
103 | <h2 class="subsectionHeader"> <xsl:value-of disable-output-escaping='yes' select="$document_currentSection_title"/> </h2>
|
---|
104 |
|
---|
105 | </xsl:when>
|
---|
106 | <xsl:otherwise>
|
---|
107 | <xsl:if test="$document_currentSection/@nodeType != 'root'">
|
---|
108 | <h2> <xsl:value-of disable-output-escaping='yes' select="$document_currentSection_title"/> </h2>
|
---|
109 | </xsl:if>
|
---|
110 | </xsl:otherwise>
|
---|
111 | </xsl:choose>
|
---|
112 |
|
---|
113 | <xsl:call-template name="section_navigation" />
|
---|
114 |
|
---|
115 | <xsl:value-of disable-output-escaping='yes' select="$document_currentSection_content" />
|
---|
116 |
|
---|
117 | <xsl:call-template name="section_navigation" />
|
---|
118 | </div>
|
---|
119 | </xsl:when>
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|
123 | <xsl:when test="$document_type='hierarchy' and $document_is_expanded">
|
---|
124 |
|
---|
125 | <xsl:for-each select="$document_allSections">
|
---|
126 | <xsl:variable name="pos" select="position()"/>
|
---|
127 | <xsl:variable name="depth">
|
---|
128 | <xsl:call-template name="document_section_depth">
|
---|
129 | <xsl:with-param name="index" select="$pos" />
|
---|
130 | </xsl:call-template>
|
---|
131 | </xsl:variable>
|
---|
132 |
|
---|
133 | <xsl:element name="h{$depth + 1}">
|
---|
134 | <xsl:call-template name="document_section_title">
|
---|
135 | <xsl:with-param name="index" select="$pos" />
|
---|
136 | </xsl:call-template>
|
---|
137 | </xsl:element>
|
---|
138 |
|
---|
139 | <xsl:call-template name="document_section_content">
|
---|
140 | <xsl:with-param name="index" select="$pos" />
|
---|
141 | </xsl:call-template>
|
---|
142 | </xsl:for-each>
|
---|
143 |
|
---|
144 | </xsl:when>
|
---|
145 |
|
---|
146 | </xsl:choose>
|
---|
147 | </div>
|
---|
148 |
|
---|
149 | <div id="footer" >
|
---|
150 | <xsl:call-template name="uiItem">
|
---|
151 | <xsl:with-param name="name">collectionFooter</xsl:with-param>
|
---|
152 | </xsl:call-template>
|
---|
153 | </div>
|
---|
154 | </div>
|
---|
155 |
|
---|
156 | </body>
|
---|
157 | </html>
|
---|
158 | </xsl:template>
|
---|
159 |
|
---|
160 | <xsl:template name="section_navigation">
|
---|
161 | <xsl:if test="$document_previousSection!='' or $document_nextSection!=''">
|
---|
162 | <div class="sectionNav">
|
---|
163 | <xsl:if test="$document_previousSection!=''">
|
---|
164 | <a class="prevSection" href="{$document_previousSection_url}" title="{$document_previousSection_title}"> < Previous Section</a>
|
---|
165 | </xsl:if>
|
---|
166 | <xsl:if test="$document_nextSection!=''">
|
---|
167 | <a class="nextSection" href="{$document_nextSection_url}" title="{$document_nextSection_title}">Next Section ></a>
|
---|
168 | </xsl:if>
|
---|
169 | </div>
|
---|
170 | </xsl:if>
|
---|
171 | </xsl:template>
|
---|
172 |
|
---|
173 |
|
---|
174 | </xsl:stylesheet>
|
---|