Project

General

Profile

« Previous | Next » 

Revision 1735

Added by Jing Tao over 21 years ago

Fixed some bugs in these style sheets.

View differences:

lib/style/eml2/eml-storedprocedure-2.0.0.xsl
201 201
          <xsl:with-param name="docid" select="$docid"/>
202 202
          <xsl:with-param name="entityindex" select="$entityindex"/>
203 203
          <xsl:with-param name="physicalindex" select="position()"/>
204
          <xsl:with-param name="disfirstColStyle" select="$storedprocedurefirstColStyle"/>
205
          <xsl:with-param name="dissubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
204
          <xsl:with-param name="storedprocedurefirstColStyle" select="$storedprocedurefirstColStyle"/>
205
          <xsl:with-param name="storedproceduresubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
206 206
       </xsl:call-template>
207 207
    </xsl:for-each>
208 208
  </xsl:template>
lib/style/eml2/eml-view-2.0.0.xsl
165 165
          <xsl:with-param name="docid" select="$docid"/>
166 166
          <xsl:with-param name="entityindex" select="$entityindex"/>
167 167
          <xsl:with-param name="physicalindex" select="position()"/>
168
          <xsl:with-param name="disfirstColStyle" select="$viewfirstColStyle"/>
169
          <xsl:with-param name="dissubHeaderStyle" select="$viewsubHeaderStyle"/>
168
          <xsl:with-param name="viewfirstColStyle" select="$viewfirstColStyle"/>
169
          <xsl:with-param name="viewsubHeaderStyle" select="$viewsubHeaderStyle"/>
170 170
       </xsl:call-template>
171 171
    </xsl:for-each>
172 172
  </xsl:template>
lib/style/eml2/eml-physical-2.0.0.xsl
250 250
        </tr>
251 251
  </xsl:template>
252 252
  
253
  <xsl:template match="numPhysicalLinePerRecord">
253
  <xsl:template match="numPhysicalLinesPerRecord">
254 254
        <xsl:param name="physicalfirstColStyle"/>
255 255
        <tr>
256 256
        <td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Number For One Record:</td>
......
401 401
      </tr>
402 402
    </xsl:for-each>
403 403
  </xsl:template>
404
  
405 404
  <xsl:template match="formatName">
406
        <xsl:param name="physicalfirstColStyle"/>
405
    <xsl:param name="physicalfirstColStyle"/>
406
    <xsl:if test="normalize-space(.)!=''">
407 407
        <tr>
408 408
        <td class="{$firstColStyle}" width="{$firstColWidth}">Format Name:</td>
409 409
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
410 410
        </tr>
411
    </xsl:if>
411 412
  </xsl:template>
412 413
  
413 414
  <xsl:template match="formatVersion">
......
421 422
  <xsl:template match="citation">
422 423
        <xsl:param name="physicalfirstColStyle"/>
423 424
        <tr>
424
        <td class="{$firstColStyle}" width="{$firstColWidth}">Citation:</td>
425
        <td class="{$secondColStyle}">
425
        <td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Citation: </td>
426
        <td width="{$secondColWidth}">
426 427
          <xsl:call-template name="citation">
427
            <xsl:with-param name="citationfirstColStyle" select="physicalfirstColStyle"/>
428
            <xsl:with-param name="citationfirstColStyle" select="$physicalfirstColStyle"/>
429
             <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
428 430
          </xsl:call-template>
429 431
        </td>
430 432
        </tr>
......
465 467
        <xsl:param name="physicalfirstColStyle"/>
466 468
        <tr>
467 469
        <td class="{$firstColStyle}" width="{$firstColWidth}">Multiple Bands:</td>
468
        <td class="{$secondColStyle}">
470
        <td width="{$secondColWidth}">
469 471
         <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
470 472
            <tr>
471 473
                <td class="{$firstColStyle}" width="{$firstColWidth}">Number of Spectral Bands:</td>
lib/style/eml2/eml-spatialraster-2.0.0.xsl
294 294
          <xsl:with-param name="docid" select="$docid"/>
295 295
          <xsl:with-param name="entityindex" select="$entityindex"/>
296 296
          <xsl:with-param name="physicalindex" select="position()"/>
