Project

General

Profile

1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *         National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author: leinfelder $'
10
  *     '$Date: 2013-07-22 16:59:47 -0700 (Mon, 22 Jul 2013) $'
11
  * '$Revision: 8071 $'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-dataset.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33
  <xsl:import href="eml-access.xsl"/>
34
  <xsl:import href="eml-additionalmetadata.xsl"/>
35
  <xsl:import href="eml-attribute.xsl"/>
36
  <xsl:import href="eml-attribute-enumeratedDomain.xsl"/>
37
  <xsl:import href="eml-constraint.xsl"/>
38
  <xsl:import href="eml-coverage.xsl"/>
39
  <xsl:import href="eml-dataset.xsl"/>
40
  <xsl:import href="eml-datatable.xsl"/>
41
  <xsl:import href="eml-distribution.xsl"/>
42
  <xsl:import href="eml-entity.xsl"/>
43
  <xsl:import href="eml-identifier.xsl"/>
44
  <xsl:import href="eml-literature.xsl"/>
45
  <xsl:import href="eml-method.xsl"/>
46
  <xsl:import href="eml-otherentity.xsl"/>
47
  <xsl:import href="eml-party.xsl"/>
48
  <xsl:import href="eml-physical.xsl"/>
49
  <xsl:import href="eml-project.xsl"/>
50
  <xsl:import href="eml-protocol.xsl"/>
51
  <xsl:import href="eml-resource.xsl"/>
52
  <xsl:import href="eml-settings.xsl"/>
53
  <xsl:import href="eml-software.xsl"/>
54
  <xsl:import href="eml-spatialraster.xsl"/>
55
  <xsl:import href="eml-spatialvector.xsl"/>
56
  <xsl:import href="eml-storedprocedure.xsl"/>
57
  <xsl:import href="eml-text.xsl"/>
58
  <xsl:import href="eml-view.xsl"/>
59

    
60
  <!-- global variables to store id node set in case to be referenced-->
61
  <xsl:variable name="ids" select="//*[@id!='']"/>
62

    
63
   <xsl:template match="*[local-name()='eml']">
64
   	<form class="form-horizontal">
65
   	
66
     <xsl:for-each select="dataset">
67
       <xsl:call-template name="emldataset"/>
68
     </xsl:for-each>
69
     <xsl:for-each select="citation">
70
       <xsl:call-template name="emlcitation"/>
71
     </xsl:for-each>
72
     <xsl:for-each select="software">
73
       <xsl:call-template name="emlsoftware"/>
74
     </xsl:for-each>
75
     <xsl:for-each select="protocol">
76
       <xsl:call-template name="emlprotocol"/>
77
     </xsl:for-each>
78
     <xsl:for-each select="access">
79
		<xsl:call-template name="topaccess"/>
80
	 </xsl:for-each>
81
     <!-- Additional metadata-->
82
     <xsl:choose>
83
       <xsl:when test="$displaymodule='additionalmetadata' or $displaymodule='printall'">
84
         <xsl:for-each select="additionalMetadata">
85
           <xsl:if test="$additionalmetadataindex=position()">
86
                 <xsl:call-template name="additionalmetadatapart"/>
87
            </xsl:if>
88
         </xsl:for-each>
89
       </xsl:when>
90
       <xsl:otherwise>
91
         <xsl:if test="$displaymodule='dataset' or $displaymodule='printall'">
92
           <xsl:if test="$withAdditionalMetadataLink='1'">
93
             <xsl:for-each select="additionalMetadata">
94
               <div class="{$tabledefaultStyle}">
95
                 <xsl:call-template name="additionalmetadataURL">
96
                    <xsl:with-param name="index" select="position()"/>
97
                  </xsl:call-template>
98
               </div>
99
             </xsl:for-each>
100
           </xsl:if>
101
         </xsl:if>
102
       </xsl:otherwise>
103
     </xsl:choose>
104
     <!-- xml format-->
105
     <xsl:if test="$displaymodule='dataset'">
106
       <xsl:if test="$withOriginalXMLLink='1'">
107
		<xsl:call-template name="xml"/>			         
108
       </xsl:if>
109
     </xsl:if>
110
     
111
     </form>
112
   </xsl:template>
113

    
114
   <!--********************************************************
115
                       dataset part
116
       ********************************************************-->
117

    
118
   <xsl:template name="emldataset">
119
    <xsl:if test="$displaymodule='dataset'">
120
    	<div>
121
			<xsl:call-template name="datasetpart"/>
122
		</div>	
123
    </xsl:if>
124
    <xsl:if test="$displaymodule='entity'">
125
       <xsl:call-template name="entitypart"/>
126
    </xsl:if>
127
    <xsl:if test="$displaymodule='attribute'">
128
       <xsl:call-template name="attributepart"/>
129
    </xsl:if>
130
    <xsl:if test="$displaymodule='attributedomain'">
131
       <xsl:call-template name="datasetattributedomain"/>
132
    </xsl:if>
133
    <xsl:if test="$displaymodule='attributecoverage'">
134
       <xsl:call-template name="datasetattributecoverage"/>
135
    </xsl:if>
136
    <xsl:if test="$displaymodule='attributemethod'">
137
       <xsl:call-template name="datasetattributemethod"/>
138
    </xsl:if>
139
    <xsl:if test="$displaymodule='inlinedata'">
140
       <xsl:call-template name="emlinlinedata"/>
141
    </xsl:if>
142
    <xsl:if test="$displaymodule='attributedetail'">
143
       <xsl:call-template name="entityparam"/>
144
    </xsl:if>
145
    <xsl:if test="$displaymodule='printall'">
146
		<xsl:call-template name="printalltemplate"/>
147
	</xsl:if>
148
   </xsl:template>
