Project

General

Profile

1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
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: tao $'
10
  *     '$Date: 2000-11-20 05:14:04 -0800 (Mon, 20 Nov 2000) $'
11
  * '$Revision: 553 $'
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
  <xsl:import href="eml-literature-2.0.0beta6-@name@.xsl"/>
34

    
35
  <xsl:output method="html" encoding="iso-8859-1"/>
36

    
37
  <xsl:template match="/">
38
    <html>
39
      <head>
40
        <link rel="stylesheet" type="text/css"
41
              href="{$stylePath}/{$qformat}.css" />
42
      </head>
43
      <body>
44
        <center>
45
          <h1>Protocol Description</h1>
46
          <h3>Ecological Metadata Language</h3><br />
47
        </center>
48
        <table class="tabledefault" width="100%"><!-- width needed for NN4 - doesn't recognize width in css -->
49
        <xsl:apply-templates select="eml-protocol/identifier" mode="resource"/>
50
        <xsl:apply-templates select="eml-protocol/protocol"/>
51
        </table>
52
      </body>
53
    </html>
54
  </xsl:template>
55

    
56
  <xsl:template match="protocol">
57
        <xsl:for-each select="method">
58
          <xsl:apply-templates select="."/>
59
        </xsl:for-each>
60
        <xsl:for-each select="processingStep">
61
          <xsl:apply-templates select="."/>
62
        </xsl:for-each>
63
        <xsl:for-each select="qualityControl">
64
          <xsl:apply-templates select="."/>
65
        </xsl:for-each>
66
  </xsl:template>
67

    
68

    
69
  <xsl:template match="method">
70
    <tr class="{$subHeaderStyle}"><td colspan="2">
71
      <xsl:text>Method:</xsl:text></td></tr>
72
      <xsl:call-template name="renderParagsCits"/>
73
  </xsl:template>
74

    
75

    
76
  <xsl:template match="processingStep">
77
    <tr class="{$subHeaderStyle}"><td colspan="2">
78
      <xsl:text>Processing Step:</xsl:text></td></tr>
79
      <xsl:call-template name="renderParagsCits"/>
80
  </xsl:template>
81

    
82
  <xsl:template match="qualityControl">
83
    <tr class="{$subHeaderStyle}"><td colspan="2">
84
      <xsl:text>Quality Control Mechanisms:</xsl:text></td></tr>
85
      <xsl:call-template name="renderParagsCits"/>
86
  </xsl:template>
87

    
88

    
89
  <xsl:template name="renderParagsCits">
90
      <xsl:for-each select="./paragraph">
91
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
92
        &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
93
        <xsl:value-of select="."/></td></tr>
94
      </xsl:for-each>
95

    
96
      <xsl:for-each select="./citation">
97
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
98
      Literature Citation</td><td width="{$secondColWidth}" class="{$secondColStyle}">
99
      <table width="100%">
100
        <xsl:apply-templates select="."/>
101
      </table></td></tr>
102
      </xsl:for-each>
103
  </xsl:template>
104

    
105
</xsl:stylesheet>
(18-18/26)