Project

General

Profile

« Previous | Next » 

Revision 1663

Added by Jing Tao about 21 years ago

Revised the module.

View differences:

lib/style/eml2/eml-software-2.0.0.xsl
30 30
  * suitable for rendering with modern web browsers.
31 31
-->
32 32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33
<xsl:import href="eml-settings-2.0.0beta6-@name@.xsl" />
34
<xsl:import href="eml-resource-2.0.0beta6-@name@.xsl"/>
35 33

  
34

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

  
38
  <xsl:template match="/">
39
    <html>
40
      <head>
41
        <link rel="stylesheet" type="text/css"
42
              href="{$stylePath}/{$qformat}.css" />
43
      </head>
44
      <body>
45
        <center>
46
          <h1>Software Description</h1>
47
          <h3>Ecological Metadata Language</h3>
48
        </center>
49
        <table class="tabledefault" width="100%"><!-- width needed for NN4 - doesn't recognize width in css -->
50

  
51
          <!--xsl:apply-templates select="software/identifier" mode="resource"/>
52
          <xsl:apply-templates select="software/pubDate" mode="resource"/>
53
          <xsl:apply-templates select="software/pubPlace" mode="resource"/>
54
          <xsl:apply-templates select="software/series" mode="resource"/-->
55

  
56
          <xsl:apply-templates select="software/*" mode="resource"/>
57
          <xsl:apply-templates select="software"/>
58
          </table>
59
      </body>
60
    </html>
37
  <xsl:template name="software">
38
    <xsl:param name="softwarefirstColStyle"/>
39
    <xsl:param name="softwaresubHeaderStyle"/>
40
    <table class="tabledefault" width="100%">
41
        <xsl:choose>
42
         <xsl:when test="references!=''">
43
          <xsl:variable name="ref_id" select="references"/>
44
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
45
          <xsl:for-each select="$references">
46
            <xsl:call-template name="softwareCommon">
47
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
48
              <xsl:with-param name="softsubHeaderStyle" select="$softwaresubHeaderStyle"/>
49
            </xsl:call-template>
50
          </xsl:for-each>
51
        </xsl:when>
52
        <xsl:otherwise>
53
            <xsl:call-template name="softwareCommon">
54
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
55
              <xsl:with-param name="softsubHeaderStyle" select="$softwaresubHeaderStyle"/>
56
            </xsl:call-template>
57
        </xsl:otherwise>
58
      </xsl:choose>
59
    </table>
61 60
  </xsl:template>
62 61

  
63
    <xsl:template match="software">
64
        <tr><td class="{$subHeaderStyle}" colspan="2">
62
  <xsl:template name="softwarecommon">
63
        <xsl:param name="softwarefirstColStyle"/>
64
        <xsl:param name="softwaresubHeaderStyle"/>
65
        <tr><td class="{$softwaresubHeaderStyle}" colspan="2">
65 66
        <xsl:text>Software:</xsl:text></td></tr>
66
        <xsl:apply-templates select="./versionNumber"/>
67
        <xsl:apply-templates select="./sourceModule"/>
68
        <xsl:apply-templates select="./binaryFile"/>
69
        <xsl:apply-templates select="./location"/>
70
        <xsl:apply-templates select="./programmingLanguage"/>
71
    </xsl:template>
67
        <xsl:call-templates name="resource">
68
           <xsl:with-param name="resfirstColStyle" select="$softwarefirstColStyle"/>
69
           <xsl:with-param name="ressubHeaderStyle" select="$softwaresubHeaderStyle"/>
70
           <xsl:with-param name="creator">Author(s):</xsl:with-param>>
71
        </xsl:call-templates>
72
        <xsl:call-templates name="implementation">
73
           <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
74
           <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
75
        </xsl:call-templates>
76
         <xsl:for-each select="dependency">
77
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
78
                Dependency
79
                </td>
80
                <td width="{$secondColWidth}" class="{$secondColStyle}">
81
                 &#160;
82
                </td>
83
           </tr>
84
           <xsl:call-template name="dependency">
85
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
86
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
87
           </xsl:call-template>
88
        </xsl:for-each>
89
        <xsl:call-template name="licenseURL">