149

    
150
   <!--*************** Data set diaplay *************-->
151
   <xsl:template name="datasetpart">
152
       <xsl:apply-templates select="." mode="dataset"/>
153
   </xsl:template>
154

    
155
   <!--************ Entity diplay *****************-->
156
   <xsl:template name="entitypart">
157
       <xsl:choose>
158
         <xsl:when test="references!=''">
159
            <xsl:variable name="ref_id" select="references"/>
160
            <xsl:variable name="references" select="$ids[@id=$ref_id]" />
161
            <xsl:for-each select="$references">
162
               <xsl:call-template name="entitypartcommon"/>
163
            </xsl:for-each>
164
         </xsl:when>
165
         <xsl:otherwise>
166
            <xsl:call-template name="entitypartcommon"/>
167
        </xsl:otherwise>
168
   </xsl:choose>
169
    </xsl:template>
170

    
171

    
172
    <xsl:template name="entitypartcommon">
173
      <h4>Data Object Details</h4>
174
      
175
      <div class="row-fluid">
176
		<!-- find the subtree to process -->
177
		<xsl:call-template name="entityparam"/>
178
      </div>
179
   </xsl:template>
180

    
181
   <!--************ Attribute display *****************-->
182
   <xsl:template name="attributedetailpart">
183
   </xsl:template>
184

    
185
    <xsl:template name="attributepart">
186
      <h3>Attributes Description</h3>
187
        <!-- find the subtree to process -->
188
      <xsl:if test="$entitytype='dataTable'">
189
        <xsl:for-each select="dataTable">
190
            <xsl:if test="position()=$entityindex">
191
                <xsl:for-each select="attributeList">
192
                   <xsl:call-template name="attributelist">
193
                      <xsl:with-param name="docid" select="$docid"/>
194
                      <xsl:with-param name="entitytype" select="$entitytype"/>
195
                      <xsl:with-param name="entityindex" select="$entityindex"/>
196
                   </xsl:call-template>
197
                </xsl:for-each>
198
            </xsl:if>
199
        </xsl:for-each>
200
      </xsl:if>
201
   </xsl:template>
202

    
203
   <!--************************Attribute Domain display module************************-->
204
   <xsl:template name="datasetattributedomain">
205
   		<h3>Attribute Domain</h3>
206
		<!-- find the subtree to process -->
207
		<xsl:call-template name="entityparam"/>
208
   </xsl:template>
209

    
210

    
211
   <!--************************Attribute Method display module************************-->
212
   <xsl:template name="datasetattributemethod">
213
		<h3>Attribute Method</h3>
214
		<!-- find the subtree to process -->
215
		<xsl:call-template name="entityparam"/>
216
   </xsl:template>
217

    
218

    
219
   <!--************************Attribute Coverage display module************************-->
220
   <xsl:template name="datasetattributecoverage">
221
		<h3>Attribute Coverage</h3>
222
		<!-- find the subtree to process -->
223
		<xsl:call-template name="entityparam"/>
224
   </xsl:template>
225

    
226
   <!--************************Print all display module************************-->
227
   <xsl:template name="printalltemplate">
228
		<!-- find the subtree to process -->
229
		<xsl:call-template name="datasetpart"/>
230
   </xsl:template>
231

    
232
   <xsl:template name="entityparam">
233
     <xsl:choose>
234
      <xsl:when test="$entitytype=''">
235
        <xsl:variable name="dataTableCount" select="0"/>
236
        <xsl:variable name="spatialRasterCount" select="0"/>
237
        <xsl:variable name="spatialVectorCount" select="0"/>
238
        <xsl:variable name="storedProcedureCount" select="0"/>
239
        <xsl:variable name="viewCount" select="0"/>
240
        <xsl:variable name="otherEntityCount" select="0"/>
241
        <xsl:for-each select="dataTable|spatialRaster|spatialVector|storedProcedure|view|otherEntity">
242

    
243
        <xsl:if test="'dataTable' = name()">
244
           <xsl:variable name="currentNode" select="."/>
245
           <xsl:variable name="dataTableCount">
246
            <xsl:for-each select="../dataTable">
247
                  <xsl:if test=". = $currentNode">
248
                <xsl:value-of select="position()"/>
249
              </xsl:if>
250
            </xsl:for-each>
251
           </xsl:variable>
252
           <xsl:if test="position() = $entityindex">
253
             <xsl:choose>
254
               <xsl:when test="$displaymodule='attributedetail'">
255
                 <xsl:for-each select="attributeList">
256
                   <xsl:call-template name="singleattribute">
257
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
258
                    <xsl:with-param name="docid" select="$docid"/>
259
                    <xsl:with-param name="entitytype" select="'dataTable'"/>
260
                    <xsl:with-param name="entityindex" select="$dataTableCount"/>
261
                   </xsl:call-template>
262
                 </xsl:for-each>
263
               </xsl:when>
264
               <xsl:otherwise>
265
                 <xsl:for-each select="../.">
266
                   <xsl:call-template name="chooseentity">
267
                    <xsl:with-param name="entitytype" select="'dataTable'"/>
268
                    <xsl:with-param name="entityindex" select="$dataTableCount"/>
269
                   </xsl:call-template>
270
                  </xsl:for-each>
271
                  </xsl:otherwise>
272
                 </xsl:choose>
273
           </xsl:if>
274
        </xsl:if>
275

    
276
        <xsl:if test="'spatialRaster' = name()">
277
          <xsl:variable name="currentNode" select="."/>
278
           <xsl:variable name="spatialRasterCount">
279
            <xsl:for-each select="../spatialRaster">
280
                  <xsl:if test=". = $currentNode">
281
                <xsl:value-of select="position()"/>
282
              </xsl:if>
283
            </xsl:for-each>
284
           </xsl:variable>