297
          <xsl:with-param name="disfirstColStyle" select="$spatialrasterfirstColStyle"/>
298
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
297
          <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
298
          <xsl:with-param name="spatialrastersubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
299 299
       </xsl:call-template>
300 300
    </xsl:for-each>
301 301
  </xsl:template>
......
338 338
    </xsl:for-each>
339 339
    <xsl:for-each select="horizCoordSysDef/geogCoordSys">
340 340
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
341
            Definition of <xsl:text> </xsl:text><xsl:value-of select="./@name"/> <xsl:text> </xsl:text> (Geographic Coordinate System):
341
            Definition of <xsl:text> </xsl:text><xsl:value-of select="../@name"/> <xsl:text> </xsl:text> (Geographic Coordinate System):
342 342
            </td>
343
            <td width="{$secondColWidth}" class="{$secondColStyle}">
343
            <td width="{$secondColWidth}">
344 344
              <xsl:call-template name="geogCoordSysType">
345 345
                 <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
346 346
              </xsl:call-template>
......
350 350
    <xsl:for-each select="horizCoordSysDef/projCoordSys">
351 351
      <xsl:for-each select="geogCoordSys">
352 352
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
353
            Definition of<xsl:text> </xsl:text><xsl:value-of select="./@name"/><xsl:text> </xsl:text>(Geographic Coordinate System):
353
            Definition of<xsl:text> </xsl:text><xsl:value-of select="../../@name"/><xsl:text> </xsl:text>(Geographic Coordinate System):
354 354
            </td>
355 355
            <td width="{$secondColWidth}">
356 356
              <xsl:call-template name="geogCoordSysType">
lib/style/eml2/eml-otherentity-2.0.0.xsl
165 165
          <xsl:with-param name="docid" select="$docid"/>
166 166
          <xsl:with-param name="entityindex" select="$entityindex"/>
167 167
          <xsl:with-param name="physicalindex" select="position()"/>
168
          <xsl:with-param name="disfirstColStyle" select="$otherentityfirstColStyle"/>
169
          <xsl:with-param name="dissubHeaderStyle" select="$otherentitysubHeaderStyle"/>
168
          <xsl:with-param name="otherentityfirstColStyle" select="$otherentityfirstColStyle"/>
169
          <xsl:with-param name="otherentitysubHeaderStyle" select="$otherentitysubHeaderStyle"/>
170 170
       </xsl:call-template>
171 171
    </xsl:for-each>
172 172
  </xsl:template>
lib/style/eml2/eml-distribution-2.0.0.xsl
45 45
      <xsl:param name="entityindex"/>
46 46
      <xsl:param name="physicalindex"/>
47 47
      <xsl:param name="distributionindex"/>
48
      
49 48
      <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
50 49
       <xsl:choose>
51 50
         <xsl:when test="references!=''">
......
103 102
    <xsl:param name="disfirstColStyle"/>
104 103
    <xsl:param name="dissubHeaderStyle"/>
105 104
    <tr><td class="{$dissubHeaderStyle}" colspan="2">
106
        <xsl:text>Online Distribution information:</xsl:text>
105
        <xsl:text>Online Distribution Info:</xsl:text>
107 106
    </td></tr>
108 107
    <xsl:apply-templates select="url">
109 108
      <xsl:with-param name="disfirstColStyle" select="$disfirstColStyle" />
......
274 273
  <!-- *******************************  Offline data  ********************** -->
275 274
  <!-- ********************************************************************* -->
276 275
  
277
  <xsl:template name="offline">
276
  <xsl:template match="offline">
278 277
    <xsl:param name="disfirstColStyle"/>
279 278
    <xsl:param name="dissubHeaderStyle"/>
280 279
    <tr><td class="{$dissubHeaderStyle}" colspan="2">
281
        <xsl:text>Offline Distribution information:</xsl:text>
280
        <xsl:text>Offline Distribution Info:</xsl:text>
282 281
    </td></tr>
283 282
    <xsl:if test="(mediumName) and normalize-space(mediumName)!=''">
284 283
      <tr><td width="{$firstColWidth}" class="{$disfirstColStyle}"><xsl:text>Medium:</xsl:text></td>
......
311 310
  <!-- ********************************************************************* -->  
312 311
  
313 312
  
