Project

General

Profile

« Previous | Next » 

Revision 4285

Added by daigle over 15 years ago

Addition of sbclter skins to svn

View differences:

lib/style/skins/sbclter/eml/eml-coverage-2.0.0.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile: eml-coverage-2.0.0.xsl,v $'
4
  *      Authors: Matthew Brooke
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: cjones $'
10
  *     '$Date: 2004/10/05 23:50:34 $'
11
  * '$Revision: 1.1 $'
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-variable.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32

  
33
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
34
  <xsl:import href="eml-literature-2.0.0.xsl"/>
35

  
36
  <xsl:output method="html" encoding="iso-8859-1"
37
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
38
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
39
    indent="yes" />  
40

  
41
  <!-- This module is for coverage and it is self contained(It is a table
42
       and will handle reference by it self)-->
43
			 <!-- mob took out the table elements in the coverage template. they are also in 
44
			 geo, temporal and taxonomic templates -->
45
  <xsl:template name="coverage">
46
        <xsl:choose>
47
         <xsl:when test="references!=''">
48
          <xsl:variable name="ref_id" select="references"/>
49
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
50
          <xsl:for-each select="$references">
51
			<!--	  <table class="{$tabledefaultStyle}">  -->
52
            <xsl:for-each select="geographicCoverage">
53
                <xsl:call-template name="geographicCoverage">
54
                </xsl:call-template>
55
            </xsl:for-each>
56
       <!--  </table>  -->
57
        <!--  <table class="{$tabledefaultStyle}">  -->
58
             <xsl:for-each select="temporalCoverage">
59
                <xsl:call-template name="temporalCoverage">
60
                </xsl:call-template>
61
            </xsl:for-each>
62
         <!-- </table>  -->
63
         <!-- <table class="{$tabledefaultStyle}">  -->
64
            <xsl:for-each select="taxonomicCoverage">
65
                <xsl:call-template name="taxonomicCoverage">
66
                </xsl:call-template>
67
            </xsl:for-each>
68
        <!--  </table>  -->
69
          </xsl:for-each>
70
        </xsl:when>
71
        <xsl:otherwise>
72
      <!--   <table class="{$tabledefaultStyle}">  -->
73
            <xsl:for-each select="geographicCoverage">
74
                <xsl:call-template name="geographicCoverage">
75
                </xsl:call-template>
76
            </xsl:for-each>
77
       <!--  </table>  -->
78
        <!--   <table class="{$tabledefaultStyle}"> -->
79
            <xsl:for-each select="temporalCoverage">
80
                <xsl:call-template name="temporalCoverage">
81
                </xsl:call-template>
82
            </xsl:for-each>
83
         <!-- </table> -->
84
        <!--  <table class="{$tabledefaultStyle}"> -->
85
            <xsl:for-each select="taxonomicCoverage">
86
                <xsl:call-template name="taxonomicCoverage">
87
                </xsl:call-template>
88
            </xsl:for-each>
89
        <!--  </table>  -->
90
        </xsl:otherwise>
91
      </xsl:choose>
92
  </xsl:template>
93

  
94
 <!-- ********************************************************************* -->
95
 <!-- **************  G E O G R A P H I C   C O V E R A G E  ************** -->
96
 <!-- ********************************************************************* -->
97
  <xsl:template name="geographicCoverage">
98
    <xsl:choose>
99
      <xsl:when test="references!=''">
100
        <xsl:variable name="ref_id" select="references"/>
101
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
102
        <xsl:for-each select="$references">
103
          <xsl:for-each select="geographicCoverage">
104
            <table class="{$tabledefaultStyle}">
105
              <xsl:call-template name="geographicCovCommon" />
106
            </table>
107
          </xsl:for-each>
108
        </xsl:for-each>
109
      </xsl:when>
110
      <xsl:otherwise>
111
          <table class="{$tabledefaultStyle}">
112
            <xsl:call-template name="geographicCovCommon" />
113
          </table>
114
      </xsl:otherwise>
115
    </xsl:choose>
116
  </xsl:template>
117

  
118
  <xsl:template name="geographicCovCommon">
119
      <tr>
120
        <th colspan="2">
121
          <xsl:text>Geographic Region:</xsl:text>
122
        </th>
123
      </tr>
124
      <xsl:apply-templates select="geographicDescription"/>
125
      <xsl:apply-templates select="boundingCoordinates"/>
126
      <xsl:for-each select="datasetGPolygon">
127
          <xsl:if test="datasetGPolygonOuterGRing">
128
            <xsl:apply-templates select="datasetGPolygonOuterGRing"/>
129
          </xsl:if>
130
          <xsl:if test="datasetGPolygonExclusionGRing">
131
              <xsl:apply-templates select="datasetGPolygonExclusionGRing"/>
132
          </xsl:if>
133
     </xsl:for-each>
134
  </xsl:template>
135

  
136
  <xsl:template match="geographicDescription">
137
    <tr>
138
      <td class="{$firstColStyle}">Geographic Description:</td>
139
      <td class="{$secondColStyle}"><xsl:value-of select="."/></td>
140
    </tr>
141
  </xsl:template>
142

  
143
  <xsl:template match="boundingCoordinates">
144
      <tr><td class="{$firstColStyle}">
145
           Bounding Coordinates:
146
          </td>
147
       <td>
148
         <table>
149
           <xsl:apply-templates select="westBoundingCoordinate"/>
150
           <xsl:apply-templates select="eastBoundingCoordinate"/>
151
           <xsl:apply-templates select="northBoundingCoordinate"/>
152
           <xsl:apply-templates select="southBoundingCoordinate"/>
153
           <xsl:apply-templates select="boundingAltitudes"/>
154
         </table>
155
      </td>
156
      </tr>
157
  </xsl:template>
158

  
159
  <xsl:template match="westBoundingCoordinate">
160
    <tr><td class="{$firstColStyle}">
161
         <xsl:text>West: &#160;</xsl:text>
162
        </td>
163
        <td class="{$secondColStyle}">
164
         <xsl:value-of select="."/>&#160; degrees
165
        </td>
166
     </tr>
167
  </xsl:template>
168

  
169
  <xsl:template match="eastBoundingCoordinate">
170
    <tr><td class="{$firstColStyle}">
171
       <xsl:text>East: &#160;</xsl:text>
172
       </td>
173
       <td class="{$secondColStyle}">
174
         <xsl:value-of select="."/>&#160; degrees
175
       </td>
176
     </tr>
177
  </xsl:template>
178

  
179
  <xsl:template match="northBoundingCoordinate">
180
    <tr><td class="{$firstColStyle}">
181
         <xsl:text>North: &#160;</xsl:text>
182
        </td>
183
        <td class="{$secondColStyle}">
184
          <xsl:value-of select="."/>&#160; degrees
185
        </td>
186
     </tr>
187
  </xsl:template>
188

  
189
  <xsl:template match="southBoundingCoordinate">
190
    <tr><td class="{$firstColStyle}">
191
         <xsl:text>South: &#160;</xsl:text>