285
            <xsl:if test="position() = $entityindex">
286
           <xsl:choose>
287
               <xsl:when test="$displaymodule='attributedetail'">
288
                 <xsl:for-each select="attributeList">
289
                   <xsl:call-template name="singleattribute">
290
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
291
                    <xsl:with-param name="docid" select="$docid"/>
292
                    <xsl:with-param name="entitytype" select="'spatialRaster'"/>
293
                    <xsl:with-param name="entityindex" select="$spatialRasterCount"/>
294
                   </xsl:call-template>
295
                 </xsl:for-each>
296
               </xsl:when>
297
               <xsl:otherwise>
298
                 <xsl:for-each select="../.">
299
                   <xsl:call-template name="chooseentity">
300
                    <xsl:with-param name="entitytype" select="'spatialRaster'"/>
301
                    <xsl:with-param name="entityindex" select="$spatialRasterCount"/>
302
                   </xsl:call-template>
303
                  </xsl:for-each>
304
                  </xsl:otherwise>
305
                 </xsl:choose>
306
            </xsl:if>
307
        </xsl:if>
308

    
309
        <xsl:if test="'spatialVector' = name()">
310
          <xsl:variable name="currentNode" select="."/>
311
           <xsl:variable name="spatialVectorCount">
312
            <xsl:for-each select="../spatialVector">
313
                  <xsl:if test=". = $currentNode">
314
                <xsl:value-of select="position()"/>
315
              </xsl:if>
316
            </xsl:for-each>
317
           </xsl:variable>
318
           <xsl:if test="position() = $entityindex">
319
             <xsl:choose>
320
               <xsl:when test="$displaymodule='attributedetail'">
321
                 <xsl:for-each select="attributeList">
322
                   <xsl:call-template name="singleattribute">
323
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
324
                    <xsl:with-param name="docid" select="$docid"/>
325
                    <xsl:with-param name="entitytype" select="'spatialVector'"/>
326
                    <xsl:with-param name="entityindex" select="$spatialVectorCount"/>
327
                   </xsl:call-template>
328
                 </xsl:for-each>
329
               </xsl:when>
330
               <xsl:otherwise>
331
                 <xsl:for-each select="../.">
332
                   <xsl:call-template name="chooseentity">
333
                    <xsl:with-param name="entitytype" select="'spatialVector'"/>
334
                    <xsl:with-param name="entityindex" select="$spatialVectorCount"/>
335
                   </xsl:call-template>
336
                  </xsl:for-each>
337
                  </xsl:otherwise>
338
                 </xsl:choose>
339
           </xsl:if>
340
        </xsl:if>
341

    
342
        <xsl:if test="'storedProcedure' = name()">
343
          <xsl:variable name="currentNode" select="."/>
344
           <xsl:variable name="storedProcedureCount">
345
            <xsl:for-each select="../storedProcedure">
346
                  <xsl:if test=". = $currentNode">
347
                <xsl:value-of select="position()"/>
348
              </xsl:if>
349
            </xsl:for-each>
350
           </xsl:variable>
351
           <xsl:if test="position() = $entityindex">
352
             <xsl:choose>
353
               <xsl:when test="$displaymodule='attributedetail'">
354
                 <xsl:for-each select="attributeList">
355
                   <xsl:call-template name="singleattribute">
356
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
357
                    <xsl:with-param name="docid" select="$docid"/>
358
                    <xsl:with-param name="entitytype" select="'storedProcedure'"/>
359
                    <xsl:with-param name="entityindex" select="$storedProcedureCount"/>
360
                   </xsl:call-template>
361
                 </xsl:for-each>
362
               </xsl:when>
363
               <xsl:otherwise>
364
                 <xsl:for-each select="../.">
365
                   <xsl:call-template name="chooseentity">
366
                    <xsl:with-param name="entitytype" select="'storedProcedure'"/>
367
                    <xsl:with-param name="entityindex" select="$storedProcedureCount"/>
368
                   </xsl:call-template>
369
                  </xsl:for-each>
370
                  </xsl:otherwise>
371
              </xsl:choose>
372
           </xsl:if>
373
        </xsl:if>
374

    
375
        <xsl:if test="'view' = name()">
376
          <xsl:variable name="currentNode" select="."/>
377
           <xsl:variable name="viewCount">
378
            <xsl:for-each select="../view">
379
                  <xsl:if test=". = $currentNode">
380
                <xsl:value-of select="position()"/>
381
              </xsl:if>
382
            </xsl:for-each>
383
           </xsl:variable>
384
           <xsl:if test="position() = $entityindex">
385
            <xsl:choose>
386
               <xsl:when test="$displaymodule='attributedetail'">
387
                 <xsl:for-each select="attributeList">
388
                   <xsl:call-template name="singleattribute">
389
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
390
                    <xsl:with-param name="docid" select="$docid"/>
391
                    <xsl:with-param name="entitytype" select="'view'"/>
392
                    <xsl:with-param name="entityindex" select="$viewCount"/>
393
                   </xsl:call-template>
394
                 </xsl:for-each>
395
               </xsl:when>
396
               <xsl:otherwise>
397
                 <xsl:for-each select="../.">
398
                   <xsl:call-template name="chooseentity">
399
                    <xsl:with-param name="entitytype" select="'view'"/>
400
                    <xsl:with-param name="entityindex" select="$viewCount"/>
401
                   </xsl:call-template>
402
                  </xsl:for-each>
403
                  </xsl:otherwise>
404
                 </xsl:choose>
405
            </xsl:if>
406
        </xsl:if>
407

    
408
        <xsl:if test="'otherEntityTable' = name()">
409
          <xsl:variable name="currentNode" select="."/>
410
           <xsl:variable name="otherEntityCount">
411
            <xsl:for-each select="../otherEntity">