314
  <xsl:template name="inline">
313
  <xsl:template match="inline">
315 314
    <xsl:param name="disfirstColStyle"/>
316 315
    <xsl:param name="dissubHeaderStyle"/>
317 316
    <xsl:param name="docid"/>
lib/style/eml2/eml-spatialvector-2.0.0.xsl
207 207
          <xsl:with-param name="docid" select="$docid"/>
208 208
          <xsl:with-param name="entityindex" select="$entityindex"/>
209 209
          <xsl:with-param name="physicalindex" select="position()"/>
210
          <xsl:with-param name="disfirstColStyle" select="$spatialvectorfirstColStyle"/>
211
          <xsl:with-param name="dissubHeaderStyle" select="$spatialvectorsubHeaderStyle"/>
210
          <xsl:with-param name="spatialvectorfirstColStyle" select="$spatialvectorfirstColStyle"/>
211
          <xsl:with-param name="spatialvectorsubHeaderStyle" select="$spatialvectorsubHeaderStyle"/>
212 212
       </xsl:call-template>
213 213
    </xsl:for-each>
214 214
  </xsl:template>
lib/style/eml2/eml-literature-2.0.0.xsl
231 231
          <tr><td colspan="2" class="{$citationsubHeaderStyle}"><xsl:text>BOOK:</xsl:text></td></tr>
232 232
        </xsl:if>
233 233
        <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
234
            Publisher:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
235
            &#160;</td></tr>
236
        <xsl:for-each select="publisher">
237
         <tr><td colspan="2">
238
              <xsl:call-template name="party">
234
            Publisher:</td><td width="{$secondColWidth}">
235
           <xsl:for-each select="publisher">
236
             <xsl:call-template name="party">
239 237
                <xsl:with-param name="partyfirstColStyle" select="$citationfirstColStyle"/>
240 238
              </xsl:call-template>
241
         </td></tr>
242
        </xsl:for-each>
243
        
239
          </xsl:for-each>
240
        </td></tr>
244 241
        <xsl:if test="publicationPlace and normalize-space(publicationPlace)!=''">
245 242
           <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
246 243
            Publication Place:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
lib/style/eml2/eml-constraint-2.0.0.xsl
93 93
  <xsl:template name="primaryKey">
94 94
    <xsl:param name="constraintfirstColStyle"/>
95 95
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
96
          <xsl:text>Type:</xsl:text></td>
97
          <td width="{$secondColWidth}" class="{$secondColStyle}">
98
          Primary Key</td>
96
          Primary Key:</td>
97
          <td width="{$secondColWidth}">
98
            <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
99
                 <xsl:call-template name="constraintBaseGroup">
100
                    <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
101
                 </xsl:call-template> 
102
                 <xsl:for-each select="key/attributeReference">
103
                      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
104
                            <xsl:text>Key:</xsl:text></td>
105
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
106
                            <xsl:value-of select="."/></td>
107
                      </tr>
108
                 </xsl:for-each>
109
            </table>
110
          </td>
99 111
     </tr>
100
    <xsl:call-template name="constraintBaseGroup">
101
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
102
    </xsl:call-template> 
103
    <xsl:for-each select="key/attributeReference">
104
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
105
          <xsl:text>Key:</xsl:text></td>
106
          <td width="{$secondColWidth}" class="{$secondColStyle}">
107
          <xsl:value-of select="."/></td>
108
     </tr>
109
    </xsl:for-each>
112
   
110 113
  </xsl:template>
111 114
  
112 115
  <xsl:template name="uniqueKey">
113 116
    <xsl:param name="constraintfirstColStyle"/>
114 117
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
115
          <xsl:text>Type:</xsl:text></td>
116
          <td width="{$secondColWidth}" class="{$secondColStyle}">
117
          Unique Key</td>
118
          Unique Key:</td>
119
          <td width="{$secondColWidth}">
120
             <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
121
                  <xsl:call-template name="constraintBaseGroup">
122
                     <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
123
                  </xsl:call-template> 
124
                  <xsl:for-each select="key/attributeReference">
125
                     <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
126
                             <xsl:text>Key:</xsl:text></td>
127
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
128
                            <xsl:value-of select="."/></td>
129
                      </tr>
130
                  </xsl:for-each>