90
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
91
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
92
        </xsl:call-template>
93
        <xsl:call-template name="license">
94
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
95
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
96
        </xsl:call-template>
97
        <xsl:call-template name="version">
98
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
99
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
100
        </xsl:call-template>
101
        <xsl:call-template name="softwareAccess">
102
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
103
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
104
        </xsl:call-template>
105
        <xsl:call-template name="softwareProject">
106
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
107
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
108
        </xsl:call-template>
109
  </xsl:template>
110
  
111
  <xsl:template name="implementation">
112
     <xsl:param name="softwarefirstColStyle"/>
113
     <xsl:param name="softwaresubHeaderStyle"/>
114
     <xsl:for-each select="implementation">
115
        <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
116
             <b>Implementation Info</b>
117
            </td>
118
            <td width="{$secondColWidth}" class="{$secondColStyle}">
119
            &#160;
120
            </td>
121
        </tr>
122
        <xsl:for-each select="distribution">
123
           <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
124
             <b>Distribution</b>
125
            </td>
126
            <td width="{$secondColWidth}" class="{$secondColStyle}">
127
               <xsl:call-template name="distribution">
128
                 <xsl:with-param name="disfirstColStyle" select="$softwarefirstColStyle"/>
129
                 <xsl:with-param name="dissubHeaderStyle" select="$softwaresubHeaderStyle"/>
130
               </xsl:call-template>
131
            </td>
132
        </tr>
133
        </xsl:for-each>
134
        <xsl:for-each select="size">
135
           <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
136
             Size
137
            </td>
138
            <td width="{$secondColWidth}" class="{$secondColStyle}">
139
             <xsl:value-of select="."/>
140
            </td>
141
        </tr>
142
        </xsl:for-each>
143
        <xsl:for-each select="language">
144
           <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
145
                Language
146
                </td>
147
                <td width="{$secondColWidth}" class="{$secondColStyle}">
148
                  <xsl:value-of select="LanguageValue"/>
149
                </td>
150
           </tr>
151
           <xsl:if test="LanguageCodeStandard">
152
             <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
153
                Language Code Standard
154
                </td>
155
                <td width="{$secondColWidth}" class="{$secondColStyle}">
156
                  <xsl:value-of select="LanguageValue"/>
157
                </td>
158
             </tr>
159
           </xsl:if>
160
        </xsl:for-each>
161
        <xsl:for-each select="operatingSystem">
162
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
163
                Operating System
164
                </td>
165
                <td width="{$secondColWidth}" class="{$secondColStyle}">
166
                  <xsl:value-of select="."/>
167
                </td>
168
           </tr>
169
        </xsl:for-each>
170
        <xsl:for-each select="machineProcessor">
171
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
172
                Operating System
173
                </td>
174
                <td width="{$secondColWidth}" class="{$secondColStyle}">
175
                  <xsl:value-of select="."/>
176
                </td>
177
           </tr>
178
        </xsl:for-each>
179
        <xsl:for-each select="virtualMachine">
180
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
181
                Virtual Machine
182
                </td>
183
                <td width="{$secondColWidth}" class="{$secondColStyle}">
184
                  <xsl:value-of select="."/>
185
                </td>
186
           </tr>
187
        </xsl:for-each>
188
         <xsl:for-each select="diskUsage">
189
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
190
                diskUsage
191
                </td>
192
                <td width="{$secondColWidth}" class="{$secondColStyle}">
193
                  <xsl:value-of select="."/>
194
                </td>
195
           </tr>
196
        </xsl:for-each>
197
        <xsl:for-each select="runtimeMemoryUsage">
198
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
199
                Run Time Memory Usage
200
                </td>
201
                <td width="{$secondColWidth}" class="{$secondColStyle}">
202
                  <xsl:value-of select="."/>
203
                </td>
204
           </tr>
205
        </xsl:for-each>
206
        <xsl:for-each select="programmingLanguage">
207
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
208
                Programming Language
209
                </td>
210
                <td width="{$secondColWidth}" class="{$secondColStyle}">
211
                  <xsl:value-of select="."/>
212
                </td>
213
           </tr>
214
        </xsl:for-each>
215
        <xsl:for-each select="checksum">