412
                  <xsl:if test=". = $currentNode">
413
                <xsl:value-of select="position()"/>
414
              </xsl:if>
415
            </xsl:for-each>
416
           </xsl:variable>
417
           <xsl:if test="position() = $entityindex">
418
            <xsl:choose>
419
               <xsl:when test="$displaymodule='attributedetail'">
420
                 <xsl:for-each select="attributeList">
421
                   <xsl:call-template name="singleattribute">
422
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
423
                    <xsl:with-param name="docid" select="$docid"/>
424
                    <xsl:with-param name="entitytype" select="'otherEntity'"/>
425
                    <xsl:with-param name="entityindex" select="$otherEntityCount"/>
426
                   </xsl:call-template>
427
                 </xsl:for-each>
428
               </xsl:when>
429
               <xsl:otherwise>
430
                 <xsl:for-each select="../.">
431
                   <xsl:call-template name="chooseentity">
432
                    <xsl:with-param name="entitytype" select="'otherEntity'"/>
433
                    <xsl:with-param name="entityindex" select="$otherEntityCount"/>
434
                   </xsl:call-template>
435
                  </xsl:for-each>
436
                  </xsl:otherwise>
437
                 </xsl:choose>
438
             </xsl:if>
439
          </xsl:if>
440
        </xsl:for-each>
441
      </xsl:when>
442
      <xsl:otherwise>
443
  <xsl:choose>
444
     <xsl:when test="$displaymodule='attributedetail'">
445
      <xsl:for-each select="attributeList">
446
       <xsl:call-template name="singleattribute">
447
         <xsl:with-param name="attributeindex" select="$attributeindex"/>
448
         <xsl:with-param name="docid" select="$docid"/>
449
         <xsl:with-param name="entitytype" select="$entitytype"/>
450
         <xsl:with-param name="entityindex" select="$entityindex"/>
451
       </xsl:call-template>
452
      </xsl:for-each>
453
     </xsl:when>
454
     <xsl:otherwise>
455
       <xsl:call-template name="chooseentity">
456
         <xsl:with-param name="entitytype" select="$entitytype"/>
457
         <xsl:with-param name="entityindex" select="$entityindex"/>
458
       </xsl:call-template>
459
     </xsl:otherwise>
460
    </xsl:choose>
461
       </xsl:otherwise>
462
     </xsl:choose>
463
   </xsl:template>
464

    
465

    
466
   <xsl:template name="chooseentity" match='dataset'>
467
      <xsl:param name="entityindex"/>
468
      <xsl:param name="entitytype"/>
469
     <xsl:if test="$entitytype='dataTable'">
470
        <xsl:for-each select="dataTable">
471
            <xsl:if test="position()=$entityindex">
472
                   <xsl:choose>
473
                     <xsl:when test="references!=''">
474
                        <xsl:variable name="ref_id" select="references"/>
475
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
476
                          <xsl:for-each select="$references">
477
                              <xsl:choose>
478
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
479
                                    <xsl:call-template name="dataTable">
480
                                        <xsl:with-param name="datatablefirstColStyle" select="$firstColStyle"/>
481
                                        <xsl:with-param name="datatablesubHeaderStyle" select="$subHeaderStyle"/>
482
                                        <xsl:with-param name="docid" select="$docid"/>
483
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
484
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
485
                                    </xsl:call-template>
486
                                 </xsl:when>
487
                                 <xsl:otherwise>
488
                                    <xsl:call-template name="chooseattributelist"/>
489
                                 </xsl:otherwise>
490
                              </xsl:choose>
491
                          </xsl:for-each>
492
                     </xsl:when>
493
                     <xsl:otherwise>
494
                       <xsl:choose>
495
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
496
                                    <xsl:call-template name="dataTable">
497
                                        <xsl:with-param name="datatablefirstColStyle" select="$firstColStyle"/>
498
                                        <xsl:with-param name="datatablesubHeaderStyle" select="$subHeaderStyle"/>
499
                                        <xsl:with-param name="docid" select="$docid"/>
500
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
501
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
502
                                    </xsl:call-template>
503
                                 </xsl:when>
504
                                 <xsl:otherwise>
505
                                    <xsl:call-template name="chooseattributelist"/>
506
                                 </xsl:otherwise>
507
                       </xsl:choose>
508
                   </xsl:otherwise>
509
                </xsl:choose>
510
            </xsl:if>
511
        </xsl:for-each>
512
      </xsl:if>
513
      <xsl:if test="$entitytype='spatialRaster'">
514
        <xsl:for-each select="spatialRaster">
515
            <xsl:if test="position()=$entityindex">
516
                   <xsl:choose>
517
                     <xsl:when test="references!=''">
518
                        <xsl:variable name="ref_id" select="references"/>
519
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
520
                          <xsl:for-each select="$references">
521
                              <xsl:choose>
522
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
523
                                    <xsl:call-template name="spatialRaster">
524
                                        <xsl:with-param name="spatialrasterfirstColStyle" select="$firstColStyle"/>
525
                                        <xsl:with-param name="spatialrastersubHeaderStyle" select="$subHeaderStyle"/>
526
                                        <xsl:with-param name="docid" select="$docid"/>
527
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
528
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
529
                                    </xsl:call-template>
530
                                 </xsl:when>
531
                                 <xsl:otherwise>
532
                                    <xsl:call-template name="chooseattributelist"/>
533
                                 </xsl:otherwise>
534
                              </xsl:choose>
535
                          </xsl:for-each>
536
                     </xsl:when>
537
                     <xsl:otherwise>
538
                       <xsl:choose>
539
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
540
                                    <xsl:call-template name="spatialRaster">
541
                                        <xsl:with-param name="spatialrasterfirstColStyle" select="$firstColStyle"/>