131
             </table>
132
          </td>
118 133
     </tr>
119
    <xsl:call-template name="constraintBaseGroup">
120
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
121
    </xsl:call-template> 
122
    <xsl:for-each select="key/attributeReference">
123
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
124
          <xsl:text>Key:</xsl:text></td>
125
          <td width="{$secondColWidth}" class="{$secondColStyle}">
126
          <xsl:value-of select="."/></td>
127
     </tr>
128
    </xsl:for-each>
129 134
  </xsl:template>
130 135
  
131 136
   <xsl:template name="checkConstraint">
132 137
    <xsl:param name="constraintfirstColStyle"/>
133 138
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
134
          <xsl:text>Type:</xsl:text></td>
135
          <td width="{$secondColWidth}" class="{$secondColStyle}">
136
          Checking Constraint</td>
139
          Checking Constraint: </td>
140
          <td width="{$secondColWidth}">
141
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
142
                    <xsl:call-template name="constraintBaseGroup">
143
                       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
144
                    </xsl:call-template> 
145
                    <xsl:for-each select="checkCondition">
146
                         <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
147
                                   <xsl:text>Check Condition:</xsl:text></td>
148
                             <td width="{$secondColWidth}" class="{$secondColStyle}">
149
                                   <xsl:value-of select="."/></td>
150
                         </tr>
151
                    </xsl:for-each>
152
              </table>
153
          </td>
137 154
     </tr>
138
    <xsl:call-template name="constraintBaseGroup">
139
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
140
    </xsl:call-template> 
141
    <xsl:for-each select="checkCondition">
142
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
143
          <xsl:text>Check Condition:</xsl:text></td>
144
          <td width="{$secondColWidth}" class="{$secondColStyle}">
145
          <xsl:value-of select="."/></td>
146
     </tr>
147
    </xsl:for-each>
148
  </xsl:template>
155
   </xsl:template>
149 156
  
150 157
  <xsl:template name="foreignKey">
151 158
     <xsl:param name="constraintfirstColStyle"/>
152 159
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
153
          <xsl:text>Type:</xsl:text></td>
154
          <td width="{$secondColWidth}" class="{$secondColStyle}">
155
          Foreign Key</td>
156
     </tr>
157
    <xsl:call-template name="constraintBaseGroup">
158
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
159
    </xsl:call-template> 
160
    <xsl:for-each select="key/attributeReference">
161
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
162
          <xsl:text>Key:</xsl:text></td>
163
          <td width="{$secondColWidth}" class="{$secondColStyle}">
164
          <xsl:value-of select="."/></td>
165
     </tr>
166
    </xsl:for-each>
167
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
168
          <xsl:text>Entity Reference:</xsl:text></td>
169
          <td width="{$secondColWidth}" class="{$secondColStyle}">
170
          <xsl:value-of select="entityReference"/></td>
171
    </tr>
172
    <xsl:if test="relationshipType and normalize-space(relationshipType)!=''">
173
      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
174
          <xsl:text>Relationship:</xsl:text></td>
175
          <td width="{$secondColWidth}" class="{$secondColStyle}">
176
          <xsl:value-of select="relationshipType"/></td>
177
      </tr>
178
    </xsl:if>
179
    <xsl:if test="cardinality and normalize-space(cardinality)!=''">
180
      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
181
          <xsl:text>Cardinality:</xsl:text></td>
160
          Foreign Key:</td>
182 161
          <td width="{$secondColWidth}">
183
          <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
184
              <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
185
                   <xsl:text>Parent:</xsl:text></td>
186
                   <td width="{$secondColWidth}" class="{$secondColStyle}">
187
                    <xsl:value-of select="cardinality/parentOccurences"/></td>
188
               </tr>
189
               <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
190
                   <xsl:text>Children</xsl:text></td>
191
                   <td width="{$secondColWidth}" class="{$secondColStyle}">
192
                    <xsl:value-of select="cardinality/childOccurences"/></td>
193
              </tr>
194
           </table>
162
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
163
                  <xsl:call-template name="constraintBaseGroup">
164
                        <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
165
                   </xsl:call-template> 
166
                   <xsl:for-each select="key/attributeReference">
167
                      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
168
                             <xsl:text>Key:</xsl:text></td>