192
       </td>
193
       <td class="{$secondColStyle}">
194
         <xsl:value-of select="."/>&#160; degrees
195
        </td>
196
    </tr>
197
  </xsl:template>
198

  
199

  
200
  <xsl:template match="boundingAltitudes">
201

  
202
      <tr><td class="{$firstColStyle}">
203
        Mimimum Altitude:</td><td class="{$secondColStyle}">
204
        <xsl:apply-templates select="altitudeMinimum"/></td></tr>
205
      <tr><td class="{$firstColStyle}">
206
        Maximum Altitude:</td><td class="{$secondColStyle}">
207
        <xsl:apply-templates select="altitudeMaximum"/></td></tr>
208

  
209
  </xsl:template>
210

  
211
  <xsl:template match="altitudeMinimum">
212
     <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
213
  </xsl:template>
214

  
215
  <xsl:template match="altitudeMaximum">
216
    <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
217
  </xsl:template>
218

  
219
  <xsl:template match="datasetGPolygonOuterGRing">
220
    <tr><td class="{$firstColStyle}">
221
          <xsl:text>G-Ploygon(Outer Ring): </xsl:text>
222
        </td>
223
        <td class="{$secondColStyle}">
224
           <xsl:apply-templates select="gRingPoint"/>
225
           <xsl:apply-templates select="gRing"/>
226
        </td>
227
     </tr>
228
  </xsl:template>
229

  
230
  <xsl:template match="datasetGPolygonExclusionGRing">
231
    <tr><td class="{$firstColStyle}">
232
          <xsl:text>G-Ploygon(Exclusion Ring): </xsl:text>
233
        </td>
234
        <td class="{$secondColStyle}">
235
           <xsl:apply-templates select="gRingPoint"/>
236
           <xsl:apply-templates select="gRing"/>
237
        </td>
238
     </tr>
239
  </xsl:template>
240

  
241
  <xsl:template match="gRing">
242
    <xsl:text>(GRing) &#160;</xsl:text>
243
    <xsl:text>Latitude: </xsl:text>
244
    <xsl:value-of select="gRingLatitude"/>,
245
    <xsl:text>Longitude: </xsl:text>
246
    <xsl:value-of select="gRingLongitude"/><br/>
247
  </xsl:template>
248

  
249
  <xsl:template match="gRingPoint">
250
    <xsl:text>Latitude: </xsl:text>
251
    <xsl:value-of select="gRingLatitude"/>,
252
    <xsl:text>Longitude: </xsl:text>
253
    <xsl:value-of select="gRingLongitude"/><br/>
254
  </xsl:template>
255

  
256
<!-- ********************************************************************* -->
257
<!-- ****************  T E M P O R A L   C O V E R A G E  **************** -->
258
<!-- ********************************************************************* -->
259

  
260
  <xsl:template name="temporalCoverage">
261
    <xsl:choose>
262
      <xsl:when test="references!=''">
263
        <xsl:variable name="ref_id" select="references"/>
264
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
265
        <xsl:for-each select="$references">
266
          <table class="{$tabledefaultStyle}">
267
            <xsl:call-template name="temporalCovCommon" />
268
          </table>
269
        </xsl:for-each>
270
      </xsl:when>
271
      <xsl:otherwise>
272
          <table class="{$tabledefaultStyle}">
273
            <xsl:call-template name="temporalCovCommon" />
274
          </table>
275
      </xsl:otherwise>
276
    </xsl:choose>
277
  </xsl:template>
278

  
279
  <xsl:template name="temporalCovCommon" >
280
     <tr><th colspan="2">
281
      <xsl:text>Time Period:</xsl:text></th></tr>
282
      <xsl:apply-templates select="singleDateTime"/>
283
      <xsl:apply-templates select="rangeOfDates"/>
284
  </xsl:template>
285

  
286
  <xsl:template match="singleDateTime">
287
    <tr><td class="{$firstColStyle}">
288
            Date:
289
         </td>
290
         <td>
291
             <xsl:call-template name="singleDateType" />
292
         </td>
293
     </tr>
294
   </xsl:template>
295

  
296
  <xsl:template match="rangeOfDates">
297
     <tr><td class="{$firstColStyle}">
298
            Begin:
299
         </td>
300
         <td>
301
            <xsl:apply-templates select="beginDate"/>
302
          </td>
303
     </tr>
304

  
305
     <tr><td class="{$firstColStyle}">
306
            End:
307
          </td>
308
          <td>
309
             <xsl:apply-templates select="endDate"/>
310
          </td>
311
     </tr>
312
  </xsl:template>
313

  
314

  
315
  <xsl:template match="beginDate">
316
      <xsl:call-template name="singleDateType"/>
317
  </xsl:template>
318

  
319
  <xsl:template match="endDate">
320
      <xsl:call-template name="singleDateType"/>
321
  </xsl:template>
322

  
323
  <xsl:template name="singleDateType">
324
    <table>
325
     <xsl:if test="calendarDate">
326
      <tr>
327
       <td colspan="2" class="{$secondColStyle}">
328
          <xsl:value-of select="calendarDate"/>
329
          <xsl:if test="./time and normalize-space(./time)!=''">
330
            <xsl:text>&#160; at &#160;</xsl:text><xsl:apply-templates select="time"/>
331
          </xsl:if>
332
        </td>
333
      </tr>
334
     </xsl:if>
335
     <xsl:if test="alternativeTimeScale">
336
         <xsl:apply-templates select="alternativeTimeScale"/>
337
     </xsl:if>
338
    </table>
339
  </xsl:template>
340

  
341

  
342
  <xsl:template match="alternativeTimeScale">
343

  
344
        <tr><td class="{$firstColStyle}">
345
            Timescale:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
346
        <tr><td class="{$firstColStyle}">
347
            Time estimate:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr>
348
        <xsl:if test="timeScaleAgeUncertainty and normalize-space(timeScaleAgeUncertainty)!=''">
349
        <tr><td class="{$firstColStyle}">
350
            Time uncertainty:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr>
351
        </xsl:if>
352
        <xsl:if test="timeScaleAgeExplanation and normalize-space(timeScaleAgeExplanation)!=''">
353
        <tr><td class="{$firstColStyle}">
354
            Time explanation:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr>
355
        </xsl:if>
356
        <xsl:if test="timeScaleCitation and normalize-space(timeScaleCitation)!=''">
357
        <tr><td class="{$firstColStyle}">
358
            Citation:</td><td class="{$secondColStyle}">
359
            <xsl:apply-templates select="timeScaleCitation"/>
360
        </td></tr>
361
        </xsl:if>
362

  
363
  </xsl:template>
364

  
365
  <xsl:template match="timeScaleCitation">
366
     <!-- Using citation module here -->
367
     <xsl:call-template name="citation">
368
     </xsl:call-template>
369
  </xsl:template>
370

  
371
<!-- ********************************************************************* -->
372
<!-- ***************  T A X O N O M I C   C O V E R A G E  *************** -->
373
<!-- ********************************************************************* -->
374
  <xsl:template name="taxonomicCoverage">