542
                                        <xsl:with-param name="spatialrastersubHeaderStyle" select="$subHeaderStyle"/>
543
                                        <xsl:with-param name="docid" select="$docid"/>
544
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
545
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
546
                                    </xsl:call-template>
547
                                 </xsl:when>
548
                                 <xsl:otherwise>
549
                                    <xsl:call-template name="chooseattributelist"/>
550
                                 </xsl:otherwise>
551
                       </xsl:choose>
552
                   </xsl:otherwise>
553
                </xsl:choose>
554
            </xsl:if>
555
        </xsl:for-each>
556
      </xsl:if>
557
      <xsl:if test="$entitytype='spatialVector'">
558
        <xsl:for-each select="spatialVector">
559
            <xsl:if test="position()=$entityindex">
560
                   <xsl:choose>
561
                     <xsl:when test="references!=''">
562
                        <xsl:variable name="ref_id" select="references"/>
563
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
564
                          <xsl:for-each select="$references">
565
                              <xsl:choose>
566
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
567
                                    <xsl:call-template name="spatialVector">
568
                                       <xsl:with-param name="spatialvectorfirstColStyle" select="$firstColStyle"/>
569
                                        <xsl:with-param name="spatialvectorsubHeaderStyle" select="$subHeaderStyle"/>
570
                                        <xsl:with-param name="docid" select="$docid"/>
571
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
572
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
573
                                    </xsl:call-template>
574
                                 </xsl:when>
575
                                 <xsl:otherwise>
576
                                    <xsl:call-template name="chooseattributelist"/>
577
                                 </xsl:otherwise>
578
                              </xsl:choose>
579
                          </xsl:for-each>
580
                     </xsl:when>
581
                     <xsl:otherwise>
582
                       <xsl:choose>
583
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
584
                                    <xsl:call-template name="spatialVector">
585
                                        <xsl:with-param name="spatialvectorfirstColStyle" select="$firstColStyle"/>
586
                                        <xsl:with-param name="spatialvectorsubHeaderStyle" select="$subHeaderStyle"/>
587
                                        <xsl:with-param name="docid" select="$docid"/>
588
                                        <xsl:with-param name="entitytype" select="$entitytype"/>
589
                                        <xsl:with-param name="entityindex" select="$entityindex"/>
590
                                    </xsl:call-template>
591
                                 </xsl:when>
592
                                 <xsl:otherwise>
593
                                    <xsl:call-template name="chooseattributelist"/>
594
                                 </xsl:otherwise>
595
                       </xsl:choose>
596
                   </xsl:otherwise>
597
                </xsl:choose>
598
            </xsl:if>
599
        </xsl:for-each>
600
      </xsl:if>
601
      <xsl:if test="$entitytype='storedProcedure'">
602
        <xsl:for-each select="storedProcedure">
603
            <xsl:if test="position()=$entityindex">
604
                   <xsl:choose>
605
                     <xsl:when test="references!=''">
606
                        <xsl:variable name="ref_id" select="references"/>
607
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
608
                          <xsl:for-each select="$references">
609
                              <xsl:choose>
610
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
611
                                    <xsl:call-template name="storedProcedure">
612
                                       <xsl:with-param name="storedprocedurefirstColStyle" select="$firstColStyle"/>
613
                                       <xsl:with-param name="storedproceduresubHeaderStyle" select="$subHeaderStyle"/>
614
                                       <xsl:with-param name="docid" select="$docid"/>
615
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
616
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
617
                                    </xsl:call-template>
618
                                 </xsl:when>
619
                                 <xsl:otherwise>
620
                                    <xsl:call-template name="chooseattributelist"/>
621
                                 </xsl:otherwise>
622
                              </xsl:choose>
623
                          </xsl:for-each>
624
                     </xsl:when>
625
                     <xsl:otherwise>
626
                       <xsl:choose>
627
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
628
                                    <xsl:call-template name="storedProcedure">
629
                                       <xsl:with-param name="storedprocedurefirstColStyle" select="$firstColStyle"/>
630
                                       <xsl:with-param name="storedproceduresubHeaderStyle" select="$subHeaderStyle"/>
631
                                       <xsl:with-param name="docid" select="$docid"/>
632
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
633
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
634
                                    </xsl:call-template>
635
                                 </xsl:when>
636
                                 <xsl:otherwise>
637
                                    <xsl:call-template name="chooseattributelist"/>
638
                                 </xsl:otherwise>
639
                       </xsl:choose>
640
                   </xsl:otherwise>
641
                </xsl:choose>
642
            </xsl:if>
643
        </xsl:for-each>
644
      </xsl:if>
645
      <xsl:if test="$entitytype='view'">
646
        <xsl:for-each select="view">
647
            <xsl:if test="position()=$entityindex">
648
                   <xsl:choose>
649
                     <xsl:when test="references!=''">
650
                        <xsl:variable name="ref_id" select="references"/>
651
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
652
                          <xsl:for-each select="$references">
653
                              <xsl:choose>
654
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
655
                                    <xsl:call-template name="view">
656
                                       <xsl:with-param name="viewfirstColStyle" select="$firstColStyle"/>
657
                                       <xsl:with-param name="viewsubHeaderStyle" select="$subHeaderStyle"/>
658
                                       <xsl:with-param name="docid" select="$docid"/>
659
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
660
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
661
                                    </xsl:call-template>
662
                                 </xsl:when>
663
                                 <xsl:otherwise>
664
                                    <xsl:call-template name="chooseattributelist"/>
665
                                 </xsl:otherwise>
666
                              </xsl:choose>
667
                          </xsl:for-each>
668
                     </xsl:when>
669
                     <xsl:otherwise>
670
                       <xsl:choose>
671
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
672
                                    <xsl:call-template name="view">