169
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
170
                             <xsl:value-of select="."/></td>
171
                      </tr>
172
                  </xsl:for-each>
173
                  <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
174
                          <xsl:text>Entity Reference:</xsl:text></td>
175
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
176
                           <xsl:value-of select="entityReference"/></td>
177
                   </tr>
178
                   <xsl:if test="relationshipType and normalize-space(relationshipType)!=''">
179
                        <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
180
                                <xsl:text>Relationship:</xsl:text></td>
181
                             <td width="{$secondColWidth}" class="{$secondColStyle}">
182
                                 <xsl:value-of select="relationshipType"/></td>
183
                         </tr>
184
                    </xsl:if>
185
                    <xsl:if test="cardinality and normalize-space(cardinality)!=''">
186
                          <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
187
                                 <xsl:text>Cardinality:</xsl:text></td>
188
                              <td width="{$secondColWidth}">
189
                                  <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
190
                                        <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
191
                                                <xsl:text>Parent:</xsl:text></td>
192
                                             <td width="{$secondColWidth}" class="{$secondColStyle}">
193
                                                 <xsl:value-of select="cardinality/parentOccurences"/></td>
194
                                        </tr>
195
                                        <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
196
                                                <xsl:text>Children</xsl:text></td>
197
                                            <td width="{$secondColWidth}" class="{$secondColStyle}">
198
                                                 <xsl:value-of select="cardinality/childOccurences"/></td>
199
                                         </tr>
200
                                   </table>
201
                               </td>
202
                          </tr>
203
                   </xsl:if>
204
             </table>
195 205
          </td>
196
      </tr>
197
    </xsl:if>
206
     </tr>
207
    
198 208
  </xsl:template>
199 209
  
200 210
  <xsl:template name="joinCondition">
201 211
    <xsl:param name="constraintfirstColStyle"/>
202 212
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
203
          <xsl:text>Type:</xsl:text></td>
204
          <td width="{$secondColWidth}" class="{$secondColStyle}">
205
          Join Condition</td>
213
          Join Condition:</td>
214
          <td width="{$secondColWidth}">
215
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
216
                   <xsl:call-template name="foreignKey">
217
                        <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
218
                   </xsl:call-template> 
219
                   <xsl:for-each select="referencedKey/attributeReference">
220
                      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
221
                             <xsl:text>Referenced Key:</xsl:text></td>
222
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
223
                              <xsl:value-of select="."/></td>
224
                       </tr>
225
                   </xsl:for-each>
226
             </table>
227
          </td>
206 228
    </tr>
207
    <xsl:call-template name="foreignKey">
208
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
209
    </xsl:call-template> 
210
    <xsl:for-each select="referencedKey/attributeReference">
211
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
212
          <xsl:text>Referenced Key:</xsl:text></td>
213
          <td width="{$secondColWidth}" class="{$secondColStyle}">
214
          <xsl:value-of select="."/></td>
215
     </tr>
216
    </xsl:for-each>
217 229
  </xsl:template>
218 230
  
219 231
  <xsl:template name="notNullConstraint">
220 232
    <xsl:param name="constraintfirstColStyle"/>
221 233
    <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
222
          <xsl:text>Type:</xsl:text></td>
223
          <td width="{$secondColWidth}" class="{$secondColStyle}">
224
          Not Null Constraint</td>
234
          Not Null Constraint:</td>
235
          <td width="{$secondColWidth}">
236
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
237
                   <xsl:call-template name="constraintBaseGroup">
238
                       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
239
                   </xsl:call-template> 
240
                   <xsl:for-each select="key/attributeReference">
241
                        <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
242
                                 <xsl:text>Key:</xsl:text></td>
243
                            <td width="{$secondColWidth}" class="{$secondColStyle}">
244
                                 <xsl:value-of select="."/></td>
245
                        </tr>
246
                   </xsl:for-each>
247
              </table>
248
          </td>
225 249
     </tr>
226
    <xsl:call-template name="constraintBaseGroup">
227
       <xsl:with-param name="constraintfirstColStyle" select="$constraintfirstColStyle"/>
228
    </xsl:call-template> 
229
    <xsl:for-each select="key/attributeReference">
230
       <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
231
          <xsl:text>Key:</xsl:text></td>