216
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
217
                Check Sum
218
                </td>
219
                <td width="{$secondColWidth}" class="{$secondColStyle}">
220
                  <xsl:value-of select="."/>
221
                </td>
222
           </tr>
223
        </xsl:for-each>
224
        <xsl:for-each select="dependency">
225
          <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
226
                Dependency
227
                </td>
228
                <td width="{$secondColWidth}" class="{$secondColStyle}">
229
                 &#160;
230
                </td>
231
           </tr>
232
           <xsl:call-template name="dependency">
233
              <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
234
              <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
235
           </xsl:call-template>
236
        </xsl:for-each>
237
     </xsl:for-each>
238
  </xsl:template>
239
  
240
  <xsl:template name="dependency">
241
    <xsl:param name="softwarefirstColStyle"/>
242
    <xsl:param name="softwaresubHeaderStyle"/>
243
    <xsl:for-each select="../dependency">
244
      <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
245
           <b><xsl:value-of select="action"/></b> <xsl:test> Depend on</xsl:test>
246
        </td>
247
        <td width="{$secondColWidth}">
248
            <xsl:for-each select="software">
249
               <xsl:call-template name="software">
250
                  <xsl:with-param name="softwarefirstColStyle" select="$softwarefirstColStyle"/>
251
                  <xsl:with-param name="softwaresubHeaderStyle" select="$softwaresubHeaderStyle"/>
252
               </xsl:call-template>
253
            </xsl:for-each>
254
        </td>
255
      </tr>
256
    </xsl:for-each>
257
  </xsl:template>
72 258

  
73
    <xsl:template match="versionNumber" mode="resource"/>
74
    <xsl:template match="versionNumber">
75
      <xsl:if test="normalize-space(../versionNumber)!=''">
76
       <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
77
        Version Number:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
78
        <xsl:value-of select="../versionNumber"/></td></tr>
79
      </xsl:if>
80
    </xsl:template>
81

  
82
    <xsl:template match="sourceModule" mode="resource"/>
83
    <xsl:template match="sourceModule">
84
      <xsl:if test="normalize-space(../sourceModule)!=''">
85
       <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
86
        Source Module:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
87
        <xsl:value-of select="../sourceModule"/></td></tr>
88
      </xsl:if>
89
    </xsl:template>
90

  
91
    <xsl:template match="binaryFile" mode="resource"/>
92
    <xsl:template match="binaryFile">
93
      <xsl:if test="normalize-space(../binaryFile)!=''">
94
       <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
95
        Binary File:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
96
        <xsl:value-of select="../binaryFile"/></td></tr>
97
      </xsl:if>
98
    </xsl:template>
99

  
100
    <xsl:template match="location" mode="resource"/>
101
    <xsl:template match="location">
102
      <xsl:if test="normalize-space(../location)!=''">
103
       <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
104
        Location:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
105
        <xsl:value-of select="../location"/></td></tr>
106
      </xsl:if>
107
    </xsl:template>
108

  
109
    <xsl:template match="programmingLanguage" mode="resource"/>
110
    <xsl:template match="programmingLanguage">
111
      <xsl:if test="normalize-space(../programmingLanguage)!=''">
112
       <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
113
        Programming Language:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
114
        <xsl:value-of select="../programmingLanguage"/></td></tr>
115
      </xsl:if>
116
    </xsl:template>
117

  
118
<!-- suppress these -->
119
  <xsl:template match="identifier"/>
120
  <xsl:template match="shortName"/>
121
  <xsl:template match="title"/>
122
  <xsl:template match="software" mode="resource"/>
123
  <xsl:template match="pubDate"/>
124
  <xsl:template match="pubPlace"/>
125
  <xsl:template match="series"/>
126

  
259
  <xsl:template name="version">
260
    <xsl:param name="softwarefirstColStyle"/>
261
    <xsl:for-each select="version">
262
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
263
        Version Number</td><td width="{$secondColWidth}" class="{$secondColStyle}">
264
        <xsl:value-of select="."/></td></tr>
265
    </xsl:for-each>
266
  </xsl:template>
267
  
268
  <xsl:template name="licenseURL">
269
    <xsl:param name="softwarefirstColStyle"/>