673
                                       <xsl:with-param name="viewfirstColStyle" select="$firstColStyle"/>
674
                                       <xsl:with-param name="viewsubHeaderStyle" select="$subHeaderStyle"/>
675
                                       <xsl:with-param name="docid" select="$docid"/>
676
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
677
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
678
                                    </xsl:call-template>
679
                                 </xsl:when>
680
                                 <xsl:otherwise>
681
                                    <xsl:call-template name="chooseattributelist"/>
682
                                 </xsl:otherwise>
683
                       </xsl:choose>
684
                   </xsl:otherwise>
685
                </xsl:choose>
686
            </xsl:if>
687
        </xsl:for-each>
688
      </xsl:if>
689
      <xsl:if test="$entitytype='otherEntity'">
690
        <xsl:for-each select="otherEntity">
691
            <xsl:if test="position()=$entityindex">
692
                   <xsl:choose>
693
                     <xsl:when test="references!=''">
694
                        <xsl:variable name="ref_id" select="references"/>
695
                        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
696
                          <xsl:for-each select="$references">
697
                              <xsl:choose>
698
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
699
                                    <xsl:call-template name="otherEntity">
700
                                       <xsl:with-param name="otherentityfirstColStyle" select="$firstColStyle"/>
701
                                       <xsl:with-param name="otherentitysubHeaderStyle" select="$subHeaderStyle"/>
702
                                       <xsl:with-param name="docid" select="$docid"/>
703
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
704
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
705
                                    </xsl:call-template>
706
                                 </xsl:when>
707
                                 <xsl:otherwise>
708
                                    <xsl:call-template name="chooseattributelist"/>
709
                                 </xsl:otherwise>
710
                              </xsl:choose>
711
                          </xsl:for-each>
712
                     </xsl:when>
713
                     <xsl:otherwise>
714
                       <xsl:choose>
715
                                 <xsl:when test="$displaymodule='entity' or $displaymodule='printall'">
716
                                    <xsl:call-template name="otherEntity">
717
                                       <xsl:with-param name="otherentityfirstColStyle" select="$firstColStyle"/>
718
                                       <xsl:with-param name="otherentitysubHeaderStyle" select="$subHeaderStyle"/>
719
                                       <xsl:with-param name="docid" select="$docid"/>
720
                                       <xsl:with-param name="entitytype" select="$entitytype"/>
721
                                       <xsl:with-param name="entityindex" select="$entityindex"/>
722
                                    </xsl:call-template>
723
                                 </xsl:when>
724
                                 <xsl:otherwise>
725
                                    <xsl:call-template name="chooseattributelist"/>
726
                                 </xsl:otherwise>
727
                       </xsl:choose>
728
                   </xsl:otherwise>
729
                </xsl:choose>
730
            </xsl:if>
731
        </xsl:for-each>
732
      </xsl:if>
733
   </xsl:template>
734

    
735
   <xsl:template name="chooseattributelist">
736
       <xsl:for-each select="attributeList">
737
    <xsl:choose>
738
         <xsl:when test="references!=''">
739
            <xsl:variable name="ref_id" select="references"/>
740
            <xsl:variable name="references" select="$ids[@id=$ref_id]" />
741
            <xsl:for-each select="$references">
742
               <xsl:call-template name="chooseattribute"/>
743
           </xsl:for-each>
744
         </xsl:when>
745
         <xsl:otherwise>
746
             <xsl:call-template name="chooseattribute"/>
747
        </xsl:otherwise>
748
   </xsl:choose>
749
      </xsl:for-each>
750
   </xsl:template>
751

    
752
   <xsl:template name="chooseattribute">
753
       <xsl:for-each select="attribute">
754
    <xsl:if test="position()=$attributeindex">
755
      <xsl:if test="$displaymodule='attributedomain'">
756
        <xsl:for-each select="measurementScale/*/*">
757
          <xsl:call-template name="nonNumericDomain">
758
              <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
759
           </xsl:call-template>
760
        </xsl:for-each>
761
     </xsl:if>
762
     <xsl:if test="$displaymodule='attributecoverage'">
763
        <xsl:for-each select="coverage">
764
          <xsl:call-template name="coverage">
765
          </xsl:call-template>
766
        </xsl:for-each>
767
     </xsl:if>
768
     <xsl:if test="$displaymodule='attributemethod'">
769
        <xsl:for-each select="method">
770
          <xsl:call-template name="method">
771
              <xsl:with-param name="methodfirstColStyle" select="$firstColStyle"/>
772
              <xsl:with-param name="methodsubHeaderStyle" select="$firstColStyle"/>
773
           </xsl:call-template>
774
        </xsl:for-each>
775
     </xsl:if>
776
   </xsl:if>
777
       </xsl:for-each>
778
   </xsl:template>
779

    
780

    
781

    
782
   <!--*************************Distribution Inline Data display module*****************-->
783
   <xsl:template name="emlinlinedata">
784
      <h3>Inline Data</h3>
785
      <xsl:if test="$distributionlevel='toplevel'">
786
         <xsl:for-each select="distribution">
787
            <xsl:if test="position()=$distributionindex">
788
               <xsl:choose>
789
                 <xsl:when test="references!=''">
790
                    <xsl:variable name="ref_id1" select="references"/>
791
                    <xsl:variable name="references1" select="$ids[@id=$ref_id1]" />
792
                    <xsl:for-each select="$references1">
793
                        <xsl:for-each select="inline">
794
                            <xsl:value-of select="."/>
795
                        </xsl:for-each>
796
                    </xsl:for-each>
797
                 </xsl:when>
798
                 <xsl:otherwise>
799
                     <xsl:for-each select="inline">
800
                            <xsl:value-of select="."/>
801
                     </xsl:for-each>
802
                 </xsl:otherwise>