375
     <xsl:choose>
376
      <xsl:when test="references!=''">
377
        <xsl:variable name="ref_id" select="references"/>
378
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
379
        <xsl:for-each select="$references">
380
          <table class="{$tabledefaultStyle}">
381
            <xsl:call-template name="taxonomicCovCommon" />
382
          </table>
383
        </xsl:for-each>
384
      </xsl:when>
385
      <xsl:otherwise>
386
        <table class="{$tabledefaultStyle}">
387
          <xsl:call-template name="taxonomicCovCommon" />
388
        </table>
389
      </xsl:otherwise>
390
    </xsl:choose>
391
  </xsl:template>
392

  
393

  
394
  <xsl:template name="taxonomicCovCommon">
395
      <tr><th colspan="2">
396
      <xsl:text>Taxonomic Range:</xsl:text></th></tr>
397
      <xsl:apply-templates select="taxonomicSystem"/>
398
      <xsl:apply-templates select="generalTaxonomicCoverage"/>
399
      <xsl:for-each select="taxonomicClassification">
400
          <xsl:apply-templates select="."/>
401
      </xsl:for-each>
402
  </xsl:template>
403

  
404

  
405
 <xsl:template match="taxonomicSystem">
406
     <tr><td class="{$firstColStyle}">
407
        <xsl:text>Taxonomic System:</xsl:text></td>
408
        <td>
409
            <table class="{$tabledefaultStyle}">
410
              <xsl:apply-templates select="./*"/>
411
            </table>
412
        </td>
413
     </tr>
414
  </xsl:template>
415

  
416

  
417
  <xsl:template match="classificationSystem">
418
     <xsl:for-each select="classificationSystemCitation">
419
        <tr><td class="{$firstColStyle}">Classification Citation:</td>
420
          <td>
421
           <xsl:call-template name="citation">
422
             <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
423
             <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
424
           </xsl:call-template>
425
         </td>
426
        </tr>
427
     </xsl:for-each>
428
     <xsl:if test="classificationSystemModifications and normalize-space(classificationSystemModifications)!=''">
429
      <tr><td class="{$firstColStyle}">Modification:</td>
430
        <td class="{$secondColStyle}">
431
          <xsl:value-of select="classificationSystemModifications"/>
432
        </td>
433
      </tr>
434
     </xsl:if>
435
  </xsl:template>
436

  
437

  
438
  <xsl:template match="identificationReference">
439
      <tr><td class="{$firstColStyle}">ID Reference:</td>
440
          <td>
441
             <xsl:call-template name="citation">
442
                <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
443
                <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
444
             </xsl:call-template>
445
          </td>
446
     </tr>
447
  </xsl:template>
448

  
449
  <xsl:template match="identifierName">
450
      <tr><td class="{$firstColStyle}">ID Name:</td>
451
          <td>
452
             <xsl:call-template name="party">
453
               <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
454
             </xsl:call-template>
455
          </td>
456
      </tr>
457
  </xsl:template>
458

  
459
  <xsl:template match="taxonomicProcedures">
460
    <tr><td class="{$firstColStyle}">
461
        <xsl:text>Procedures:</xsl:text></td><td class="{$secondColStyle}">
462
        <xsl:value-of select="."/></td></tr>
463
  </xsl:template>
464

  
465
  <xsl:template match="taxonomicCompleteness">
466
    <tr><td class="{$firstColStyle}">
467
        <xsl:text>Completeness:</xsl:text></td><td class="{$secondColStyle}">
468
        <xsl:value-of select="."/></td></tr>
469
  </xsl:template>
470

  
471
  <xsl:template match="vouchers">
472
      <tr><td class="{$firstColStyle}">Vouchers:</td>
473
        <td>
474
        <table class="{$tabledefaultStyle}">
475
        <xsl:apply-templates select="specimen"/>
476
        <xsl:apply-templates select="repository"/>
477
        </table>
478
        </td></tr>
479
  </xsl:template>
480

  
481
  <xsl:template match="specimen">
482
    <tr><td class="{$firstColStyle}">
483
        <xsl:text>Specimen:</xsl:text></td><td class="{$secondColStyle}">
484
        <xsl:value-of select="."/></td></tr>
485
  </xsl:template>
486

  
487
  <xsl:template match="repository">
488
    <tr><td class="{$firstColStyle}">Repository:</td>
489
        <td>
490
            <xsl:for-each select="originator">
491
               <xsl:call-template name="party">
492
                 <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
493
               </xsl:call-template>
494
            </xsl:for-each>
495
        </td>
496
    </tr>
497
  </xsl:template>
498

  
499

  
500
  <xsl:template match="generalTaxonomicCoverage">
501
      <tr><td class="{$firstColStyle}">
502
             <xsl:text>General Coverage:</xsl:text></td>
503
           <td class="{$secondColStyle}">
504
             <xsl:value-of select="."/>
505
          </td>
506
      </tr>
507
  </xsl:template>
508

  
509

  
510
  <xsl:template match="taxonomicClassification">
511
    <tr><td class="{$firstColStyle}">
512
        <xsl:text>Classification:</xsl:text></td><td>
513
        <table class="{$tabledefaultStyle}">
514
        <xsl:apply-templates select="./*" mode="nest"/>
515
        </table>
516
        </td></tr>
517
  </xsl:template>
518

  
519
  <xsl:template match="taxonRankName" mode="nest" >
520
      <tr><td class="{$firstColStyle}">
521
        <xsl:text>Rank Name:</xsl:text></td><td class="{$secondColStyle}">
522
        <xsl:value-of select="."/></td></tr>
523
  </xsl:template>
524

  
525
  <xsl:template match="taxonRankValue" mode="nest">
526
      <tr><td class="{$firstColStyle}">
527
        <xsl:text>Rank Value:</xsl:text></td><td class="{$secondColStyle}">
528
        <xsl:value-of select="."/></td></tr>
529
  </xsl:template>
530

  
531
  <xsl:template match="commonName" mode="nest">
532
      <tr><td class="{$firstColStyle}">
533
            <xsl:text>Common Name:</xsl:text></td><td class="{$secondColStyle}">
534
            <xsl:value-of select="."/>
535
          </td>
536
      </tr>
537
  </xsl:template>
538

  
539
  <xsl:template match="taxonomicClassification" mode="nest">
540
    <tr><td class="{$firstColStyle}">
541
          <xsl:text>Classification:</xsl:text>
542
        </td>
543
        <td>
544
           <table class="{$tabledefaultStyle}">
545
             <xsl:apply-templates select="./*" mode="nest"/>
546
           </table>
547
        </td>
548
     </tr>
549
  </xsl:template>
550

  
551
</xsl:stylesheet>
lib/style/skins/sbclter/eml/searchbox.xsl.save
1
<?xml version="1.0"?>
2
<!--
3
*  '$RCSfile: searchbox.xsl.save,v $'
4
*      Authors: Chris 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: cjones $'
10
*     '$Date: 2004/10/05 23:50:34 $'
11
* '$Revision: 1.1 $'
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 showing the resultset of a query
29
* into an HTML format suitable for rendering with modern web browsers.
30
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32

  
33
  <xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes"