232
          <td width="{$secondColWidth}" class="{$secondColStyle}">
233
          <xsl:value-of select="."/></td>
234
     </tr>
235
    </xsl:for-each>
236
  </xsl:template>
250
   </xsl:template>
237 251
  
238 252
  <xsl:template name="constraintBaseGroup">
239 253
    <xsl:param name="constraintfirstColStyle"/>
240 254
     <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
241
          <xsl:text>Constraint Name:</xsl:text></td>
255
          <xsl:text>Name:</xsl:text></td>
242 256
          <td width="{$secondColWidth}" class="{$secondColStyle}">
243 257
         <xsl:value-of select="constraintName"/></td>
244 258
     </tr>
lib/style/eml2/eml-resource-2.0.0.xsl~
185 185
      <xsl:if test="normalize-space(.)!=''">
186 186
      <tr><td width="{$firstColWidth}" class="{$resfirstColStyle}">
187 187
        Title:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
188
        <xsl:value-of select="."/></td></tr>
188
        <b><xsl:value-of select="."/></b></td></tr>
189 189
      </xsl:if>
190 190
  </xsl:template>
191 191
  
......
302 302
        <xsl:text>Abstract:</xsl:text>
303 303
     </td></tr>
304 304
     <tr><td width="{$firstColWidth}" class="{$resfirstColStyle}">&#160;</td>
305
         <td width="{$secondColWidth}" class="{$secondColStyle}">  
305
         <td width="{$secondColWidth}">  
306 306
           <xsl:call-template name="text">
307 307
             <xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/>
308 308
           </xsl:call-template>
......
361 361
        <xsl:text>Additional Information:</xsl:text>
362 362
     </td></tr>
363 363
     <tr><td width="{$firstColWidth}" class="{$resfirstColStyle}">&#160;</td>
364
         <td width="{$secondColWidth}" class="{$secondColStyle}">  
364
         <td width="{$secondColWidth}">  
365 365
           <xsl:call-template name="text">
366 366
             <xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/>
367 367
           </xsl:call-template>
......
377 377
        <xsl:text>License and Usage Rights:</xsl:text>
378 378
     </td></tr>
379 379
     <tr><td width="{$firstColWidth}" class="{$resfirstColStyle}">&#160;</td>
380
         <td width="{$secondColWidth}" class="{$secondColStyle}">  
380
         <td width="{$secondColWidth}">  
381 381
           <xsl:call-template name="text">
382 382
             <xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/>
383 383
           </xsl:call-template>
lib/style/eml2/eml-resource-2.0.0.xsl
147 147
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
148 148
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
149 149
          <xsl:with-param name="index" select="position()"/>
150
          <xsl:with-param name="docid" select="$docid"/>
150 151
        </xsl:call-template>
151 152
      </xsl:for-each>
152 153
    </table>
......
389 390
     <xsl:param name="ressubHeaderStyle"/>
390 391
     <xsl:param name="resfirstColStyle"/>
391 392
     <xsl:param name="index"/>
393
     <xsl:param name="docid"/>
392 394
     <tr><td colspan="2" width="100%">    
393 395
        <xsl:call-template name="distribution">
394 396
          <xsl:with-param name="disfirstColStyle" select="$resfirstColStyle"/>
395 397
          <xsl:with-param name="dissubHeaderStyle" select="$ressubHeaderStyle"/>
396 398
          <xsl:with-param name="level">toplevel</xsl:with-param>
397 399
          <xsl:with-param name="distributionindex" select="$index"/>
400
          <xsl:with-param name="docid" select="$docid"/>
398 401
        </xsl:call-template>
399 402
     </td></tr>  
400 403
  </xsl:template>
lib/style/eml2/eml-2.0.0.xsl
209 209
             <xsl:call-template name="datasetattributemethod"/>
210 210
          </xsl:if>
211 211
          <xsl:if test="$displaymodule='inlinedata'">
212
             <xsl:call-template name="datasetinlinedata"/>
212
             <xsl:call-template name="emlinlinedata"/>
213 213
          </xsl:if>
214 214
      </table>
215 215
   </xsl:template>
......
657 657
   
658 658
   
659 659
   <!--*************************Distribution Inline Data display module*****************-->