803
               </xsl:choose>
804
            </xsl:if>
805
         </xsl:for-each>
806
      </xsl:if>
807
      <xsl:if test="$distributionlevel='entitylevel'">
808
        <xsl:if test="$entitytype='dataTable'">
809
          <xsl:for-each select="dataTable">
810
            <xsl:if test="position()=$entityindex">
811
                <xsl:choose>
812
                 <xsl:when test="references!=''">
813
                    <xsl:variable name="ref_id2" select="references"/>
814
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
815
                    <xsl:for-each select="$references2">
816
                       <xsl:call-template name="choosephysical"/>
817
                    </xsl:for-each>
818
                 </xsl:when>
819
                 <xsl:otherwise>
820
                     <xsl:call-template name="choosephysical"/>
821
                 </xsl:otherwise>
822
               </xsl:choose>
823
            </xsl:if>
824
          </xsl:for-each>
825
        </xsl:if>
826
        <xsl:if test="$entitytype='spatialRaster'">
827
          <xsl:for-each select="spatialRaster">
828
            <xsl:if test="position()=$entityindex">
829
                <xsl:choose>
830
                 <xsl:when test="references!=''">
831
                    <xsl:variable name="ref_id2" select="references"/>
832
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
833
                    <xsl:for-each select="$references2">
834
                       <xsl:call-template name="choosephysical"/>
835
                    </xsl:for-each>
836
                 </xsl:when>
837
                 <xsl:otherwise>
838
                     <xsl:call-template name="choosephysical"/>
839
                 </xsl:otherwise>
840
               </xsl:choose>
841
            </xsl:if>
842
          </xsl:for-each>
843
        </xsl:if>
844
        <xsl:if test="$entitytype='spatialVector'">
845
          <xsl:for-each select="spatialVector">
846
            <xsl:if test="position()=$entityindex">
847
                <xsl:choose>
848
                 <xsl:when test="references!=''">
849
                    <xsl:variable name="ref_id2" select="references"/>
850
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
851
                    <xsl:for-each select="$references2">
852
                       <xsl:call-template name="choosephysical"/>
853
                    </xsl:for-each>
854
                 </xsl:when>
855
                 <xsl:otherwise>
856
                     <xsl:call-template name="choosephysical"/>
857
                 </xsl:otherwise>
858
               </xsl:choose>
859
            </xsl:if>
860
          </xsl:for-each>
861
        </xsl:if>
862
        <xsl:if test="$entitytype='storedProcedure'">
863
          <xsl:for-each select="storedProcedure">
864
            <xsl:if test="position()=$entityindex">
865
                <xsl:choose>
866
                 <xsl:when test="references!=''">
867
                    <xsl:variable name="ref_id2" select="references"/>
868
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
869
                    <xsl:for-each select="$references2">
870
                       <xsl:call-template name="choosephysical"/>
871
                    </xsl:for-each>
872
                 </xsl:when>
873
                 <xsl:otherwise>
874
                     <xsl:call-template name="choosephysical"/>
875
                 </xsl:otherwise>
876
               </xsl:choose>
877
            </xsl:if>
878
          </xsl:for-each>
879
        </xsl:if>
880
        <xsl:if test="$entitytype='view'">
881
          <xsl:for-each select="view">
882
            <xsl:if test="position()=$entityindex">
883
                <xsl:choose>
884
                 <xsl:when test="references!=''">
885
                    <xsl:variable name="ref_id2" select="references"/>
886
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
887
                    <xsl:for-each select="$references2">
888
                       <xsl:call-template name="choosephysical"/>
889
                    </xsl:for-each>
890
                 </xsl:when>
891
                 <xsl:otherwise>
892
                     <xsl:call-template name="choosephysical"/>
893
                 </xsl:otherwise>
894
               </xsl:choose>
895
            </xsl:if>
896
          </xsl:for-each>
897
        </xsl:if>
898
        <xsl:if test="$entitytype='otherEntity'">
899
          <xsl:for-each select="otherEntity">
900
            <xsl:if test="position()=$entityindex">
901
                <xsl:choose>
902
                 <xsl:when test="references!=''">
903
                    <xsl:variable name="ref_id2" select="references"/>
904
                    <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
905
                    <xsl:for-each select="$references2">
906
                       <xsl:call-template name="choosephysical"/>
907
                    </xsl:for-each>
908
                 </xsl:when>
909
                 <xsl:otherwise>
910
                     <xsl:call-template name="choosephysical"/>
911
                 </xsl:otherwise>
912
               </xsl:choose>
913
            </xsl:if>
914
          </xsl:for-each>
915
        </xsl:if>
916
      </xsl:if>
917
   </xsl:template>
918

    
919
   <xsl:template name="choosephysical">
920
      <xsl:for-each select="physical">
921
   <xsl:if test="position()=$physicalindex">
922
      <xsl:choose>
923
         <xsl:when test="references!=''">
924
            <xsl:variable name="ref_id" select="references"/>
925
            <xsl:variable name="references" select="$ids[@id=$ref_id]" />
926
            <xsl:for-each select="$references">
927
               <xsl:call-template name="choosedistribution"/>
928
            </xsl:for-each>
929
         </xsl:when>
930
         <xsl:otherwise>
931
            <xsl:call-template name="choosedistribution"/>
932
        </xsl:otherwise>
933
     </xsl:choose>
934
  </xsl:if>
935
      </xsl:for-each>
936
   </xsl:template>
937

    
938
   <xsl:template name="choosedistribution">
939
      <xsl:for-each select="distribution">
940
   <xsl:if test="$distributionindex=position()">
941
      <xsl:choose>
942
         <xsl:when test="references!=''">
943
            <xsl:variable name="ref_id" select="references"/>
944
            <xsl:variable name="references" select="$ids[@id=$ref_id]" />