34
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
35
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
36
    
37
  <xsl:template name="searchbox">
38
    <!-- begin search form area -->
39
    <xsl:comment>begin the search form area</xsl:comment>
40
           <table class="group group_border">
41
             <tr>
42
               <th colspan="2">
43
                 Category Search:
44
               </th>
45
               <th colspan="2">
46
                 Other Search:
47
               </th>
48
             </tr>
49
             <tr>
50
               <td>
51
                 <a
52
                 href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EOceanographic%20Sensor%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
53
                <!--
54
                <?xml version="1.0"?>
55
                  <pathquery version="1.2">
56
                    <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
57
                    <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
58
                    <returnfield>dataset/title</returnfield>
59
                    <returnfield>dataTable/entityName</returnfield>
60
                    <returnfield>creator/individualName/surName</returnfield>
61
                    <returnfield>creator/organizationName</returnfield>
62
                    <returnfield>dataTable/physical/distribution/online/url</returnfield>
63
                    <querygroup operator="INTERSECT">
64
                      <queryterm casesensitive="false" searchmode="starts-with">
65
                        <value>PISCO:</value>
66
                        <pathexpr>title</pathexpr>
67
                      </queryterm>
68
                      <queryterm casesensitive="false" searchmode="starts-with">
69
                        <value>pisco.</value>
70
                        <pathexpr>/eml/@packageId</pathexpr>
71
                      </queryterm>
72
                      <queryterm casesensitive="false" searchmode="contains">
73
                        <value>PISCO</value>
74
                        <pathexpr>creator/organizationName</pathexpr>
75
                      </queryterm>
76
                      <querygroup operator="INTERSECT">
77
                        <queryterm casesensitive="true" searchmode="equals">
78
                          <value>Oceanographic Sensor Data</value>
79
                          <pathexpr>keywordSet/keyword</pathexpr>
80
                        </queryterm>
81
                        <queryterm casesensitive="true" searchmode="equals">
82
                          <value>PISCO Categories</value>
83
                          <pathexpr>keywordSet/keywordThesaurus</pathexpr>
84
                        </queryterm>
85
                      </querygroup>
86
                      <querygroup operator="INTERSECT">
87
                        <queryterm casesensitive="true" searchmode="equals">
88
                          <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
89
                          <pathexpr>access/principal</pathexpr>
90
                        </queryterm>
91
                        <queryterm casesensitive="true" searchmode="equals">
92
                          <value>all</value>
93
                          <pathexpr>access/permission/allow</pathexpr>
94
                        </queryterm>
95
                      </querygroup>
96
                    </querygroup>
97
                  </pathquery>
98
                  -->
99
                      Oceanographic Sensor Data
100
                      </a>
101
                      <br />
102

  
103
                 <a href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EIntertidal%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3ECommunity%20Survey%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
104
            <!--
105
            <?xml version="1.0"?>
106
              <pathquery version="1.2">
107
                <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
108
                <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
109
                <returnfield>dataset/title</returnfield>
110
                <returnfield>dataTable/entityName</returnfield>
111
                <returnfield>creator/individualName/surName</returnfield>
112
                <returnfield>creator/organizationName</returnfield>
113
                <returnfield>dataTable/physical/distribution/online/url</returnfield>
114
                <querygroup operator="INTERSECT">
115
                  <queryterm casesensitive="false" searchmode="starts-with">
116
                    <value>PISCO:</value>
117
                    <pathexpr>title</pathexpr>
118
                  </queryterm>
119
                  <queryterm casesensitive="false" searchmode="starts-with">
120
                    <value>pisco.</value>
121
                    <pathexpr>/eml/@packageId</pathexpr>
122
                  </queryterm>
123
                  <queryterm casesensitive="false" searchmode="contains">
124
                    <value>PISCO</value>
125
                    <pathexpr>creator/organizationName</pathexpr>
126
                  </queryterm>
127
                  <querygroup operator="INTERSECT">
128
                    <queryterm casesensitive="true" searchmode="equals">
129
                      <value>Intertidal Data</value>
130
                      <pathexpr>keywordSet/keyword</pathexpr>
131
                    </queryterm>
132
                    <queryterm casesensitive="true" searchmode="equals">
133
                      <value>Community Survey Data</value>
134
                      <pathexpr>keywordSet/keyword</pathexpr>
135
                    </queryterm>
136
                    <queryterm casesensitive="true" searchmode="equals">
137
                    <queryterm casesensitive="true" searchmode="equals">
138
                      <value>PISCO Categories</value>
139
                      <pathexpr>keywordSet/keywordThesaurus</pathexpr>
140
                    </queryterm>
141
                  </querygroup>
142
                  <querygroup operator="INTERSECT">
143
                    <queryterm casesensitive="true" searchmode="equals">
144
                      <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
145
                      <pathexpr>access/principal</pathexpr>
146
                    </queryterm>
147
                    <queryterm casesensitive="true" searchmode="equals">
148
                      <value>all</value>
149
                      <pathexpr>access/permission/allow</pathexpr>
150
                    </queryterm>
151
                  </querygroup>
152
                </querygroup>
153
              </pathquery>
154
              -->
155
                  Intertidal Community Survey Data
156
                  </a>
157
                  <br />
158
                 <a href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3ESubtidal%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3ECommunity%20Survey%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
159
            <!--
160
            <?xml version="1.0"?>
161
              <pathquery version="1.2">
162
                <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
163
                <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
164
                <returnfield>dataset/title</returnfield>
165
                <returnfield>dataTable/entityName</returnfield>
166
                <returnfield>creator/individualName/surName</returnfield>
167
                <returnfield>creator/organizationName</returnfield>
168
                <returnfield>dataTable/physical/distribution/online/url</returnfield>
169
                <querygroup operator="INTERSECT">
170
                  <queryterm casesensitive="false" searchmode="starts-with">
171
                    <value>PISCO:</value>
172
                    <pathexpr>title</pathexpr>
173
                  </queryterm>
174
                  <queryterm casesensitive="false" searchmode="starts-with">
175
                    <value>pisco.</value>
176
                    <pathexpr>/eml/@packageId</pathexpr>
177
                  </queryterm>
178
                  <queryterm casesensitive="false" searchmode="contains">
179
                    <value>PISCO</value>
180
                    <pathexpr>creator/organizationName</pathexpr>
181
                  </queryterm>
182
                  <querygroup operator="INTERSECT">
183
                    <queryterm casesensitive="true" searchmode="equals">
184
                      <value>Subtidal Data</value>
185
                      <pathexpr>keywordSet/keyword</pathexpr>
186
                    </queryterm>
187
                    <queryterm casesensitive="true" searchmode="equals">
188
                      <value>Community Survey Data</value>
189
                      <pathexpr>keywordSet/keyword</pathexpr>
190
                    </queryterm>
