Revision 1689
Added by Jing Tao about 21 years ago
eml-2.0.0.xsl | ||
---|---|---|
31 | 31 |
--> |
32 | 32 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
33 | 33 |
<xsl:import href="eml-access-2.0.0.xsl"/> |
34 |
<xsl:import href="eml-additionalmetadata-2.0.0.xsl"/> |
|
34 | 35 |
<xsl:import href="eml-attribute-2.0.0.xsl"/> |
35 | 36 |
<xsl:import href="eml-attribute-enumeratedDomain-2.0.0.xsl"/> |
36 | 37 |
<xsl:import href="eml-constraint-2.0.0.xsl"/> |
... | ... | |
146 | 147 |
</xsl:for-each> |
147 | 148 |
<!-- Additinal metadata--> |
148 | 149 |
<xsl:choose> |
149 |
<xsl:when test="displaymodule!='additionalmetadata'">
|
|
150 |
<xsl:for-each select="additionalMetadata">
|
|
151 |
<xsl:call-template name="additionalmetadataURL">
|
|
152 |
<xsl:with-param name="index" select="position()"/>
|
|
153 |
</xsl:call-template>
|
|
150 |
<xsl:when test="$displaymodule='additionalmetadata'">
|
|
151 |
<xsl:for-each select="additionalMetadata">
|
|
152 |
<xsl:if test="$additionalmetadataindex=position()">
|
|
153 |
<xsl:call-template name="additionalmetadata"/>
|
|
154 |
</xsl:if>
|
|
154 | 155 |
</xsl:for-each> |
155 | 156 |
</xsl:when> |
156 | 157 |
<xsl:otherwise> |
158 |
<xsl:if test="$displaymodule='dataset'"> |
|
157 | 159 |
<xsl:for-each select="additionalMetadata"> |
158 |
<xsl:if test="$additionalmetadataindex=position()"> |
|
159 |
<xsl:call-template name="additionalmetadata"/> |
|
160 |
</xsl:if> |
|
161 |
</xsl:for-each> |
|
160 |
<xsl:call-template name="additionalmetadataURL"> |
|
161 |
<xsl:with-param name="index" select="position()"/> |
|
162 |
</xsl:call-template> |
|
163 |
</xsl:for-each> |
|
164 |
</xsl:if> |
|
162 | 165 |
</xsl:otherwise> |
163 | 166 |
</xsl:choose> |
164 | 167 |
</xsl:template> |
... | ... | |
181 | 184 |
<xsl:if test="$displaymodule='attributedomain'"> |
182 | 185 |
<xsl:call-template name="datasetattributedomain"/> |
183 | 186 |
</xsl:if> |
187 |
<xsl:if test="$displaymodule='attributecoverage'"> |
|
188 |
<xsl:call-template name="datasetattributecoverage"/> |
|
189 |
</xsl:if> |
|
190 |
<xsl:if test="$displaymodule='attributemethod'"> |
|
191 |
<xsl:call-template name="datasetattributemethod"/> |
|
192 |
</xsl:if> |
|
184 | 193 |
<xsl:if test="$displaymodule='inlinedata'"> |
185 | 194 |
<xsl:call-template name="datasetinlinedata"/> |
186 | 195 |
</xsl:if> |
... | ... | |
189 | 198 |
|
190 | 199 |
<!--*************** Data set part *************--> |
191 | 200 |
<xsl:template name="datasetpart"> |
192 |
<tr><td> |
|
193 |
<center>
|
|
201 |
<tr><td colspan="2" width="100%">
|
|
202 |
<right>
|
|
194 | 203 |
<h3>Data Set Description</h3> |
195 |
</center>
|
|
204 |
</right>
|
|
196 | 205 |
</td></tr> |
197 |
<tr> |
|
198 |
<td width="100%"> |
|
199 |
<xsl:call-template name="identifier"> |
|
206 |
<xsl:call-template name="identifier"> |
|
200 | 207 |
<xsl:with-param name="packageID" select="../@packageId"/> |
201 | 208 |
<xsl:with-param name="system" select="../@system"/> |
202 |
</xsl:call-template> |
|
203 |
</td> |
|
204 |
</tr> |
|
209 |
</xsl:call-template> |
|
205 | 210 |
<tr> |
206 |
<td width="100%"> |
|
211 |
<td colspan="2" width="100%">
|
|
207 | 212 |
<xsl:apply-templates select="." mode="dataset"/> |
208 | 213 |
</td> |
209 | 214 |
</tr> |
... | ... | |
211 | 216 |
|
212 | 217 |
<!--************ Entity part *****************--> |
213 | 218 |
<xsl:template name="entitypart"> |
214 |
<tr><td> |
|
215 |
<center>
|
|
219 |
<tr><td colspan="2" width="100%" >
|
|
220 |
<right>
|
|
216 | 221 |
<h3>Entity Description</h3> |
217 |
</center>
|
|
222 |
</right>
|
|
218 | 223 |
</td></tr> |
219 |
<tr> |
|
220 |
<td width="100%"> |
|
221 |
<xsl:call-template name="identifier"> |
|
224 |
<xsl:call-template name="identifier"> |
|
222 | 225 |
<xsl:with-param name="packageID" select="../@packageId"/> |
223 | 226 |
<xsl:with-param name="system" select="../@system"/> |
224 |
</xsl:call-template> |
|
225 |
</td> |
|
226 |
</tr> |
|
227 |
</xsl:call-template> |
|
228 |
|
|
227 | 229 |
<tr> |
228 |
<td width="100%"> |
|
230 |
<td width="100%" colspan="2">
|
|
229 | 231 |
<!-- find the subtree to process --> |
230 | 232 |
<xsl:if test="$entitytype='dataTable'"> |
231 | 233 |
<xsl:for-each select="dataTable"> |
... | ... | |
311 | 313 |
|
312 | 314 |
<!--************ Attribute part *****************--> |
313 | 315 |
<xsl:template name="attributepart"> |
314 |
<tr><td> |
|
315 |
<center>
|
|
316 |
<tr><td width="100%">
|
|
317 |
<right>
|
|
316 | 318 |
<h3>Attributes Description</h3> |
317 |
</center>
|
|
319 |
</right>
|
|
318 | 320 |
</td></tr> |
319 | 321 |
<tr> |
320 | 322 |
<td width="100%"> |
... | ... | |
339 | 341 |
<!--************************Attribute Domain************************--> |
340 | 342 |
<xsl:template name="datasetattributedomain"> |
341 | 343 |
<tr><td> |
342 |
<center>
|
|
344 |
<right>
|
|
343 | 345 |
<h3>Attributes Domain</h3> |
344 |
</center>
|
|
346 |
</right>
|
|
345 | 347 |
</td></tr> |
346 | 348 |
<tr> |
347 | 349 |
<td width="100%"> |
... | ... | |
352 | 354 |
<xsl:for-each select="attributeList"> |
353 | 355 |
<xsl:for-each select="attribute"> |
354 | 356 |
<xsl:if test="position()=$attributeindex"> |
355 |
<xsl:for-each select="measurementScale/*"> |
|
357 |
<xsl:for-each select="measurementScale/*/*">
|
|
356 | 358 |
<xsl:call-template name="nonNumericDomain"> |
357 | 359 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
358 | 360 |
</xsl:call-template> |
... | ... | |
363 | 365 |
</xsl:if> |
364 | 366 |
</xsl:for-each> |
365 | 367 |
</xsl:if> |
368 |
<xsl:if test="$entitytype='spatialRaster'"> |
|
369 |
<xsl:for-each select="spatialRaster"> |
|
370 |
<xsl:if test="position()=$entityindex"> |
|
371 |
<xsl:for-each select="attributeList"> |
|
372 |
<xsl:for-each select="attribute"> |
|
373 |
<xsl:if test="position()=$attributeindex"> |
|
374 |
<xsl:for-each select="measurementScale/*/*"> |
|
375 |
<xsl:call-template name="nonNumericDomain"> |
|
376 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
377 |
</xsl:call-template> |
|
378 |
</xsl:for-each> |
|
379 |
</xsl:if> |
|
380 |
</xsl:for-each> |
|
381 |
</xsl:for-each> |
|
382 |
</xsl:if> |
|
383 |
</xsl:for-each> |
|
384 |
</xsl:if> |
|
385 |
<xsl:if test="$entitytype='spatialVector'"> |
|
386 |
<xsl:for-each select="spatialVector"> |
|
387 |
<xsl:if test="position()=$entityindex"> |
|
388 |
<xsl:for-each select="attributeList"> |
|
389 |
<xsl:for-each select="attribute"> |
|
390 |
<xsl:if test="position()=$attributeindex"> |
|
391 |
<xsl:for-each select="measurementScale/*/*"> |
|
392 |
<xsl:call-template name="nonNumericDomain"> |
|
393 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
394 |
</xsl:call-template> |
|
395 |
</xsl:for-each> |
|
396 |
</xsl:if> |
|
397 |
</xsl:for-each> |
|
398 |
</xsl:for-each> |
|
399 |
</xsl:if> |
|
400 |
</xsl:for-each> |
|
401 |
</xsl:if> |
|
402 |
<xsl:if test="$entitytype='storedProcedure'"> |
|
403 |
<xsl:for-each select="storedProcedure"> |
|
404 |
<xsl:if test="position()=$entityindex"> |
|
405 |
<xsl:for-each select="attributeList"> |
|
406 |
<xsl:for-each select="attribute"> |
|
407 |
<xsl:if test="position()=$attributeindex"> |
|
408 |
<xsl:for-each select="measurementScale/*/*"> |
|
409 |
<xsl:call-template name="nonNumericDomain"> |
|
410 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
411 |
</xsl:call-template> |
|
412 |
</xsl:for-each> |
|
413 |
</xsl:if> |
|
414 |
</xsl:for-each> |
|
415 |
</xsl:for-each> |
|
416 |
</xsl:if> |
|
417 |
</xsl:for-each> |
|
418 |
</xsl:if> |
|
419 |
<xsl:if test="$entitytype='view'"> |
|
420 |
<xsl:for-each select="view"> |
|
421 |
<xsl:if test="position()=$entityindex"> |
|
422 |
<xsl:for-each select="attributeList"> |
|
423 |
<xsl:for-each select="attribute"> |
|
424 |
<xsl:if test="position()=$attributeindex"> |
|
425 |
<xsl:for-each select="measurementScale/*/*"> |
|
426 |
<xsl:call-template name="nonNumericDomain"> |
|
427 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
428 |
</xsl:call-template> |
|
429 |
</xsl:for-each> |
|
430 |
</xsl:if> |
|
431 |
</xsl:for-each> |
|
432 |
</xsl:for-each> |
|
433 |
</xsl:if> |
|
434 |
</xsl:for-each> |
|
435 |
</xsl:if> |
|
436 |
<xsl:if test="$entitytype='otherEntity'"> |
|
437 |
<xsl:for-each select="otherEntity"> |
|
438 |
<xsl:if test="position()=$entityindex"> |
|
439 |
<xsl:for-each select="attributeList"> |
|
440 |
<xsl:for-each select="attribute"> |
|
441 |
<xsl:if test="position()=$attributeindex"> |
|
442 |
<xsl:for-each select="measurementScale/*/*"> |
|
443 |
<xsl:call-template name="nonNumericDomain"> |
|
444 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
445 |
</xsl:call-template> |
|
446 |
</xsl:for-each> |
|
447 |
</xsl:if> |
|
448 |
</xsl:for-each> |
|
449 |
</xsl:for-each> |
|
450 |
</xsl:if> |
|
451 |
</xsl:for-each> |
|
452 |
</xsl:if> |
|
453 |
|
|
366 | 454 |
</td> |
367 | 455 |
</tr> |
368 | 456 |
</xsl:template> |
369 | 457 |
|
370 | 458 |
|
371 | 459 |
<!--************************Attribute Method************************--> |
460 |
<xsl:template name="datasetattributemethod"> |
|
461 |
|
|
462 |
</xsl:template> |
|
372 | 463 |
|
373 | 464 |
|
374 |
|
|
375 | 465 |
<!--************************Attribute Coverage************************--> |
466 |
<xsl:template name="datasetattributecoverage"> |
|
467 |
</xsl:template> |
|
376 | 468 |
|
377 |
|
|
378 | 469 |
<!--*************************Distribution Inline Data*****************--> |
379 | 470 |
<xsl:template name="datasetinlinedata"> |
380 | 471 |
<tr><td> |
381 |
<center>
|
|
472 |
<right>
|
|
382 | 473 |
<h3>Inline Data</h3> |
383 |
</center>
|
|
474 |
</right>
|
|
384 | 475 |
</td></tr> |
385 | 476 |
<tr> |
386 | 477 |
<td width="100%"> |
... | ... | |
477 | 568 |
Citation part |
478 | 569 |
********************************************************--> |
479 | 570 |
<xsl:template name="emlcitation"> |
480 |
<center> |
|
481 |
<h3>Citation Description</h3> |
|
482 |
</center> |
|
571 |
|
|
483 | 572 |
<table class="tabledefault" width="100%"> |
484 | 573 |
<tr> |
485 |
<td width="100%"> |
|
486 |
<xsl:call-template name="identifier"> |
|
574 |
<td width="100%" colspan="2"> |
|
575 |
<right> |
|
576 |
<h3>Citation Description</h3> |
|
577 |
</right> |
|
578 |
</td> |
|
579 |
</tr> |
|
580 |
<xsl:call-template name="identifier"> |
|
487 | 581 |
<xsl:with-param name="packageID" select="../@packageId"/> |
488 | 582 |
<xsl:with-param name="system" select="../@system"/> |
489 |
</xsl:call-template> |
|
490 |
</td> |
|
491 |
</tr> |
|
583 |
</xsl:call-template> |
|
492 | 584 |
<tr> |
493 |
<td width="100%"> |
|
585 |
<td width="100%" colspan="2">
|
|
494 | 586 |
<xsl:call-template name="citation"> |
495 | 587 |
<xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/> |
496 | 588 |
<xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/> |
... | ... | |
507 | 599 |
********************************************************--> |
508 | 600 |
|
509 | 601 |
<xsl:template name="emlsoftware"> |
510 |
<center> |
|
511 |
<h3>Software Description</h3> |
|
512 |
</center> |
|
513 | 602 |
<table class="tabledefault" width="100%"> |
514 |
<tr><td width="100%"> |
|
515 |
<xsl:call-template name="identifier"> |
|
603 |
<tr> |
|
604 |
<td width="100%" colspan="2"> |
|
605 |
<right> |
|
606 |
<h3>Software Description</h3> |
|
607 |
</right> |
|
608 |
</td> |
|
609 |
</tr> |
|
610 |
<xsl:call-template name="identifier"> |
|
516 | 611 |
<xsl:with-param name="packageID" select="../@packageId"/> |
517 | 612 |
<xsl:with-param name="system" select="../@system"/> |
518 |
</xsl:call-template> |
|
519 |
</td></tr> |
|
613 |
</xsl:call-template> |
|
520 | 614 |
<tr> |
521 |
<td width="100%"> |
|
615 |
<td width="100%" colspan="2">
|
|
522 | 616 |
<xsl:call-template name="software"> |
523 | 617 |
<xsl:with-param name="softwarefirstColStyle" select="$firstColStyle"/> |
524 | 618 |
<xsl:with-param name="softwaresubHeaderStyle" select="$subHeaderStyle"/> |
... | ... | |
534 | 628 |
********************************************************--> |
535 | 629 |
|
536 | 630 |
<xsl:template name="emlprotocol"> |
537 |
<center> |
|
538 |
<h3>Protocol Description</h3> |
|
539 |
</center> |
|
540 |
<table class="tabledefault" width="100%"> |
|
541 |
<tr><td width="100%"> |
|
542 |
<xsl:call-template name="identifier"> |
|
631 |
<table class="tabledefault" width="100%"> |
|
632 |
<tr> |
|
633 |
<td width="100%" colspan="2"> |
|
634 |
<right> |
|
635 |
<h3>Protocal Description</h3> |
|
636 |
</right> |
|
637 |
</td> |
|
638 |
</tr> |
|
639 |
<xsl:call-template name="identifier"> |
|
543 | 640 |
<xsl:with-param name="packageID" select="../@packageId"/> |
544 | 641 |
<xsl:with-param name="system" select="../@system"/> |
545 |
</xsl:call-template> |
|
546 |
</td></tr> |
|
642 |
</xsl:call-template> |
|
547 | 643 |
<tr> |
548 |
<td width="100%"> |
|
644 |
<td width="100%" colspan="2">
|
|
549 | 645 |
<xsl:call-template name="protocol"> |
550 | 646 |
<xsl:with-param name="protocolfirstColStyle" select="$firstColStyle"/> |
551 | 647 |
<xsl:with-param name="protocolsubHeaderStyle" select="$subHeaderStyle"/> |
Also available in: Unified diff
Revise some templates.