270
    <xsl:for-each select="licenseURL">
271
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
272
            License URL</td><td width="{$secondColWidth}" class="{$secondColStyle}">
273
        <xsl:value-of select="."/></td></tr>
274
    </xsl:for-each>
275
  </xsl:template>
276
  
277
  <xsl:template name="license">
278
    <xsl:param name="softwarefirstColStyle"/>
279
    <xsl:for-each select="license">
280
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
281
            License</td><td width="{$secondColWidth}" class="{$secondColStyle}">
282
        <xsl:value-of select="."/></td></tr>
283
    </xsl:for-each>
284
  </xsl:template>
285
  
286
  <xsl:template name="softwareAccess">
287
    <xsl:param name="softwarefirstColStyle"/>
288
    <xsl:param name="softwaresubHeaderStyle"/>
289
    <xsl:for-each select="access">
290
      <tr><td colspan="2">
291
         <xsl:call-template name="access">
292
           <xsl:with-param name="accessfirstColStyle" select="softwarefirstColStyle"/>
293
           <xsl:with-param name="accesssubHeaderStyle" select="softwaresubHeaderStyle"/>
294
         </xsl:call-template>
295
         </td>
296
       </tr>
297
    </xsl:for-each>
298
  </xsl:template>
299
  
300
  <xsl:template name="softwareProject">
301
    <xsl:param name="softwarefirstColStyle"/>
302
    <xsl:param name="softwaresubHeaderStyle"/>
303
    <xsl:for-each select="project">
304
      <tr><td class="{$softwaresubHeaderStyle}" colspan="2">
305
        <xsl:text>Project Info</xsl:text></td></tr>
306
      <tr><td colspan="2">
307
        <xsl:call-template name="project">
308
          <xsl:with-param name="projectfirstColStyle" select="softwarefirstColStyle"/>
309
          <xsl:with-param name="projectsubHeaderStyle" select="softwaresubHeaderStyle"/>
310
        </xsl:call-template>
311
        </td>
312
      </tr>
313
    </xsl:for-each>
314
  </xsl:template>
315
  
316
  
127 317
</xsl:stylesheet>
lib/style/eml2/eml-protocol-2.0.0.xsl
30 30
  * suitable for rendering with modern web browsers.
31 31
-->
32 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

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

  
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>
36
  
37

  
38
  <xsl:template name="protocol">
39
    <xsl:param name="protocolfirstColStyle"/>
40
    <xsl:param name="protocolsubHeaderStyle"/>
41
    <table class="tabledefault" width="100%">
42
        <xsl:choose>
43
         <xsl:when test="references!=''">
44
          <xsl:variable name="ref_id" select="references"/>
45
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
46
          <xsl:for-each select="$references">
47
            <xsl:call-template name="protocolCommon">
48
              <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
49
              <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
50
            </xsl:call-template>
51
          </xsl:for-each>
52
        </xsl:when>
53
        <xsl:otherwise>
54
           <xsl:call-template name="protocolCommon">
55
              <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
56
              <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
57
           </xsl:call-template>
58
        </xsl:otherwise>
59
      </xsl:choose>
60
    </table>
54 61
  </xsl:template>
55

  
56
  <xsl:template match="protocol">
57
        <xsl:for-each select="method">
58
          <xsl:apply-templates select="."/>
62
  
63
   <xsl:template name="protocolcommon">
64
        <xsl:param name="protocolfirstColStyle"/>
65
        <xsl:param name="protocolsubHeaderStyle"/>
66
        <xsl:call-templates name="resource">
67
           <xsl:with-param name="resfirstColStyle" select="$protocolfirstColStyle"/>
68
           <xsl:with-param name="ressubHeaderStyle" select="$protocolsubHeaderStyle"/>
69
           <xsl:with-param name="creator">Author(s):</xsl:with-param>>
70
        </xsl:call-templates>
71
        <xsl:for-each select="proceduralStep">
72
          <tr><td colspan="2" class="{$protocolsubHeaderStyle}">
73
              <b>Step</b><xsl:text> </xsl:text><xsl:value-of select="position()"/>
74
              </td>
75
          </tr>
76
          <xsl:call-template name="step">
77
              <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