191
                    <queryterm casesensitive="true" searchmode="equals">
192
                    <queryterm casesensitive="true" searchmode="equals">
193
                      <value>PISCO Categories</value>
194
                      <pathexpr>keywordSet/keywordThesaurus</pathexpr>
195
                    </queryterm>
196
                  </querygroup>
197
                  <querygroup operator="INTERSECT">
198
                    <queryterm casesensitive="true" searchmode="equals">
199
                      <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
200
                      <pathexpr>access/principal</pathexpr>
201
                    </queryterm>
202
                    <queryterm casesensitive="true" searchmode="equals">
203
                      <value>all</value>
204
                      <pathexpr>access/permission/allow</pathexpr>
205
                    </queryterm>
206
                  </querygroup>
207
                </querygroup>
208
              </pathquery>
209
              -->
210
                  Subtidal Community Survey Data
211
                  </a>
212
                 <br />
213
                 <a href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3ESBCLTER:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Esbclter.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3ESBCLTER%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/pathquery%3E">
214
            <!--
215
            <?xml version="1.0"?>
216
              <pathquery version="1.2">
217
                <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
218
                <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
219
                <returnfield>dataset/title</returnfield>
220
                <returnfield>dataTable/entityName</returnfield>
221
                <returnfield>creator/individualName/surName</returnfield>
222
                <returnfield>creator/organizationName</returnfield>
223
                <returnfield>dataTable/physical/distribution/online/url</returnfield>
224
                <querygroup operator="INTERSECT">
225
                  <queryterm casesensitive="false" searchmode="starts-with">
226
                    <value>SBCLTER:</value>
227
                    <pathexpr>title</pathexpr>
228
                  </queryterm>
229
                  <queryterm casesensitive="false" searchmode="starts-with">
230
                    <value>sbclter.</value>
231
                    <pathexpr>/eml/@packageId</pathexpr>
232
                  </queryterm>
233
                  <queryterm casesensitive="false" searchmode="contains">
234
                    <value>SBCLTER</value>
235
                    <pathexpr>creator/organizationName</pathexpr>
236
                  </queryterm>
237
                </querygroup>
238
              </pathquery>
239
              -->
240
             SBCLTER Demo Data
241
             </a>
242
                    </td>
243
                   <td>
244
                     <a
245
                     href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EMicrochemistry%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
246
                <!--
247
                <?xml version="1.0"?>
248
                  <pathquery version="1.2">
249
                    <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
250
                    <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
251
                    <returnfield>dataset/title</returnfield>
252
                    <returnfield>dataTable/entityName</returnfield>
253
                    <returnfield>creator/individualName/surName</returnfield>
254
                    <returnfield>creator/organizationName</returnfield>
255
                    <returnfield>dataTable/physical/distribution/online/url</returnfield>
256
                    <querygroup operator="INTERSECT">
257
                      <queryterm casesensitive="false" searchmode="starts-with">
258
                        <value>PISCO:</value>
259
                        <pathexpr>title</pathexpr>
260
                      </queryterm>
261
                      <queryterm casesensitive="false" searchmode="starts-with">
262
                        <value>pisco.</value>
263
                        <pathexpr>/eml/@packageId</pathexpr>
264
                      </queryterm>
265
                      <queryterm casesensitive="false" searchmode="contains">
266
                        <value>PISCO</value>
267
                        <pathexpr>creator/organizationName</pathexpr>
268
                      </queryterm>
269
                      <querygroup operator="INTERSECT">
270
                        <queryterm casesensitive="true" searchmode="equals">
271
                          <value>Microchemistry Data</value>
272
                          <pathexpr>keywordSet/keyword</pathexpr>
273
                        </queryterm>
274
                        <queryterm casesensitive="true" searchmode="equals">
275
                          <value>PISCO Categories</value>
276
                          <pathexpr>keywordSet/keywordThesaurus</pathexpr>
277
                        </queryterm>
278
                      </querygroup>
279
                      <querygroup operator="INTERSECT">
280
                        <queryterm casesensitive="true" searchmode="equals">
281
                          <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
282
                          <pathexpr>access/principal</pathexpr>
283
                        </queryterm>
284
                        <queryterm casesensitive="true" searchmode="equals">
285
                          <value>all</value>
286
                          <pathexpr>access/permission/allow</pathexpr>
287
                        </queryterm>
288
                      </querygroup>
289
                    </querygroup>
290
                  </pathquery>
291
                  -->
292
                 Microchemistry Data
293
                 </a>
294
                 <br />
295
                 <a href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EMicrochemistry%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
296
            <!--
297
            <?xml version="1.0"?>
298
              <pathquery version="1.2">
299
                <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
300
                <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
301
                <returnfield>dataset/title</returnfield>
302
                <returnfield>dataTable/entityName</returnfield>
303
                <returnfield>creator/individualName/surName</returnfield>
304
                <returnfield>creator/organizationName</returnfield>
305
                <returnfield>dataTable/physical/distribution/online/url</returnfield>
306
                <querygroup operator="INTERSECT">
307
                  <queryterm casesensitive="false" searchmode="starts-with">
308
                    <value>PISCO:</value>
309
                    <pathexpr>title</pathexpr>
310
                  </queryterm>
311
                  <queryterm casesensitive="false" searchmode="starts-with">
312
                    <value>pisco.</value>
313
                    <pathexpr>/eml/@packageId</pathexpr>
314
                  </queryterm>
315
                  <queryterm casesensitive="false" searchmode="contains">
316
                    <value>PISCO</value>
317
                    <pathexpr>creator/organizationName</pathexpr>
318
                  </queryterm>
319
                  <querygroup operator="INTERSECT">
320
                    <queryterm casesensitive="true" searchmode="equals">
321
                      <value>Intertidal Data</value>
322
                      <pathexpr>keywordSet/keyword</pathexpr>
323
                    </queryterm>
324
                    <queryterm casesensitive="true" searchmode="equals">
325
                      <value>Recruitment Data</value>
326
                      <pathexpr>keywordSet/keyword</pathexpr>
327
                    </queryterm>
328
                    <queryterm casesensitive="true" searchmode="equals">
329
                      <value>PISCO Categories</value>
330
                      <pathexpr>keywordSet/keywordThesaurus</pathexpr>
331
                    </queryterm>
332
                  </querygroup>
333
                  <querygroup operator="INTERSECT">
334
                    <queryterm casesensitive="true" searchmode="equals">
335
                      <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
336
                      <pathexpr>access/principal</pathexpr>
337
                    </queryterm>
338
                    <queryterm casesensitive="true" searchmode="equals">
339
                      <value>all</value>
340
                      <pathexpr>access/permission/allow</pathexpr>
341
                    </queryterm>
342
                  </querygroup>
343
                </querygroup>
344
              </pathquery>
345
              -->
346
             Intertidal Recruitment Data
347
             </a>
348
             <br />
