1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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 | <!-- use the 'main' layout -->
|
---|
12 | <xsl:import href="layouts/main.xsl"/>
|
---|
13 |
|
---|
14 | <!-- style includes global params interface_name, library_name -->
|
---|
15 | <xsl:include href=".old/berrytools.xsl"/>
|
---|
16 |
|
---|
17 | <xsl:variable name="bookswitch">
|
---|
18 | <xsl:choose>
|
---|
19 | <xsl:when test="/page/pageRequest/paramList/param[@name='book']/@value">
|
---|
20 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/>
|
---|
21 | </xsl:when>
|
---|
22 | <xsl:otherwise>off</xsl:otherwise>
|
---|
23 | </xsl:choose>
|
---|
24 | </xsl:variable>
|
---|
25 |
|
---|
26 | <!-- set page title -->
|
---|
27 | <xsl:template name="pageTitle"><gslib:documentTitle/></xsl:template>
|
---|
28 |
|
---|
29 | <!-- set page breadcrumbs -->
|
---|
30 | <xsl:template name="breadcrumbs">
|
---|
31 | <gslib:siteLink/><gslib:rightArrow/>
|
---|
32 | <gslib:collectionNameLinked/><gslib:rightArrow/>
|
---|
33 | <a>
|
---|
34 | <xsl:attribute name="href">
|
---|
35 | <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collName"/>/document/<xsl:value-of select="/page/pageResponse/document/documentNode[1]/@nodeID"/>
|
---|
36 | </xsl:attribute>
|
---|
37 | <xsl:variable name="documentTitleVar">
|
---|
38 | <gslib:documentTitle/>
|
---|
39 | </xsl:variable>
|
---|
40 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.document')"/>
|
---|
41 | </a>
|
---|
42 | </xsl:template>
|
---|
43 |
|
---|
44 | <xsl:template match="/">
|
---|
45 | <xsl:choose>
|
---|
46 | <!-- if this is the realistic books version of the page -->
|
---|
47 | <xsl:when test="$bookswitch = 'flashxml'">
|
---|
48 | <html>
|
---|
49 | <body>
|
---|
50 | <xsl:apply-templates select="/page/pageResponse/document"/>
|
---|
51 | </body>
|
---|
52 | </html>
|
---|
53 | </xsl:when>
|
---|
54 | <!-- if this is the regular version of the page -->
|
---|
55 | <xsl:otherwise>
|
---|
56 | <xsl:apply-imports/>
|
---|
57 | </xsl:otherwise>
|
---|
58 | </xsl:choose>
|
---|
59 | </xsl:template>
|
---|
60 |
|
---|
61 | <!-- Used to make sure that regardless what the collection designer uses for the title and content we can wrap it properly -->
|
---|
62 | <!-- If editing, be aware that the Document Basket looks for specific classes that this template bakes in (key points marked with ***) -->
|
---|
63 | <xsl:template name="wrapDocumentNodes">
|
---|
64 | <xsl:for-each select="documentNode">
|
---|
65 | <a name="{@nodeID}"><xsl:text> </xsl:text></a>
|
---|
66 | <!-- Section header -->
|
---|
67 | <table class="sectionHeader"><tr>
|
---|
68 |
|
---|
69 | <!-- Expand/collapse button -->
|
---|
70 | <xsl:if test="not(/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='sectionExpandCollapse']/@value) or /page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='sectionExpandCollapse']/@value = 'true'">
|
---|
71 | <td class="headerTD">
|
---|
72 | <img id="dtoggle{@nodeID}" onclick="toggleSection('{@nodeID}');" class="icon">
|
---|
73 | <xsl:attribute name="src">
|
---|
74 | <xsl:choose>
|
---|
75 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or util:oidIsMatchOrParent(@nodeID, /page/pageResponse/document/@selectedNode)">
|
---|
76 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')"/>
|
---|
77 | </xsl:when>
|
---|
78 | <xsl:otherwise>
|
---|
79 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
|
---|
80 | </xsl:otherwise>
|
---|
81 | </xsl:choose>
|
---|
82 | </xsl:attribute>
|
---|
83 | </img>
|
---|
84 | </td>
|
---|
85 | </xsl:if>
|
---|
86 |
|
---|
87 | <!-- Title -->
|
---|
88 | <td id="header{@nodeID}" class="headerTD sectionTitle"><!-- *** -->
|
---|
89 | <!-- Get the title from the title sectionTitle template -->
|
---|
90 | <xsl:choose>
|
---|
91 | <xsl:when test="not(/page/pageRequest/paramList/param[@name = 'dmd']) or /page/pageRequest/paramList/param[@name = 'dmd']/@value = 'false'">
|
---|
92 | <xsl:apply-templates select="." mode="sectionTitleFormat"/>
|
---|
93 | </xsl:when>
|
---|
94 | <xsl:otherwise>
|
---|
95 | <xsl:apply-templates select="." mode="sectionTitle"/>
|
---|
96 | </xsl:otherwise>
|
---|
97 | </xsl:choose>
|
---|
98 | </td>
|
---|
99 |
|
---|
100 | <!-- "back to top" link -->
|
---|
101 | <xsl:if test="util:hashToDepthClass(@nodeID) != 'sectionHeaderDepthTitle'">
|
---|
102 | <td class="backToTop headerTD">
|
---|
103 | <a href="javascript:scrollToTop();">
|
---|
104 | <xsl:text disable-output-escaping="yes">▲</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.back_to_top')"/>
|
---|
105 | </a>
|
---|
106 | </td>
|
---|
107 | </xsl:if>
|
---|
108 | </tr></table>
|
---|
109 |
|
---|
110 | <div id="doc{@nodeID}"><!-- *** -->
|
---|
111 | <xsl:choose>
|
---|
112 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or /page/pageResponse/document/@selectedNode = @nodeID">
|
---|
113 | <xsl:attribute name="class">
|
---|
114 | <xsl:text>sectionContainer hasText</xsl:text>
|
---|
115 | </xsl:attribute>
|
---|
116 | <xsl:attribute name="style">
|
---|
117 | <xsl:text>display:block;</xsl:text>
|
---|
118 | </xsl:attribute>
|
---|
119 | </xsl:when>
|
---|
120 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or util:oidIsMatchOrParent(@nodeID, /page/pageResponse/document/@selectedNode)">
|
---|
121 | <xsl:attribute name="class">
|
---|
122 | <xsl:text>sectionContainer noText</xsl:text>
|
---|
123 | </xsl:attribute>
|
---|
124 | <xsl:attribute name="style">
|
---|
125 | <xsl:text>display:block;</xsl:text>
|
---|
126 | </xsl:attribute>
|
---|
127 | </xsl:when>
|
---|
128 | <xsl:otherwise>
|
---|
129 | <xsl:attribute name="class">
|
---|
130 | <xsl:text>sectionContainer noText</xsl:text>
|
---|
131 | </xsl:attribute>
|
---|
132 | <xsl:attribute name="style">
|
---|
133 | <xsl:text>display:none;</xsl:text>
|
---|
134 | </xsl:attribute>
|
---|
135 | </xsl:otherwise>
|
---|
136 | </xsl:choose>
|
---|
137 |
|
---|
138 | <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
|
---|
139 | <table id="meta{@nodeID}">
|
---|
140 | <xsl:attribute name="style">
|
---|
141 | <xsl:choose>
|
---|
142 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'dmd']/@value = 'true'">
|
---|
143 | <xsl:text>display:block;</xsl:text>
|
---|
144 | </xsl:when>
|
---|
145 | <xsl:otherwise>
|
---|
146 | <xsl:text>display:none;</xsl:text>
|
---|
147 | </xsl:otherwise>
|
---|
148 | </xsl:choose>
|
---|
149 | </xsl:attribute>
|
---|
150 | <xsl:value-of select="util:clearMetadataStorage()"/>
|
---|
151 | <xsl:for-each select="metadataList/metadata">
|
---|
152 | <xsl:sort select="@name"/>
|
---|
153 | <xsl:if test="util:checkMetadataNotDuplicate(@name, .)">
|
---|
154 | <tr>
|
---|
155 | <td class="metaTableCellName"><xsl:value-of select="@name"/></td>
|
---|
156 | <td class="metaTableCell"><xsl:value-of select="."/></td>
|
---|
157 | </tr>
|
---|
158 | </xsl:if>
|
---|
159 | </xsl:for-each>
|
---|
160 | </table>
|
---|
161 | </xsl:if>
|
---|
162 |
|
---|
163 | <gsf:variable name="screenImageWidth"><gsf:metadata name="ScreenWidth"/></gsf:variable>
|
---|
164 | <gsf:variable name="screenImageHeight"><gsf:metadata name="ScreenHeight"/></gsf:variable>
|
---|
165 | <gsf:variable name="imageWidth"><gsf:metadata name="ImageWidth"/></gsf:variable>
|
---|
166 | <gsf:variable name="imageHeight"><gsf:metadata name="ImageHeight"/></gsf:variable>
|
---|
167 |
|
---|
168 | <xsl:choose>
|
---|
169 | <xsl:when test="metadataList/metadata[@name = 'Screen'] and metadataList/metadata[@name = 'Source']">
|
---|
170 | <div id="wrap{util:replace(@nodeID, '.', '_')}" class="zoomImage" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;">
|
---|
171 | <div id="small{util:replace(@nodeID, '.', '_')}" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;">
|
---|
172 | <gsf:image type="screen"/>
|
---|
173 | </div>
|
---|
174 | <div id="mover{util:replace(@nodeID, '.', '_')}" style="border: 1px solid green; position: absolute; top: 0; left: 0; width: 198px; height: 198px; overflow: hidden; z-index: 100; background: white; display: none;">
|
---|
175 | <div id="overlay{util:replace(@nodeID, '.', '_')}" style="width: 200px; height: 200px; position: absolute; top: 0; left: 0; z-index: 200;">
|
---|
176 | <xsl:text> </xsl:text>
|
---|
177 | </div>
|
---|
178 | <div id="large{util:replace(@nodeID, '.', '_')}" style="position: relative;">
|
---|
179 | <gsf:image type="source"/>
|
---|
180 | </div>
|
---|
181 | </div>
|
---|
182 | </div>
|
---|
183 | <script type="text/javascript">
|
---|
184 | <xsl:text disable-output-escaping="yes">
|
---|
185 | $(window).load(function()
|
---|
186 | {
|
---|
187 | var nodeID = "</xsl:text><xsl:value-of select="@nodeID"/><xsl:text disable-output-escaping="yes">";
|
---|
188 | var bigHeight = </xsl:text><xsl:value-of select="$imageHeight"/><xsl:text disable-output-escaping="yes">;
|
---|
189 | var smallHeight = </xsl:text><xsl:value-of select="$screenImageHeight"/><xsl:text disable-output-escaping="yes">;
|
---|
190 |
|
---|
191 | nodeID = nodeID.replace(/\./g, "_");
|
---|
192 | var multiplier = bigHeight / smallHeight;
|
---|
193 |
|
---|
194 | $("#wrap" + nodeID).anythingZoomer({
|
---|
195 | smallArea: "#small" + nodeID,
|
---|
196 | largeArea: "#large" + nodeID,
|
---|
197 | zoomPort: "#overlay" + nodeID,
|
---|
198 | mover: "#mover" + nodeID,
|
---|
199 | expansionSize:50,
|
---|
200 | speedMultiplier:multiplier
|
---|
201 | });
|
---|
202 | });
|
---|
203 | </xsl:text>
|
---|
204 | </script>
|
---|
205 | </xsl:when>
|
---|
206 | <xsl:when test="metadataList/metadata[@name = 'Screen']">
|
---|
207 | <div id="image{@nodeID}">
|
---|
208 | <xsl:attribute name="style">
|
---|
209 | <xsl:choose>
|
---|
210 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'view']/@value = 'text'">
|
---|
211 | <xsl:text>display:none;</xsl:text>
|
---|
212 | </xsl:when>
|
---|
213 | <xsl:otherwise>
|
---|
214 | <xsl:text>display:block;</xsl:text>
|
---|
215 | </xsl:otherwise>
|
---|
216 | </xsl:choose>
|
---|
217 | </xsl:attribute>
|
---|
218 | <gsf:image type="screen"/>
|
---|
219 | </div>
|
---|
220 | </xsl:when>
|
---|
221 | </xsl:choose>
|
---|
222 | <div id="text{@nodeID}" class="sectionText"><!-- *** -->
|
---|
223 | <xsl:attribute name="style">
|
---|
224 | <xsl:choose>
|
---|
225 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'view']/@value = 'image'">
|
---|
226 | <xsl:text>display:none;</xsl:text>
|
---|
227 | </xsl:when>
|
---|
228 | <xsl:otherwise>
|
---|
229 | <xsl:text>display:block;</xsl:text>
|
---|
230 | </xsl:otherwise>
|
---|
231 | </xsl:choose>
|
---|
232 | </xsl:attribute>
|
---|
233 | <!-- Get the section content from the document template -->
|
---|
234 | <xsl:apply-templates select="." mode="document"/>
|
---|
235 | </div>
|
---|
236 | <xsl:if test="documentNode">
|
---|
237 | <xsl:call-template name="wrapDocumentNodes"/>
|
---|
238 | </xsl:if>
|
---|
239 | </div>
|
---|
240 | </xsl:for-each>
|
---|
241 | </xsl:template>
|
---|
242 |
|
---|
243 | <!-- the page content -->
|
---|
244 | <xsl:template match="/page/pageResponse/document">
|
---|
245 | <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
|
---|
246 | <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script>
|
---|
247 | <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_util.js"><xsl:text> </xsl:text></script>
|
---|
248 | <gsf:metadata name="all"/>
|
---|
249 | </xsl:if>
|
---|
250 |
|
---|
251 | <xsl:if test="$bookswitch = 'off'">
|
---|
252 | <div id="bookdiv" style="visibility:hidden; height:0px; display:inline;"><xsl:text> </xsl:text></div>
|
---|
253 |
|
---|
254 | <script type="text/javascript" src="interfaces/{$interface_name}/js/document_scripts.js"><xsl:text> </xsl:text></script>
|
---|
255 |
|
---|
256 | <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'">
|
---|
257 | <script type="text/javascript">
|
---|
258 | <xsl:text disable-output-escaping="yes">
|
---|
259 | if(document.URL.indexOf("book=on") != -1)
|
---|
260 | {
|
---|
261 | loadBook();
|
---|
262 | }
|
---|
263 | </xsl:text>
|
---|
264 | </script>
|
---|
265 | </xsl:if>
|
---|
266 |
|
---|
267 | <!-- show the little berries for this document -->
|
---|
268 | <xsl:call-template name="documentBerryForDocumentPage"/>
|
---|
269 |
|
---|
270 | <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
|
---|
271 | <xsl:call-template name="editBar"/>
|
---|
272 | </xsl:if>
|
---|
273 |
|
---|
274 | <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']) or /page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']/@value='true'">
|
---|
275 | <xsl:call-template name="rightSidebar"/>
|
---|
276 | </xsl:if>
|
---|
277 | </xsl:if>
|
---|
278 |
|
---|
279 | <!-- display the document -->
|
---|
280 | <xsl:choose>
|
---|
281 | <xsl:when test="@external != ''">
|
---|
282 | <xsl:call-template name="externalPage">
|
---|
283 | <xsl:with-param name="external" select="@external"/>
|
---|
284 | </xsl:call-template>
|
---|
285 | </xsl:when>
|
---|
286 | <xsl:when test="$bookswitch = 'flashxml'">
|
---|
287 | <xsl:apply-templates mode="flashxml"/>
|
---|
288 | </xsl:when>
|
---|
289 | <xsl:when test="$bookswitch = 'on'">
|
---|
290 | <div id="bookdiv" style="display:inline;"><xsl:text> </xsl:text></div>
|
---|
291 | <!-- *** in document-scripts.js *** -->
|
---|
292 | <script type="text/javascript">
|
---|
293 | <xsl:text disable-output-escaping="yes">
|
---|
294 | if(document.URL.indexOf("book=on") != -1)
|
---|
295 | {
|
---|
296 | loadBook();
|
---|
297 | }
|
---|
298 | </xsl:text>
|
---|
299 | </script>
|
---|
300 | </xsl:when>
|
---|
301 | <xsl:otherwise>
|
---|
302 | <xsl:choose>
|
---|
303 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or not(util:contains(/page/pageResponse/document/@selectedNode, '.'))">
|
---|
304 | <div id="gs-document">
|
---|
305 | <xsl:call-template name="documentPre"/>
|
---|
306 | <div id="gs-document-text" class="documenttext" collection="{/page/pageResponse/collection/@name}"><!-- *** -->
|
---|
307 | <xsl:call-template name="wrapDocumentNodes"/>
|
---|
308 | </div>
|
---|
309 | </div>
|
---|
310 | </xsl:when>
|
---|
311 | <xsl:otherwise>
|
---|
312 | <div id="gs-document">
|
---|
313 | <div id="tocLoadingImage" style="text-align:center;">
|
---|
314 | <img src="{util:getInterfaceText($interface_name, /page/@lang, 'loading_image')}"/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.loading')"/><xsl:text>...</xsl:text>
|
---|
315 | </div>
|
---|
316 | </div>
|
---|
317 | <script type="text/javascript">
|
---|
318 | <xsl:text disable-output-escaping="yes">
|
---|
319 | $(window).load(function()
|
---|
320 | {
|
---|
321 | loadTopLevelPage(function()
|
---|
322 | {
|
---|
323 | focusSection("</xsl:text><xsl:value-of select="/page/pageResponse/document/@selectedNode"/><xsl:text disable-output-escaping="yes">");
|
---|
324 | });
|
---|
325 | console.log("HASH IS " + gs.functions.hashString("" + (new Date()).getTime()) + " ON " + (new Date()).getTime());
|
---|
326 | });
|
---|
327 | </xsl:text>
|
---|
328 | </script>
|
---|
329 | </xsl:otherwise>
|
---|
330 | </xsl:choose>
|
---|
331 | </xsl:otherwise>
|
---|
332 | </xsl:choose>
|
---|
333 |
|
---|
334 | <div class="clear"><xsl:text> </xsl:text></div>
|
---|
335 | </xsl:template>
|
---|
336 |
|
---|
337 | <xsl:template name="editBar">
|
---|
338 | <table style="width:100%"><tr>
|
---|
339 | <td id="editBarLeft" style="width:70%"><xsl:text> </xsl:text></td>
|
---|
340 | <td id="editBarRight">
|
---|
341 | <div style="text-align:center;">
|
---|
342 | <div style="margin:5px;" class="ui-state-default ui-corner-all">
|
---|
343 | <a style="padding: 3px; text-decoration:none;" href="{$library_name}?a=g&sa=documentbasket&c=&s=DisplayDocumentList&rt=r&p.c={/page/pageResponse/collection/@name}&docToEdit={/page/pageResponse/document/documentNode/@nodeID}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.edit_structure')"/></a>
|
---|
344 | </div>
|
---|
345 | <div style="margin:5px;" class="ui-state-default ui-corner-all">
|
---|
346 | <a id="editContentButton" style="padding: 3px; text-decoration:none;" href="javascript:readyPageForEditing();"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.edit_content')"/></a>
|
---|
347 | </div>
|
---|
348 | </div>
|
---|
349 | </td>
|
---|
350 | </tr></table>
|
---|
351 | <xsl:call-template name="document-editor-language-fragments"/>
|
---|
352 | </xsl:template>
|
---|
353 |
|
---|
354 | <xsl:template name="rightSidebar">
|
---|
355 | <table id="rightSidebar">
|
---|
356 | <tr><td>
|
---|
357 | <xsl:call-template name="viewOptions"/>
|
---|
358 | </td></tr>
|
---|
359 | <tr><td>
|
---|
360 | <div id="contentsArea">
|
---|
361 | <!-- show the berry basket if it's turned on -->
|
---|
362 | <gslib:berryBasket/>
|
---|
363 |
|
---|
364 | <!-- the book's cover image -->
|
---|
365 | <div id="coverImage">
|
---|
366 | <xsl:attribute name="class">
|
---|
367 | <xsl:choose>
|
---|
368 | <xsl:when test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='coverImage']) or /page/pageResponse/format[@type='display']/gsf:option[@name='coverImage']/@value='true'">visible</xsl:when>
|
---|
369 | <xsl:otherwise>hidden</xsl:otherwise>
|
---|
370 | </xsl:choose>
|
---|
371 | </xsl:attribute>
|
---|
372 | <gslib:coverImage/><xsl:text> </xsl:text>
|
---|
373 | </div>
|
---|
374 |
|
---|
375 | <!-- the contents (if enabled) -->
|
---|
376 | <xsl:choose>
|
---|
377 | <xsl:when test="/page/pageResponse/document/@docType = 'paged'">
|
---|
378 | <!-- Table of contents will be dynamically retrieved when viewing a paged document -->
|
---|
379 | <script type="text/javascript">
|
---|
380 | <xsl:text disable-output-escaping="yes">
|
---|
381 | $(window).load(function()
|
---|
382 | {
|
---|
383 | retrieveTableOfContentsAndTitles();
|
---|
384 | });
|
---|
385 | </xsl:text>
|
---|
386 | </script>
|
---|
387 | <div id="tocLoadingImage" style="text-align:center;">
|
---|
388 | <img src="{util:getInterfaceText($interface_name, /page/@lang, 'loading_image')}"/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.loading')"/><xsl:text>...</xsl:text>
|
---|
389 | </div>
|
---|
390 | </xsl:when>
|
---|
391 | <xsl:when test="not(/page/pageRequest/paramList/param[@name = 'ed']/@value = '1')">
|
---|
392 | <div id="tableOfContents">
|
---|
393 | <div id="tocLoadingImage" style="text-align:center;">
|
---|
394 | <img src="{util:getInterfaceText($interface_name, /page/@lang, 'loading_image')}"/><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.loading')"/><xsl:text>...</xsl:text>
|
---|
395 | </div>
|
---|
396 | </div>
|
---|
397 | <script type="text/javascript">
|
---|
398 | <xsl:text disable-output-escaping="yes">
|
---|
399 | $(window).load(function()
|
---|
400 | {
|
---|
401 | retrieveFullTableOfContents();
|
---|
402 | });
|
---|
403 | </xsl:text>
|
---|
404 | </script>
|
---|
405 | </xsl:when>
|
---|
406 | <xsl:otherwise>
|
---|
407 | <div id="tableOfContents">
|
---|
408 | <xsl:attribute name="class">
|
---|
409 | <xsl:choose>
|
---|
410 | <xsl:when test="count(//documentNode) > 1 and not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'">visible</xsl:when>
|
---|
411 | <xsl:otherwise>hidden</xsl:otherwise>
|
---|
412 | </xsl:choose>
|
---|
413 | </xsl:attribute>
|
---|
414 | <xsl:apply-templates select="documentNode" mode="TOC"/>
|
---|
415 | <xsl:if test="@docType = 'paged'">
|
---|
416 | <table style="width:100%;"><tbody><tr>
|
---|
417 | <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.filter_pages')"/><xsl:text>: </xsl:text><input id="filterText" type="text" size="27"/></td>
|
---|
418 | </tr></tbody></table>
|
---|
419 | </xsl:if>
|
---|
420 | </div>
|
---|
421 | </xsl:otherwise>
|
---|
422 | </xsl:choose>
|
---|
423 | </div>
|
---|
424 | </td></tr>
|
---|
425 | </table>
|
---|
426 | </xsl:template>
|
---|
427 |
|
---|
428 | <!-- Highlight annotations if requested -->
|
---|
429 | <xsl:template match="annotation">
|
---|
430 | <xsl:choose>
|
---|
431 | <xsl:when test="/page/pageRequest/paramList/param[@name='hl' and @value='on']">
|
---|
432 | <span class="termHighlight"><xsl:value-of select="."/></span>
|
---|
433 | </xsl:when>
|
---|
434 | <xsl:otherwise>
|
---|
435 | <span class="noTermHighlight"><xsl:value-of select="."/></span>
|
---|
436 | </xsl:otherwise>
|
---|
437 | </xsl:choose>
|
---|
438 | </xsl:template>
|
---|
439 |
|
---|
440 | <xsl:template match="documentNode" mode="sectionTitleFormat">
|
---|
441 | <p>
|
---|
442 | <xsl:attribute name="class"><xsl:value-of select="util:hashToDepthClass(@nodeID)"/> sectionHeader</xsl:attribute>
|
---|
443 |
|
---|
444 | <xsl:if test="util:hashToSectionId(@nodeID)">
|
---|
445 | <span class="sectionNumberSpan">
|
---|
446 | <xsl:value-of select="util:hashToSectionId(@nodeID)"/>
|
---|
447 | <xsl:text> </xsl:text>
|
---|
448 | </span>
|
---|
449 | </xsl:if>
|
---|
450 | <!-- Display the title for the section regardless of whether automatic section numbering is turned on -->
|
---|
451 | <span><xsl:apply-templates select="." mode="sectionTitle"/></span>
|
---|
452 | </p>
|
---|
453 | </xsl:template>
|
---|
454 |
|
---|
455 | <!-- The default template for displaying section titles -->
|
---|
456 | <xsl:template match="documentNode" mode="sectionTitle">
|
---|
457 | <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/>
|
---|
458 | </xsl:template>
|
---|
459 |
|
---|
460 | <!-- The default template for displaying the document content -->
|
---|
461 | <xsl:template match="documentNode" mode="document">
|
---|
462 | <!-- Section text -->
|
---|
463 | <xsl:for-each select="nodeContent">
|
---|
464 | <xsl:for-each select="node()">
|
---|
465 | <xsl:choose>
|
---|
466 | <xsl:when test="not(name())">
|
---|
467 | <xsl:value-of select="." disable-output-escaping="yes"/>
|
---|
468 | </xsl:when>
|
---|
469 | <xsl:otherwise>
|
---|
470 | <xsl:apply-templates select="."/>
|
---|
471 | </xsl:otherwise>
|
---|
472 | </xsl:choose>
|
---|
473 | </xsl:for-each>
|
---|
474 | </xsl:for-each><xsl:text> </xsl:text>
|
---|
475 | </xsl:template>
|
---|
476 |
|
---|
477 | <!-- This template is used to display the table of contents -->
|
---|
478 | <xsl:template match="documentNode" mode="TOC">
|
---|
479 |
|
---|
480 | <!-- check if this is the currently selected table of contents item -->
|
---|
481 | <xsl:variable name="isCurrent" select="nodeContent"/>
|
---|
482 |
|
---|
483 | <!-- formulate the link -->
|
---|
484 | <xsl:variable name="contentsLink">
|
---|
485 | <xsl:value-of select='$library_name'/>?a=d&c=<gslib:collectionNameShort/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if>&sib=1
|
---|
486 | </xsl:variable>
|
---|
487 |
|
---|
488 | <ul>
|
---|
489 | <table><tr>
|
---|
490 | <!-- The expand/collapse button (not displayed for the top level node) -->
|
---|
491 | <xsl:if test="util:hashToDepthClass(@nodeID) != 'sectionHeaderDepthTitle'">
|
---|
492 | <td>
|
---|
493 | <xsl:choose>
|
---|
494 | <xsl:when test="not(nodeContent and not(documentNode))">
|
---|
495 | <img id="ttoggle{@nodeID}" onclick="toggleSection('{@nodeID}');" class="icon">
|
---|
496 | <xsl:attribute name="src">
|
---|
497 | <xsl:choose>
|
---|
498 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or /page/pageResponse/document/@selectedNode = @nodeID">
|
---|
499 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')"/>
|
---|
500 | </xsl:when>
|
---|
501 | <xsl:otherwise>
|
---|
502 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
|
---|
503 | </xsl:otherwise>
|
---|
504 | </xsl:choose>
|
---|
505 | </xsl:attribute>
|
---|
506 | </img>
|
---|
507 | </xsl:when>
|
---|
508 | <xsl:otherwise>
|
---|
509 | <xsl:attribute name="class">emptyIcon</xsl:attribute>
|
---|
510 | </xsl:otherwise>
|
---|
511 | </xsl:choose>
|
---|
512 | </td>
|
---|
513 | </xsl:if>
|
---|
514 |
|
---|
515 | <!-- The chapter/page icon -->
|
---|
516 | <td>
|
---|
517 | <img>
|
---|
518 | <xsl:if test="nodeContent and not(documentNode)">
|
---|
519 | <xsl:attribute name="class">leafNode</xsl:attribute>
|
---|
520 | </xsl:if>
|
---|
521 |
|
---|
522 | <xsl:attribute name="src">
|
---|
523 | <xsl:choose>
|
---|
524 | <xsl:when test="nodeContent and not(documentNode)">
|
---|
525 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_image')"/>
|
---|
526 | </xsl:when>
|
---|
527 | <xsl:otherwise>
|
---|
528 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'chapter_image')"/>
|
---|
529 | </xsl:otherwise>
|
---|
530 | </xsl:choose>
|
---|
531 | </xsl:attribute>
|
---|
532 | </img>
|
---|
533 | </td>
|
---|
534 |
|
---|
535 | <!-- The section name, links to the section in the document -->
|
---|
536 | <td>
|
---|
537 | <a id="toclink{@nodeID}">
|
---|
538 | <xsl:choose>
|
---|
539 | <xsl:when test="/page/pageResponse/document/@docType = 'paged'">
|
---|
540 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=b&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/></xsl:attribute>
|
---|
541 | </xsl:when>
|
---|
542 | <xsl:otherwise>
|
---|
543 | <xsl:attribute name="href">javascript:focusSection('<xsl:value-of select="@nodeID"/>');</xsl:attribute>
|
---|
544 | </xsl:otherwise>
|
---|
545 | </xsl:choose>
|
---|
546 | <xsl:if test="util:hashToSectionId(@nodeID)">
|
---|
547 | <xsl:value-of select="util:hashToSectionId(@nodeID)"/>
|
---|
548 | <xsl:text> </xsl:text>
|
---|
549 | </xsl:if>
|
---|
550 | <xsl:apply-templates select="." mode="sectionTitle"/>
|
---|
551 | </a>
|
---|
552 | </td>
|
---|
553 | </tr></table>
|
---|
554 |
|
---|
555 | <!-- display any child items -->
|
---|
556 | <xsl:if test="documentNode">
|
---|
557 | <li id="toc{@nodeID}">
|
---|
558 | <xsl:attribute name="style">
|
---|
559 | <xsl:choose>
|
---|
560 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'ed']/@value = '1' or /page/pageResponse/document/@selectedNode = @nodeID">
|
---|
561 | <xsl:text>display:block;</xsl:text>
|
---|
562 | </xsl:when>
|
---|
563 | <xsl:otherwise>
|
---|
564 | <xsl:text>display:none;</xsl:text>
|
---|
565 | </xsl:otherwise>
|
---|
566 | </xsl:choose>
|
---|
567 | </xsl:attribute>
|
---|
568 | <xsl:apply-templates select="documentNode" mode="TOC"/>
|
---|
569 | </li>
|
---|
570 | </xsl:if>
|
---|
571 |
|
---|
572 | </ul>
|
---|
573 | </xsl:template>
|
---|
574 |
|
---|
575 | <!-- Used to produce a version of the page in a format that can be read by the realistic books plugin -->
|
---|
576 | <xsl:template match="documentNode" mode="flashxml">
|
---|
577 | <xsl:text disable-output-escaping="yes">
|
---|
578 | <Section>
|
---|
579 | <Description>
|
---|
580 | <Metadata name="Title">
|
---|
581 | </xsl:text>
|
---|
582 | <xsl:value-of select="normalize-space(metadataList/metadata[@name = 'Title'])"/>
|
---|
583 | <xsl:text disable-output-escaping="yes">
|
---|
584 | </Metadata>
|
---|
585 | </Description>
|
---|
586 | </xsl:text>
|
---|
587 |
|
---|
588 | <xsl:value-of select="normalize-space(nodeContent)" disable-output-escaping="yes"/>
|
---|
589 |
|
---|
590 | <xsl:if test="documentNode">
|
---|
591 | <xsl:apply-templates select="documentNode" mode="flashxml"/>
|
---|
592 | </xsl:if>
|
---|
593 |
|
---|
594 | <xsl:text disable-output-escaping="yes">
|
---|
595 | </Section>
|
---|
596 | </xsl:text>
|
---|
597 | </xsl:template>
|
---|
598 |
|
---|
599 | <xsl:template name="externalPage">
|
---|
600 | <xsl:param name="external"/>
|
---|
601 | <xsl:variable name="go_forward_link">
|
---|
602 | <a>
|
---|
603 | <xsl:attribute name="href">
|
---|
604 | <xsl:value-of select="$external"/>
|
---|
605 | </xsl:attribute>
|
---|
606 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/>
|
---|
607 | </a>
|
---|
608 | </xsl:variable>
|
---|
609 | <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2>
|
---|
610 | <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/></p>
|
---|
611 | </xsl:template>
|
---|
612 |
|
---|
613 | <xsl:template match="/page"><xsl:apply-templates select="/page/pageResponse/document"/></xsl:template> <!-- this to be deleted eventually -->
|
---|
614 |
|
---|
615 | <xsl:template name="viewOptions">
|
---|
616 | <table class="viewOptions ui-state-default ui-corner-all"><tr>
|
---|
617 |
|
---|
618 | <!-- Paged-image options -->
|
---|
619 | <xsl:if test="count(//documentNode/metadataList/metadata[@name = 'Screen']) > 0 or /page/pageRequest/paramList/param[@name = 'dt']/@value = 'paged'">
|
---|
620 | <td>
|
---|
621 | <select id="viewSelection" onchange="changeView();">
|
---|
622 | <xsl:choose>
|
---|
623 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'view']/@value = 'image'">
|
---|
624 | <option>Default view</option>
|
---|
625 | <option selected="true">Image view</option>
|
---|
626 | <option>Text view</option>
|
---|
627 | </xsl:when>
|
---|
628 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'view']/@value = 'text'">
|
---|
629 | <option>Default view</option>
|
---|
630 | <option>Image view</option>
|
---|
631 | <option selected="true">Text view</option>
|
---|
632 | </xsl:when>
|
---|
633 | <xsl:otherwise>
|
---|
634 | <option selected="true">Default view</option>
|
---|
635 | <option>Image view</option>
|
---|
636 | <option>Text view</option>
|
---|
637 | </xsl:otherwise>
|
---|
638 | </xsl:choose>
|
---|
639 | </select>
|
---|
640 | </td>
|
---|
641 | </xsl:if>
|
---|
642 |
|
---|
643 | <!-- Realistic books link -->
|
---|
644 | <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'">
|
---|
645 | <td>
|
---|
646 | <img>
|
---|
647 | <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'realistic_books_image')"/></xsl:attribute>
|
---|
648 | </img>
|
---|
649 | <input id="rbOption" type="checkbox" onclick="bookInit();" class="optionCheckBox"/>
|
---|
650 | </td>
|
---|
651 | </xsl:if>
|
---|
652 |
|
---|
653 | <!-- Highlight on/off button -->
|
---|
654 | <xsl:if test="/page/pageRequest/paramList/param[@name = 'p.a']/@value = 'q' or /page/pageRequest/paramList/param[@name = 's1.query']">
|
---|
655 | <td>
|
---|
656 | <img>
|
---|
657 | <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'highlight_image')"/></xsl:attribute>
|
---|
658 | </img>
|
---|
659 | <input id="highlightOption" type="checkbox" class="optionCheckBox">
|
---|
660 | <xsl:choose>
|
---|
661 | <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'">
|
---|
662 | <xsl:attribute name="onclick">
|
---|
663 | <xsl:text>removeHighlight();</xsl:text>
|
---|
664 | </xsl:attribute>
|
---|
665 | <xsl:attribute name="checked">true</xsl:attribute>
|
---|
666 | </xsl:when>
|
---|
667 | <xsl:otherwise>
|
---|
668 | <xsl:attribute name="onclick">
|
---|
669 | <xsl:text>addHighlight();</xsl:text>
|
---|
670 | </xsl:attribute>
|
---|
671 | </xsl:otherwise>
|
---|
672 | </xsl:choose>
|
---|
673 | </input>
|
---|
674 | </td>
|
---|
675 | </xsl:if>
|
---|
676 | <td style="vertical-align:top; text-align:right;">
|
---|
677 | <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='TOC']) or /page/pageResponse/format[@type='display']/gsf:option[@name='TOC']/@value='true'">
|
---|
678 | <span class="tableOfContentsTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/></span>
|
---|
679 |
|
---|
680 | <a id="sidebarMinimizeButton" href="javascript:minimizeSidebar();" style="float: right; font-size:0.6em;">
|
---|
681 | <img class="icon" style="padding-top:3px;">
|
---|
682 | <xsl:attribute name="src">
|
---|
683 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')"/>
|
---|
684 | </xsl:attribute>
|
---|
685 | </img>
|
---|
686 | </a>
|
---|
687 | <a id="sidebarMaximizeButton" href="javascript:maximizeSidebar();" style="float: right; font-size:0.6em; display:none;">
|
---|
688 | <img class="icon" style="padding-top:3px;">
|
---|
689 | <xsl:attribute name="src">
|
---|
690 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
|
---|
691 | </xsl:attribute>
|
---|
692 | </img>
|
---|
693 | </a>
|
---|
694 | </xsl:if>
|
---|
695 | </td>
|
---|
696 | </tr>
|
---|
697 | <xsl:if test="count(//documentNode/metadataList/metadata[@name = 'Screen']) > 0 and count(//documentNode/metadataList/metadata[@name = 'Source']) > 0">
|
---|
698 | <tr>
|
---|
699 | <td style="width:40%;">
|
---|
700 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.zoom')"/><input id="zoomToggle" type="checkbox"/>
|
---|
701 | <script type="text/javascript">
|
---|
702 | <xsl:text disable-output-escaping="yes">
|
---|
703 | $("#zoomToggle").change(function()
|
---|
704 | {
|
---|
705 | _imageZoomEnabled = !_imageZoomEnabled;
|
---|
706 | });
|
---|
707 | </xsl:text>
|
---|
708 | </script>
|
---|
709 | </td>
|
---|
710 | <td style="width:60%;">
|
---|
711 | <div>
|
---|
712 | <div style="float:left; width:30%;"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.zoom_size')"/><xsl:text>:</xsl:text></div>
|
---|
713 | <div id="zoomSlider" style="float:right; width:65%; height:5px; margin-top:6px;"><xsl:text> </xsl:text></div>
|
---|
714 | <script type="text/javascript">
|
---|
715 | <xsl:text disable-output-escaping="yes">
|
---|
716 | $("#zoomSlider").slider(
|
---|
717 | {
|
---|
718 | change: function(event, ui)
|
---|
719 | {
|
---|
720 | var sliderValue = ui.value;
|
---|
721 | var divs = document.getElementsByTagName("DIV");
|
---|
722 | for(var i = 0; i < divs.length; i++)
|
---|
723 | {
|
---|
724 | if(divs[i].getAttribute("id") && divs[i].getAttribute("id").search(/^mover.*/) != -1)
|
---|
725 | {
|
---|
726 | divs[i].style.height = 200 + (2 * sliderValue) + "px";
|
---|
727 | divs[i].style.width = 200 + (2 * sliderValue) + "px";
|
---|
728 | }
|
---|
729 | }
|
---|
730 | }
|
---|
731 | });
|
---|
732 | </xsl:text>
|
---|
733 | </script>
|
---|
734 | <style>
|
---|
735 | .ui-slider .ui-slider-handle{height:0.8em; width:1.0em;}
|
---|
736 | </style>
|
---|
737 | <div style="float:clear;"><xsl:text> </xsl:text></div>
|
---|
738 | </div>
|
---|
739 | </td>
|
---|
740 | </tr>
|
---|
741 | </xsl:if>
|
---|
742 | </table>
|
---|
743 | </xsl:template>
|
---|
744 |
|
---|
745 | <xsl:template name="documentPre">
|
---|
746 | <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
|
---|
747 | <xsl:call-template name="mapFeatures"/>
|
---|
748 | </xsl:if>
|
---|
749 | </xsl:template>
|
---|
750 |
|
---|
751 | <xsl:template name="mapFeatures">
|
---|
752 | <div id="map_canvas"><xsl:text> </xsl:text></div>
|
---|
753 |
|
---|
754 | <xsl:if test="metadataList/metadata[@name = 'Latitude'] and metadataList/metadata[@name = 'Longitude']">
|
---|
755 | <div style="background:#BBFFBB; padding: 5px; margin:0px auto; width:890px;">
|
---|
756 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.maps.nearby_docs')"/>
|
---|
757 | <img id="nearbyDocumentsToggle" src="interfaces/oran/images/expand.png">
|
---|
758 | <xsl:attribute name="onclick">
|
---|
759 | <xsl:text>performDistanceSearch('</xsl:text>
|
---|
760 | <xsl:value-of select="@nodeID"/>
|
---|
761 | <xsl:text>', '</xsl:text>
|
---|
762 | <gsf:metadata name="Latitude"/>
|
---|
763 | <xsl:text>', '</xsl:text>
|
---|
764 | <gsf:metadata name="Longitude"/>
|
---|
765 | <xsl:text>', 2);</xsl:text>
|
---|
766 | </xsl:attribute>
|
---|
767 | </img>
|
---|
768 | <div id="nearbyDocuments"><xsl:text> </xsl:text></div>
|
---|
769 | </div>
|
---|
770 | </xsl:if>
|
---|
771 |
|
---|
772 | <div id="jsonNodes" style="display:none;">
|
---|
773 | <xsl:text>[</xsl:text>
|
---|
774 | <xsl:for-each select="//documentNode">
|
---|
775 | <xsl:if test="metadataList/metadata[@name = 'Latitude'] and metadataList/metadata[@name = 'Longitude']">
|
---|
776 | <xsl:text>{</xsl:text>
|
---|
777 | <xsl:text disable-output-escaping="yes">"nodeID":"</xsl:text><xsl:value-of select="@nodeID"/><xsl:text disable-output-escaping="yes">",</xsl:text>
|
---|
778 | <xsl:text disable-output-escaping="yes">"title":"</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/><xsl:text disable-output-escaping="yes">",</xsl:text>
|
---|
779 | <xsl:text disable-output-escaping="yes">"lat":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Latitude']"/><xsl:text>,</xsl:text>
|
---|
780 | <xsl:text disable-output-escaping="yes">"lng":</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Longitude']"/>
|
---|
781 | <xsl:text>}</xsl:text>
|
---|
782 | <xsl:if test="not(position() = count(//documentNode))">
|
---|
783 | <xsl:text>,</xsl:text>
|
---|
784 | </xsl:if>
|
---|
785 | </xsl:if>
|
---|
786 | </xsl:for-each>
|
---|
787 | <xsl:text>]</xsl:text>
|
---|
788 | </div>
|
---|
789 | </xsl:template>
|
---|
790 | </xsl:stylesheet>
|
---|
791 |
|
---|