945
            <xsl:for-each select="$references">
946
               <xsl:for-each select="inline">
947
                  <xsl:value-of select="."/>
948
                </xsl:for-each>
949
            </xsl:for-each>
950
         </xsl:when>
951
         <xsl:otherwise>
952
            <xsl:for-each select="inline">
953
              <xsl:value-of select="."/>
954
            </xsl:for-each>
955
        </xsl:otherwise>
956
     </xsl:choose>
957
  </xsl:if>
958
      </xsl:for-each>
959
   </xsl:template>
960

    
961

    
962
     <!--********************************************************
963
               Citation part
964
       ********************************************************-->
965
   <xsl:template name="emlcitation">
966
     <xsl:choose>
967
       <xsl:when test="$displaymodule='inlinedata'">
968
    		<xsl:call-template name="emlinlinedata"/>
969
       </xsl:when>
970
       <xsl:otherwise>
971
		  <h3>Citation Description</h3>
972
		  <xsl:call-template name="identifier">
973
		        <xsl:with-param name="packageID" select="../@packageId"/>
974
		        <xsl:with-param name="system" select="../@system"/>
975
		  </xsl:call-template>
976
	      <xsl:call-template name="citation">
977
	         <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
978
	         <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
979
			</xsl:call-template>
980
		    
981
     </xsl:otherwise>
982
    </xsl:choose>
983
   </xsl:template>
984

    
985

    
986

    
987
     <!--********************************************************
988
              Software part
989
       ********************************************************-->
990

    
991
   <xsl:template name="emlsoftware">
992
     <xsl:choose>
993
       <xsl:when test="$displaymodule='inlinedata'">
994
    	<xsl:call-template name="emlinlinedata"/>
995
       </xsl:when>
996
       <xsl:otherwise>
997
         <h3>Software Description</h3>
998

    
999
	    <xsl:call-template name="identifier">
1000
	        <xsl:with-param name="packageID" select="../@packageId"/>
1001
	        <xsl:with-param name="system" select="../@system"/>
1002
	    </xsl:call-template>
1003
	
1004
	      <xsl:call-template name="software">
1005
	         <xsl:with-param name="softwarefirstColStyle" select="$firstColStyle"/>
1006
	         <xsl:with-param name="softwaresubHeaderStyle" select="$subHeaderStyle"/>
1007
	     </xsl:call-template>
1008

    
1009
      </xsl:otherwise>
1010
     </xsl:choose>
1011
   </xsl:template>
1012

    
1013

    
1014
     <!--********************************************************
1015
              Protocal part
1016
       ********************************************************-->
1017

    
1018
   <xsl:template name="emlprotocol">
1019
    <xsl:choose>
1020
       <xsl:when test="$displaymodule='inlinedata'">
1021
    	<xsl:call-template name="emlinlinedata"/>
1022
       </xsl:when>
1023
       <xsl:otherwise>
1024

    
1025
         <h3>Protocal Description</h3>
1026

    
1027
		   <xsl:call-template name="identifier">
1028
		        <xsl:with-param name="packageID" select="../@packageId"/>
1029
		        <xsl:with-param name="system" select="../@system"/>
1030
		   </xsl:call-template>
1031
	
1032
	      <xsl:call-template name="protocol">
1033
	         <xsl:with-param name="protocolfirstColStyle" select="$firstColStyle"/>
1034
	         <xsl:with-param name="protocolsubHeaderStyle" select="$subHeaderStyle"/>
1035
	     </xsl:call-template>
1036

    
1037
      </xsl:otherwise>
1038
    </xsl:choose>
1039
   </xsl:template>
1040

    
1041
      <!--********************************************************
1042
             additionalmetadata url
1043
       ********************************************************-->
1044
   <xsl:template name="additionalmetadataURL">
1045
     <xsl:param name="index"/>
1046
        <a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&amp;displaymodule=additionalmetadata&amp;additionalmetadataindex=<xsl:value-of select="$index"/></xsl:attribute>
1047
          Additional Metadata
1048
        </a>
1049
   </xsl:template>
1050
	<!--********************************************************
1051
             additionalmetadata part
1052
       ********************************************************-->
1053
   <xsl:template name="additionalmetadatapart">
1054

    
1055
		<div>
1056
			<xsl:call-template name="additionalmetadata"/>
1057
		</div>					
1058

    
1059
   </xsl:template>
1060
     <!--********************************************************
1061
             download xml part
1062
       ********************************************************-->
1063
	<xsl:template name="xml">
1064
		<xsl:param name="index" />
1065
			<div class="control-group">
1066
				<label class="control-label">Technical Metadata</label>
1067
				<div class="controls controls-well">
1068
					<a>
1069
						<xsl:attribute name="href">
1070
           					<!-- <xsl:value-of select="$xmlURI" /><xsl:value-of select="$docid" /> -->
1071
           					<xsl:value-of select="$objectURI" /><xsl:value-of select="$pid" />
1072
           				</xsl:attribute>
1073
						Ecological Metadata Language (EML) File
1074
					</a>
1075
				</div>
1076
			</div>
1077
	</xsl:template>
1078
	
1079
	<!--********************************************************
1080
                   access part
1081
       ********************************************************-->
1082
	<xsl:template name="topaccess">
1083
		<xsl:if test="$displaymodule='dataset' or $displaymodule='printall'">
1084

    
1085
			<xsl:call-template name="access">
1086
				<xsl:with-param name="accessfirstColStyle" select="$firstColStyle"/>
1087
				<xsl:with-param name="accesssubHeaderStyle" select="$subHeaderStyle"/>
1088
			</xsl:call-template>
1089

    
1090
		</xsl:if>
1091
	</xsl:template>
1092
</xsl:stylesheet>
(27-27/27)