349
                 <a href="@systemidserver@@servlet-path@?action=squery&amp;qformat=pisco&amp;query=%3C?xml%20version=%221.0%22?%3E%3Cpathquery%20version=%221.2%22%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3EdataTable/entityName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3EdataTable/physical/distribution/online/url%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3EPISCO:%3C/value%3E%3Cpathexpr%3Etitle%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22starts-with%22%3E%3Cvalue%3Episco.%3C/value%3E%3Cpathexpr%3E/eml/@packageId%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22false%22%20searchmode=%22contains%22%3E%3Cvalue%3EPISCO%3C/value%3E%3Cpathexpr%3Ecreator/organizationName%3C/pathexpr%3E%3C/queryterm%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EIntertidal%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3ERecruitment%20Data%3C/value%3E%3Cpathexpr%3EkeywordSet/keyword%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3EPISCO%20Categories%3C/value%3E%3Cpathexpr%3EkeywordSet/keywordThesaurus%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Ecn=data-manager,o=PISCO,dc=ecoinformatics,dc=org%3C/value%3E%3Cpathexpr%3Eaccess/principal%3C/pathexpr%3E%3C/queryterm%3E%3Cqueryterm%20casesensitive=%22true%22%20searchmode=%22equals%22%3E%3Cvalue%3Eall%3C/value%3E%3Cpathexpr%3Eaccess/permission/allow%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/querygroup%3E%3C/pathquery%3E">
350
            <!--
351
            <?xml version="1.0"?>
352
              <pathquery version="1.2">
353
                <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
354
                <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
355
                <returnfield>dataset/title</returnfield>
356
                <returnfield>dataTable/entityName</returnfield>
357
                <returnfield>creator/individualName/surName</returnfield>
358
                <returnfield>creator/organizationName</returnfield>
359
                <returnfield>dataTable/physical/distribution/online/url</returnfield>
360
                <querygroup operator="INTERSECT">
361
                  <queryterm casesensitive="false" searchmode="starts-with">
362
                    <value>PISCO:</value>
363
                    <pathexpr>title</pathexpr>
364
                  </queryterm>
365
                  <queryterm casesensitive="false" searchmode="starts-with">
366
                    <value>pisco.</value>
367
                    <pathexpr>/eml/@packageId</pathexpr>
368
                  </queryterm>
369
                  <queryterm casesensitive="false" searchmode="contains">
370
                    <value>PISCO</value>
371
                    <pathexpr>creator/organizationName</pathexpr>
372
                  </queryterm>
373
                  <querygroup operator="INTERSECT">
374
                    <queryterm casesensitive="true" searchmode="equals">
375
                      <value>Intertidal Data</value>
376
                      <pathexpr>keywordSet/keyword</pathexpr>
377
                    </queryterm>
378
                    <queryterm casesensitive="true" searchmode="equals">
379
                      <value>Recruitment Data</value>
380
                      <pathexpr>keywordSet/keyword</pathexpr>
381
                    </queryterm>
382
                    <queryterm casesensitive="true" searchmode="equals">
383
                      <value>PISCO Categories</value>
384
                      <pathexpr>keywordSet/keywordThesaurus</pathexpr>
385
                    </queryterm>
386
                  </querygroup>
387
                  <querygroup operator="INTERSECT">
388
                    <queryterm casesensitive="true" searchmode="equals">
389
                      <value>cn=data-manager,o=PISCO,dc=ecoinformatics,dc=org</value>
390
                      <pathexpr>access/principal</pathexpr>
391
                    </queryterm>
392
                    <queryterm casesensitive="true" searchmode="equals">
393
                      <value>all</value>
394
                      <pathexpr>access/permission/allow</pathexpr>
395
                    </queryterm>
396
                  </querygroup>
397
                </querygroup>
398
              </pathquery>
399
              -->
400
             Subtidal Recruitment Data
401
             </a>
402
               </td>
403
             </tr>
404
          </table>
405
    <xsl:comment>end the search form area</xsl:comment>
406
    <!-- end search form area -->
407
  </xsl:template>
408

  
409
</xsl:stylesheet>
lib/style/skins/sbclter/eml/eml-party-2.0.0.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile: eml-party-2.0.0.xsl,v $'
4
  *      Authors: Matthew Brooke
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: cjones $'
10
  *     '$Date: 2004/10/05 23:50:34 $'
11
  * '$Revision: 1.1 $'
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-variable.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

  
34
  <xsl:output method="html" encoding="iso-8859-1"
35
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
36
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
37
              indent="yes" />  
38

  
39
  <!-- This module is for party member and it is self contained-->
40

  
41
  <xsl:template name="party">
42
      <xsl:param name="partyfirstColStyle"/>
43
      <table class="{$tabledefaultStyle}">
44
        <xsl:choose>
45
         <xsl:when test="references!=''">
46
          <xsl:variable name="ref_id" select="references"/>
47
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
48
          <xsl:for-each select="$references">
49
            <xsl:apply-templates mode="party">
50
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
51
            </xsl:apply-templates>
52
          </xsl:for-each>
53
        </xsl:when>
54
        <xsl:otherwise>
55
          <xsl:apply-templates mode="party">
56
            <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
57
          </xsl:apply-templates>
58
        </xsl:otherwise>
59
      </xsl:choose>
60
      </table>
61
  </xsl:template>
62

  
63
  <!-- *********************************************************************** -->
64

  
65

  
66
  <xsl:template match="individualName" mode="party">
67
      <xsl:param name="partyfirstColStyle"/>
68
      <xsl:if test="normalize-space(.)!=''">
69
        <tr><td class="{$partyfirstColStyle}" >
70
            Individual:</td><td class="{$secondColStyle}" >
71
           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
72
           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
73
           <xsl:value-of select="./surName"/></b>
74
        </td></tr>
75
      </xsl:if>
76
  </xsl:template>
77

  
78

  
79
  <xsl:template match="organizationName" mode="party">
80
      <xsl:param name="partyfirstColStyle"/>
81
      <xsl:if test="normalize-space(.)!=''">
82
        <tr><td class="{$partyfirstColStyle}" >
83
        Organization:</td><td class="{$secondColStyle}">
84
        <b><xsl:value-of select="."/></b>
85
        </td></tr>
86
      </xsl:if>
87
  </xsl:template>
88

  
89

  
90
  <xsl:template match="positionName" mode="party">
91
      <xsl:param name="partyfirstColStyle"/>
92
      <xsl:if test="normalize-space(.)!=''">
93
      <tr><td class="{$partyfirstColStyle}">
94
        Position:</td><td class="{$secondColStyle}">
95
        <xsl:value-of select="."/></td></tr>
96
      </xsl:if>
97
  </xsl:template>
98

  
99

  
100
  <xsl:template match="address" mode="party">
101
    <xsl:param name="partyfirstColStyle"/>
102
    <xsl:if test="normalize-space(.)!=''">
103
      <xsl:call-template name="addressCommon">
104
         <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
105
      </xsl:call-template>
106
    </xsl:if>
107
    </xsl:template>
108

  
109
   <!-- This template will be call by other place-->
110
   <xsl:template name="address">
111
      <xsl:param name="partyfirstColStyle"/>
