Project

General

Profile

« Previous | Next » 

Revision 1691

Added by Jing Tao over 21 years ago

Revise the tempaltes.

View differences:

lib/style/eml2/eml-project-2.0.0.xsl
115 115
              <xsl:with-param name="partyfirstColStyle" select="$projectfirstColStyle"/>
116 116
         </xsl:call-template>
117 117
       </td></tr>
118
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">&#160;</td>
119
       <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td></tr>
120
    </xsl:for-each>
118
       <xsl:for-each select="role">
119
          <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
120
              Role:
121
              </td>
122
              <td width="{$secondColWidth}" class="{$secondColStyle}" >
123
                <xsl:value-of select="."/>
124
             </td>
125
          </tr>
126
       </xsl:for-each>
127
     </xsl:for-each>
121 128
  </xsl:template>
122 129
  
123 130
  
124
  
125 131
   <xsl:template name="projectabstract">
126 132
     <xsl:param name="projectfirstColStyle"/>
127 133
     <xsl:for-each select="abstract">
......
129 135
          Abstract:
130 136
          </td>
131 137
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
132
              &#160;
138
             <xsl:call-template name="text">
139
                <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
140
             </xsl:call-template>
133 141
         </td>
134 142
       </tr>
135
       <tr><td colspan="2">
136
         <xsl:call-template name="text">
137
              <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
138
         </xsl:call-template>
139
       </td></tr>
140
    </xsl:for-each>
143
     </xsl:for-each>
141 144
  </xsl:template>
142 145
  
143 146
  <xsl:template name="projectfunding">
......
147 150
          Funding:
148 151
          </td>
149 152
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
150
              &#160;
153
              <xsl:call-template name="text">
154
                 <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
155
              </xsl:call-template>
151 156
         </td>
152 157
       </tr>
153
       <tr><td colspan="2">
154
         <xsl:call-template name="text">
155
              <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
156
         </xsl:call-template>
157
       </td></tr>
158 158
    </xsl:for-each>
159 159
  </xsl:template>
160 160
  
......
164 164
     <xsl:param name="projectfirstColStyle"/>
165 165
     <xsl:for-each select="studyAreaDescription">
166 166
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
167
          Study Area:
167
           <xsl:text>Study Area:</xsl:text>
168 168
          </td>
169
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
170
              &#160;
169
          <td width="{$secondColWidth}" class="{$secondColStyle}">
170
              <table class="tabledefault" width="100%">
171
                  <xsl:for-each select="descriptor">
172
                      <xsl:for-each select="descriptorValue">
173
                      <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
174
                            <xsl:value-of select="../@name"/>
175
                          </td>
176
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
177
                              <xsl:value-of select="descriptorValue"/><xsl:value-of select="./@name_or_id"/>
178
                          </td>
179
                      </tr>
180
                      </xsl:for-each>
181
                      <xsl:for-each select="citation">
182
                        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
183
                              Citation:
184
                            </td>
185
                            <td width="{$secondColWidth}" class="{$secondColStyle}">
186
                             <xsl:call-template name="citation"> 
187
                                  <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>
188
                             </xsl:call-template>
189
                           </td>
190
                       </tr>
191
                    </xsl:for-each>
192
               </xsl:for-each>
193
            </table>
171 194
         </td>
172 195
       </tr>
173
       <xsl:for-each select="descriptor">
174
          <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
175
           <xsl:value-of select="./@name"/>
176
          </td>
177
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
178
             <xsl:value-of select="descriptorValue"/><xsl:value-of select="descriptorValue/@name_or_id"/>
179
         </td>
180
        </tr>
181
        <xsl:if test="citation">
182
          <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
183
          &#160;
184
          </td>
185
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
186
             <table width="100%">
187
                <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
188
                    citation:
189
                     </td>
190
                     <td width="{$secondColWidth}" class="{$secondColStyle}" >
191
                        <xsl:call-template name="citation">
192
                        </xsl:call-template>
193
                    </td>
194
                </tr>
195
             </table>
196
         </td>
197
        </tr>
198
        </xsl:if>
199
       </xsl:for-each>
200
       
196
     
201 197
       <xsl:for-each select="citation">
202 198
         <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
203
          &#160;
199
          Study Area Citation:
204 200
          </td>
205
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
206
             <table width="100%">
207
                <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
208
                    citation:
209
                     </td>
210
                     <td width="{$secondColWidth}" class="{$secondColStyle}" >
211
                        <xsl:call-template name="citation">
212
                        </xsl:call-template>
213
                    </td>
214
                </tr>
215
             </table>
216
         </td>
201
          <td width="{$secondColWidth}" class="{$secondColStyle}">
202
              <xsl:call-template name="citation">
203
                   <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>             
204
               </xsl:call-template>
205
          </td>
217 206
        </tr>
218 207
      </xsl:for-each>
219 208
       
220 209
       <xsl:for-each select="coverage">
221 210
        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
222
          &#160;
211
          Study Area Coverage:
223 212
          </td>
224 213
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
225 214
             <xsl:call-template name="coverage"/>
226 215
          </td>
227 216
        </tr>
228
      </xsl:for-each>
229
       
217
      </xsl:for-each>  
230 218
    </xsl:for-each>
231 219
   </xsl:template>
232 220
  
......
265 253
          Related Project:
266 254
          </td>
267 255
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
268
             &#160;
256
            <xsl:call-template name="project">
257
              <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
258
            </xsl:call-template>
269 259
         </td>
270 260
       </tr>
271
       <tr><td colspan="2">
272
           <xsl:call-template name="project">
273
             <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
274
           </xsl:call-template>
275
           </td>
276
       </tr>
277 261
    </xsl:for-each>
278 262
  </xsl:template>
279 263
 

Also available in: Unified diff