78
              <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
79
          </xsl:call-template>
59 80
        </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>
81
        <xsl:call-template name="protocolAccess">
82
              <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
83
              <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
84
        </xsl:call-template>
66 85
  </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"/>
86
  
87
  <xsl:template name="step">
88
    <xsl:param name="protocolfirstColStyle"/>
89
    <xsl:param name="protocolsubHeaderStyle"/>
90
    <xsl:for-each select="description">
91
      <tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}">
92
          Description
93
          </td>
94
          <td width="{$secondColWidth}" class="{$secondColStyle}">
95
           &#160;
96
          </td>
97
      </tr>
98
      <tr><td colspan="2">
99
          <xsl:call-template name="text">
100
            <xsl:with-param name="textfirstColStyle" select="$protocolfirstColStyle"/>
101
          </xsl:call-template>
102
          </td>
103
      </tr>
104
    </xsl:for-each>
105
    <xsl:for-each select="citation">
106
      <tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}">
107
          Citation
108
          </td>
109
          <td width="{$secondColWidth}" class="{$secondColStyle}">
110
           &#160;
111
          </td>
112
      </tr>
113
      <tr><td colspan="2">
114
          <xsl:call-template name="citation">
115
            <xsl:with-param name="citationfirstColStyle" select="$protocolfirstColStyle"/>
116
            <xsl:with-param name="citationsubHeaderStyle" select="$protocolsubHeaderStyle"/>
117
          </xsl:call-template>
118
          </td>
119
      </tr>
120
    </xsl:for-each>
121
     <xsl:for-each select="protocol">
122
      <tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}">
123
          Protocol
124
          </td>
125
          <td width="{$secondColWidth}" class="{$secondColStyle}">
126
           &#160;
127
          </td>
128
      </tr>
129
      <tr><td colspan="2">
130
          <xsl:call-template name="protocol">
131
            <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
132
            <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
133
          </xsl:call-template>
134
          </td>
135
      </tr>
136
    </xsl:for-each>
137
    <xsl:for-each select="instrumentation">
138
        <tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}">
139
          Instrument(s)
140
          </td>
141
          <td width="{$secondColWidth}" class="{$secondColStyle}">
142
            <xsl:value-of select="."/>
143
          </td>
144
      </tr>
145
    </xsl:for-each>
146
    <xsl:for-each select="software">
147
     <tr><td colspan="2">
148
          <xsl:call-template name="software">
149
            <xsl:with-param name="softwarefirstColStyle" select="$protocolfirstColStyle"/>
150
            <xsl:with-param name="softwaresubHeaderStyle" select="$protocolsubHeaderStyle"/>
151
          </xsl:call-template>
152
          </td>
153
      </tr>
154
    </xsl:for-each>
155
    <xsl:for-each select="subStep">
156
      <tr><td width="{$firstColWidth}" class="{$protocolfirstColStyle}">
157
          Substep<xsl:text> </xsl:text><xsl:value-of select="position()"/>
158
          </td>
159
          <td width="{$secondColWidth}" class="{$secondColStyle}">
160
           &#160;
161
          </td>
162
      </tr>
163
      <xsl:call-template name="step">
164
          <xsl:with-param name="protocolfirstColStyle" select="$protocolfirstColStyle"/>
165
          <xsl:with-param name="protocolsubHeaderStyle" select="$protocolsubHeaderStyle"/>
166
      </xsl:call-template>
167
    </xsl:for-each>
73 168
  </xsl:template>
74 169

  
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"/>
170
  <xsl:template name="protocolAccess">
171
    <xsl:param name="protocolfirstColStyle"/>
172
    <xsl:param name="protocolsubHeaderStyle"/>
173
    <xsl:for-each select="access">
174
      <tr><td colspan="2">
175
         <xsl:call-template name="access">
176
           <xsl:with-param name="accessfirstColStyle" select="protocolfirstColStyle"/>
177
           <xsl:with-param name="accesssubHeaderStyle" select="protocolsubHeaderStyle"/>
178
         </xsl:call-template>
179
         </td>
180
       </tr>
181
    </xsl:for-each>
80 182
  </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 183
</xsl:stylesheet>

Also available in: Unified diff