112
      <table class="{$tablepartyStyle}">
113
        <xsl:choose>
114
         <xsl:when test="references!=''">
115
          <xsl:variable name="ref_id" select="references"/>
116
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
117
          <xsl:for-each select="$references">
118
            <xsl:call-template name="addressCommon">
119
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
120
            </xsl:call-template>
121
          </xsl:for-each>
122
        </xsl:when>
123
        <xsl:otherwise>
124
          <xsl:call-template name="addressCommon">
125
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
126
          </xsl:call-template>
127
        </xsl:otherwise>
128
      </xsl:choose>
129
      </table>
130
  </xsl:template>
131

  
132
   <xsl:template name="addressCommon">
133
    <xsl:param name="partyfirstColStyle"/>
134
    <xsl:if test="normalize-space(.)!=''">
135
    <tr><td class="{$partyfirstColStyle}">
136
        Address:</td><td>
137
    <table class="{$tablepartyStyle}">
138
    <xsl:for-each select="deliveryPoint">
139
    <tr><td class="{$secondColStyle}"><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
140
    </xsl:for-each>
141
    <!-- only include comma if city exists... -->
142
    <tr><td class="{$secondColStyle}" >
143
    <xsl:if test="normalize-space(city)!=''">
144
        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
145
    </xsl:if>
146
    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
147
        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
148
    </xsl:if>
149
    <xsl:if test="normalize-space(country)!=''">
150
      <xsl:value-of select="country"/>
151
    </xsl:if></td></tr>
152
    </table></td></tr>
153
    </xsl:if>
154
   </xsl:template>
155

  
156
  <xsl:template match="phone" mode="party">
157
      <xsl:param name="partyfirstColStyle"/>
158
      <tr><td class="{$partyfirstColStyle}" >
159
             Phone:
160
          </td>
161
          <td>
162
            <table class="{$tablepartyStyle}">
163
              <tr><td class="{$secondColStyle}">
164
                     <xsl:value-of select="."/>
165
                     <xsl:if test="normalize-space(./@phonetype)!=''">
166
                       <xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text>
167
                     </xsl:if>
168
                   </td>
169
               </tr>
170
             </table>
171
          </td>
172
      </tr>
173
  </xsl:template>
174

  
175

  
176
  <xsl:template match="electronicMailAddress" mode="party">
177
      <xsl:param name="partyfirstColStyle"/>
178
      <xsl:if test="normalize-space(.)!=''">
179
       <tr><td class="{$partyfirstColStyle}" >
180
            Email Address:
181
          </td>
182
          <td>
183
            <table class="{$tablepartyStyle}">
184
              <tr><td class="{$secondColStyle}">
185
                    <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/>
186
                    <xsl:value-of select="."/></a>
187
                   </td>
188
              </tr>
189
            </table>
190
          </td>
191
        </tr>
192
      </xsl:if>
193
  </xsl:template>
194

  
195

  
196
  <xsl:template match="onlineUrl" mode="party">
197
      <xsl:param name="partyfirstColStyle"/>
198
      <xsl:if test="normalize-space(.)!=''">
199
      <tr><td class="{$partyfirstColStyle}" >
200
            Web Address:
201
          </td>
202
          <td>
203
             <table class="{$tablepartyStyle}">
204
               <tr><td class="{$secondColStyle}">
205
                     <a><xsl:attribute name="href">http://<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/>
206
                     <xsl:value-of select="."/></a>
207
                    </td>
208
               </tr>
209
             </table>
210
           </td>
211
        </tr>
212
      </xsl:if>
213
  </xsl:template>
214

  
215

  
216
  <xsl:template match="userId" mode="party">
217
      <xsl:param name="partyfirstColStyle"/>
218
      <xsl:if test="normalize-space(.)!=''">
219
      <tr><td class="{$partyfirstColStyle}" >
220
        Id:</td><td class="{$secondColStyle}">
221
        <xsl:value-of select="."/></td></tr>
222
      </xsl:if>
223
  </xsl:template>
224
  <xsl:template match="text()" mode="party" />
225
</xsl:stylesheet>
lib/style/skins/sbclter/eml/eml-settings-2.0.0.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile: eml-settings-2.0.0.xsl,v $'
4
  *      Authors: Matthew Brooke
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: cjones $'
10
  *     '$Date: 2004/10/05 23:50:34 $'
11
  * '$Revision: 1.1 $'
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
  *****************************************************************************
28
  *
29
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet that provides a
30
  * single, central location for setting all installation-specific paths for
31
  * XSLT stylesheets.  It is intended to be imported (using the
32
  * <xsl:import href="..." /> element) into other XSLT stylesheets used in the
33
  * transformation of xml files that are valid with respect to the
34
  * applicable dtd of the Ecological Metadata Language (EML).
35

  
36
  * Some of these paths incorporate values of the form: @token-name@; these are