660
   <xsl:template name="datasetinlinedata">
660
   <xsl:template name="emlinlinedata">
661 661
      <tr><td>
662 662
         <right>
663 663
            <h3>Inline Data</h3>
......
667 667
           <td width="100%">
668 668
            <xsl:if test="$distributionlevel='toplevel'">
669 669
               <xsl:for-each select="distribution">
670
                  <xsl:if test="position=$distributionindex">
670
                  <xsl:if test="position()=$distributionindex">
671 671
                     <xsl:choose>
672 672
                       <xsl:when test="references!=''">
673 673
                          <xsl:variable name="ref_id1" select="references"/>
......
706 706
                  </xsl:if>
707 707
                </xsl:for-each>
708 708
              </xsl:if>
709
              <xsl:if test="$entitytype='spatialRaster'">
710
                <xsl:for-each select="spatialRaster">
711
                  <xsl:if test="position()=$entityindex">
712
                      <xsl:choose>
713
                       <xsl:when test="references!=''">
714
                          <xsl:variable name="ref_id2" select="references"/>
715
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
716
                          <xsl:for-each select="$references2">
717
                             <xsl:call-template name="choosephysical"/>
718
                          </xsl:for-each>
719
                       </xsl:when>
720
                       <xsl:otherwise>
721
                           <xsl:call-template name="choosephysical"/>
722
                       </xsl:otherwise>
723
                     </xsl:choose>
724
                  </xsl:if>
725
                </xsl:for-each>
726
              </xsl:if>
727
              <xsl:if test="$entitytype='spatialVector'">
728
                <xsl:for-each select="spatialVector">
729
                  <xsl:if test="position()=$entityindex">
730
                      <xsl:choose>
731
                       <xsl:when test="references!=''">
732
                          <xsl:variable name="ref_id2" select="references"/>
733
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
734
                          <xsl:for-each select="$references2">
735
                             <xsl:call-template name="choosephysical"/>
736
                          </xsl:for-each>
737
                       </xsl:when>
738
                       <xsl:otherwise>
739
                           <xsl:call-template name="choosephysical"/>
740
                       </xsl:otherwise>
741
                     </xsl:choose>
742
                  </xsl:if>
743
                </xsl:for-each>
744
              </xsl:if>
745
              <xsl:if test="$entitytype='storedProcedure'">
746
                <xsl:for-each select="storedProcedure">
747
                  <xsl:if test="position()=$entityindex">
748
                      <xsl:choose>
749
                       <xsl:when test="references!=''">
750
                          <xsl:variable name="ref_id2" select="references"/>
751
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
752
                          <xsl:for-each select="$references2">
753
                             <xsl:call-template name="choosephysical"/>
754
                          </xsl:for-each>
755
                       </xsl:when>
756
                       <xsl:otherwise>
757
                           <xsl:call-template name="choosephysical"/>
758
                       </xsl:otherwise>
759
                     </xsl:choose>
760
                  </xsl:if>
761
                </xsl:for-each>
762
              </xsl:if>
763
              <xsl:if test="$entitytype='view'">
764
                <xsl:for-each select="view">
765
                  <xsl:if test="position()=$entityindex">
766
                      <xsl:choose>
767
                       <xsl:when test="references!=''">
768
                          <xsl:variable name="ref_id2" select="references"/>
769
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
770
                          <xsl:for-each select="$references2">
771
                             <xsl:call-template name="choosephysical"/>
772
                          </xsl:for-each>
773
                       </xsl:when>
774
                       <xsl:otherwise>
775
                           <xsl:call-template name="choosephysical"/>
776
                       </xsl:otherwise>
777
                     </xsl:choose>
778
                  </xsl:if>
779
                </xsl:for-each>
780
              </xsl:if>
781
              <xsl:if test="$entitytype='otherEntity'">
782
                <xsl:for-each select="otherEntity">
783
                  <xsl:if test="position()=$entityindex">
784
                      <xsl:choose>
785
                       <xsl:when test="references!=''">
786
                          <xsl:variable name="ref_id2" select="references"/>
787
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
788
                          <xsl:for-each select="$references2">
789
                             <xsl:call-template name="choosephysical"/>
790
                          </xsl:for-each>
791
                       </xsl:when>
792
                       <xsl:otherwise>
793
                           <xsl:call-template name="choosephysical"/>
794
                       </xsl:otherwise>
795
                     </xsl:choose>
796
                  </xsl:if>
797
                </xsl:for-each>
798
              </xsl:if>
709 799
            </xsl:if>
710 800
          </td>
711 801
      </tr>  
......
758 848
                     Citation part
759 849
       ********************************************************-->
760 850
   <xsl:template name="emlcitation">
761
       
851
     <xsl:choose>
852
       <xsl:when test="$displaymodule='inlinedata'">
853
          <xsl:call-template name="emlinlinedata"/>
854
       </xsl:when>
855
       <xsl:otherwise>  
762 856
        <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
763 857
        <tr>
764 858
          <td width="100%" colspan="2">
......
779 873
           </xsl:call-template>
780 874
          </td>
781 875
        </tr>
782
     </table>
876
      </table>
877
     </xsl:otherwise>
878
    </xsl:choose>
783 879
   </xsl:template>
784 880
   
785 881
   
......
789 885
       ********************************************************-->
790 886
   
791 887
   <xsl:template name="emlsoftware">
792
     <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
793
        <tr>
794
          <td width="100%" colspan="2">
888
     <xsl:choose>
889
       <xsl:when test="$displaymodule='inlinedata'">
890
          <xsl:call-template name="emlinlinedata"/>
891
       </xsl:when>
892
       <xsl:otherwise>
893
          <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
894
          <tr>
895
            <td width="100%" colspan="2">
795 896
             <right>
796 897
               <h3>Software Description</h3>
797 898
             </right>
798
          </td>
799
        </tr>
800
        <xsl:call-template name="identifier">
899
           </td>
900
          </tr>
901
          <xsl:call-template name="identifier">
801 902
              <xsl:with-param name="packageID" select="../@packageId"/>
802 903
              <xsl:with-param name="system" select="../@system"/>
803
        </xsl:call-template>
804
         <tr>
805
          <td width="100%" colspan="2">
904
          </xsl:call-template>
905
          <tr>
906
           <td width="100%" colspan="2">
806 907
            <xsl:call-template name="software">
807 908
               <xsl:with-param name="softwarefirstColStyle" select="$firstColStyle"/>
808 909
               <xsl:with-param name="softwaresubHeaderStyle" select="$subHeaderStyle"/>
809 910
           </xsl:call-template>
810
          </td>
811
        </tr>
812
     </table>
911
           </td>
912
         </tr>
913
       </table>
914
      </xsl:otherwise>
915
     </xsl:choose>
813 916
   </xsl:template>
814 917
   
815 918
     
......
818 921
       ********************************************************-->
819 922
   
820 923
   <xsl:template name="emlprotocol">
821
      <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
822
        <tr>
924
    <xsl:choose>
925
       <xsl:when test="$displaymodule='inlinedata'">
926
          <xsl:call-template name="emlinlinedata"/>
927
       </xsl:when>
928
       <xsl:otherwise>
929
        <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
930
         <tr>
823 931
          <td width="100%" colspan="2">
824 932
             <right>
825 933
               <h3>Protocal Description</h3>
826 934
             </right>
827 935
          </td>
828
        </tr>
829
        <xsl:call-template name="identifier">
936
         </tr>
937
         <xsl:call-template name="identifier">
830 938
              <xsl:with-param name="packageID" select="../@packageId"/>
831 939
              <xsl:with-param name="system" select="../@system"/>
832
        </xsl:call-template>
833
       <tr>
834
       <td width="100%" colspan="2">
940
         </xsl:call-template>
941
         <tr>
942
          <td width="100%" colspan="2">
835 943
            <xsl:call-template name="protocol">
836 944
               <xsl:with-param name="protocolfirstColStyle" select="$firstColStyle"/>
837 945
               <xsl:with-param name="protocolsubHeaderStyle" select="$subHeaderStyle"/>
838 946
           </xsl:call-template>
839 947
          </td>
840
        </tr>
841
     </table>
948
         </tr>
949
       </table>
950
      </xsl:otherwise>
951
    </xsl:choose>
842 952
   </xsl:template>
843 953
   
844 954
      <!--********************************************************

Also available in: Unified diff