37
  * intended to allow an Ant (http://jakarta.apache.org/ant/index.html) build
38
  * script to replace the tokens automatically with the correct values at build/
39
  * install time.  If Ant is not used, the tokens may simply be edited by hand
40
  * to point to the correct resources.
41
  * Note that the values given below may be overridden by passing parameters to
42
  * the XSLT processor programatically, although the procedure for doing so is
43
  * vendor-specific.  Note also that these parameter definitions will be overridden
44
  * by any identical parameter names declared within xsl stylesheets that import
45
  * this stylesheet.
46
  *
47
-->
48

  
49
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
50

  
51

  
52
<!--
53
    /**
54
    *   The filename of the default css stylesheet to be used
55
    *   (filename only - not the whole path, and no ".css" extension.  The
56
    *   example below would look for a file named "default.css" in the same
57
    *   directory as the stylesheets
58
    */
59
-->
60

  
61
  <xsl:param name="qformat">@default-style@</xsl:param>
62

  
63

  
64
<!--
65
    /**
66
    *   The module which need to be display in eml2 document. The default
67
    *   value is dataset
68
    */
69
-->
70
  <xsl:param name="displaymodule">dataset</xsl:param>
71

  
72

  
73
<!--
74
    /**
75
    *   To show the links for the Entities in the dataset display module.
76
    */
77
-->
78
  <xsl:param name="withEntityLinks">1</xsl:param>
79

  
80

  
81
<!--
82
    /**
83
    *   To show the link for Additional Metadata in the dataset display module.
84
    */
85
-->
86
  <xsl:param name="withAdditionalMetadataLink">1</xsl:param>
87

  
88

  
89
<!--
90
    /**
91
    *   To show the link for the Original XML in the dataset display module.
92
    */
93
-->
94
  <xsl:param name="withOriginalXMLLink">1</xsl:param>
95

  
96

  
97
<!--
98
    /**
99
    *   To show the Attributes table in the entity display.
100
    */
101
-->
102
  <xsl:param name="withAttributes">1</xsl:param>
103

  
104

  
105
<!--
106
   /**
107
    *   the path of the directory where the XSL and CSS files reside - starts
108
    *   with context name, eg: /myContextRoot/styleDirectory.
109
    *   (As found in "http://hostname:port/myContextRoot/styleDirectory").
110
    *   Needs leading slash but not trailing slash
111
    *
112
    *   EXAMPLE:
113
    *       <xsl:param name="stylePath">/brooke/style</xsl:param>
114
    */
115
-->
116

  
117
    <xsl:param name="stylePath">@style-skins-path@</xsl:param>
118

  
119

  
120
<!--
121
   /*
122
    *   the path of the directory where the common javascript and css files
123
    *   reside - i.e the files that are not skin-specific. Starts
124
    *   with context name, eg: /myContextRoot/styleCommonDirectory.
125
    *   (As found in "http://hostname:port/myContextRoot/styleCommonDirectory").
126
    *
127
    *   EXAMPLE
128
    *       <xsl:param name="styleCommonPath">/brooke/style/common</xsl:param>
129
    */
130
-->
131

  
132
    <xsl:param name="styleCommonPath">@style-common-path@</xsl:param>
133

  
134

  
135
<!--the docid of xml which is processed-->
136
    <xsl:param name="docid"/>
137
<!-- type of entity, data table or spacial raster or others-->
138
    <xsl:param name="entitytype"></xsl:param>
139
<!-- the index of entity in same entity type -->
140
    <xsl:param name="entityindex"/>
141
<!-- the index of attribute in same entity -->
142
    <xsl:param name="attributeindex"/>
143
<!-- the index of physical part in entity part-->
144
    <xsl:param name="physicalindex"/>
145
<!-- the index of distribution in physical part  -->
146
    <xsl:param name="distributionindex"/>
147
<!-- the levle of distribution -->
148
    <xsl:param name="distributionlevel"/>
149
<!-- the index of attribute in attribute list-->
150
    <xsl:param name="attributeindex"/>
151
<!-- the index of additional metadata-->
152
    <xsl:param name="additionalmetadataindex"/>
153
<!-- attribute set to get rid of cell spacing-->
154
    <xsl:attribute-set name="cellspacing">
155
      <xsl:attribute name="cellpadding">0</xsl:attribute>
156
      <xsl:attribute name="cellspacing">0</xsl:attribute>
157
    </xsl:attribute-set>
158

  
159

  
160
<!--
161
    /**
162
    *   The base URI to be used for the href link to each document in a
163
    *   "subject-relationaship-object" triple
164
    *
165
    *   EXAMPLE:
166
    *       <xsl:param name="tripleURI">
167
    *         <![CDATA[/brooke/catalog/metacat?action=read&qformat=knb&docid=]]>
168
    *       </xsl:param>
169
    *
170
    *   (Note in the above case the "qformat=knb" parameter in the url; a system
171
    *   could pass this parameter to the XSLT engine to override the local
172
    *   <xsl:param name="qformat"> tags defined earlier in this document.)
173
    */
174
-->
175

  
176
    <xsl:param name="tripleURI"><![CDATA[@html-path@/metacat?action=read&qformat=]]><xsl:value-of select="$qformat" /><![CDATA[&docid=]]></xsl:param>
177

  
178
    <!-- URL for xmlformat-->
179
    <xsl:param name="xmlURI"><![CDATA[@html-path@/metacat?action=read&qformat=xml&docid=]]></xsl:param>
180

  
181

  
182
<!--
183
    /**
184
    *   Most of the html pages are currently laid out as a 2-column table, with
185
    *   highlights for more-major rows containing subsection titles etc.
186
    *   The following parameters are used within the
187
    *           <td width="whateverWidth" class="whateverClass">
188
    *   tags to define the column widths and (css) styles.
189
    *
190
    *   The values of the "xxxColWidth" parameters can be percentages (need to
191
    *   include % sign) or pixels (number only). Note that if a width is defined
192
    *   in the CSS stylesheet (see next paragraph), it will override this local
193
    *   width setting in browsers newer than NN4
194
    *
195
    *   The values of the "xxxColStyle" parameters refer to style definitions
196
    *   listed in the *.css stylesheet that is defined in this xsl document,
197
    *   above (in the <xsl:param name="qformat"> tag).
198
    *
199
    *   (Note that if the "qformat" is changed from the default by passing a
200
    *   value in the url (see notes for <xsl:param name="qformat"> tag, above),
201
    *   then the params below must match style names in the "new" CSS stylesheet
202
    */
203
-->
204

  
205
<!--    the style for major rows containing subsection titles etc. -->
206
  <xsl:param name="subHeaderStyle" select="'tablehead'"/>
207

  
208
<!--    the style for major rows containing links, such as additional metadata, 
209
        original xml file etc. -->
210
  <xsl:param name="linkedHeaderStyle" select="'linkedHeaderStyle'"/>
211

  
212
<!--    the width for the first column (but see note above) -->
213
  <xsl:param name="firstColWidth" select="'15%'"/>
214

  
215
<!-- the style for the first column -->
216
  <xsl:param name="firstColStyle" select="'rowodd'"/>
217

  
218
<!--    the width for the second column (but see note above) -->
219
  <xsl:param name="secondColWidth" select="'85%'"/>
220

  
221
<!-- the style for the second column -->
222
  <xsl:param name="secondColStyle" select="'roweven'"/>
223

  
224
<!-- the style for the attribute table -->
225
  <xsl:param name="tableattributeStyle" select="'tableattribute'"/>
226

  
227
<!-- the style for the border -->
228
  <xsl:param name="borderStyle" select="'bordered'"/>
229

  
230
<!-- the style for the even col in attributes table -->
231
  <xsl:param name="colevenStyle" select="'coleven'"/>
232

  
233
<!-- the style for the inner even col in attributes table -->
234
  <xsl:param name="innercolevenStyle" select="'innercoleven'"/>
235

  
236
<!-- the style for the odd col in attributes table -->
237
  <xsl:param name="coloddStyle" select="'colodd'"/>
238

  
239
<!-- the style for the inner odd col in attributes table -->
240
  <xsl:param name="innercoloddStyle" select="'innercolodd'"/>
241

  
242

  
243
<!-- the default alignment style for the wrapper around the main tables -->
244
  <!--
245
  <xsl:param name="mainTableAligmentStyle" select="'mainTableAligmentStyle'"/>
246
  -->
247
  <xsl:param name="mainTableAligmentStyle" select="'content'"/>
248

  
249
<!-- the default style for the main container table -->
250
  <xsl:param name="mainContainerTableStyle" select="'group group_border'"/>
251

  
252
<!-- the default style for all other tables -->
253
  <xsl:param name="tabledefaultStyle" select="'subGroup subGroup_border onehundred_percent'"/>
254

  
255
<!-- the style for table party -->
256
  <xsl:param name="tablepartyStyle" select="'tableparty'"/>
257

  
258
<!-- Some html pages use a nested table in the second column.
259
     Some of these nested tables set their first column to
260
     the following width: -->
261
  <xsl:param name="secondColIndent" select="'10%'"/>
262

  
263
<!-- the first column width of attribute table-->
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff