Revision 1683
Added by Jing Tao over 21 years ago
lib/style/eml2/eml-2.0.0.xsl | ||
---|---|---|
161 | 161 |
<xsl:if test="$displaymodule='attribute'"> |
162 | 162 |
<xsl:call-template name="attributepart"/> |
163 | 163 |
</xsl:if> |
164 |
</table> |
|
164 |
<xsl:if test="$displaymodule='attributedomain'"> |
|
165 |
<xsl:call-template name="datasetattributedomain"/> |
|
166 |
</xsl:if> |
|
167 |
<xsl:if test="$displaymodule='inlinedata'"> |
|
168 |
<xsl:call-template name="datasetinlinedata"/> |
|
169 |
</xsl:if> |
|
170 |
</table> |
|
165 | 171 |
</xsl:template> |
166 | 172 |
|
167 | 173 |
<!--*************** Data set part *************--> |
... | ... | |
314 | 320 |
</xsl:template> |
315 | 321 |
|
316 | 322 |
<!--************************Attribute Domain************************--> |
323 |
<xsl:template name="datasetattributedomain"> |
|
324 |
<tr><td> |
|
325 |
<center> |
|
326 |
<h3>Attributes Domain</h3> |
|
327 |
</center> |
|
328 |
</td></tr> |
|
329 |
<tr> |
|
330 |
<td width="100%"> |
|
331 |
<!-- find the subtree to process --> |
|
332 |
<xsl:if test="$entitytype='dataTable'"> |
|
333 |
<xsl:for-each select="dataTable"> |
|
334 |
<xsl:if test="position()=$entityindex"> |
|
335 |
<xsl:for-each select="attributeList"> |
|
336 |
<xsl:for-each select="attribute"> |
|
337 |
<xsl:if test="position()=$attributeindex"> |
|
338 |
<xsl:for-each select="measurementScale/*"> |
|
339 |
<xsl:call-template name="nonNumericDomain"> |
|
340 |
<xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/> |
|
341 |
</xsl:call-template> |
|
342 |
</xsl:for-each> |
|
343 |
</xsl:if> |
|
344 |
</xsl:for-each> |
|
345 |
</xsl:for-each> |
|
346 |
</xsl:if> |
|
347 |
</xsl:for-each> |
|
348 |
</xsl:if> |
|
349 |
</td> |
|
350 |
</tr> |
|
351 |
</xsl:template> |
|
317 | 352 |
|
318 | 353 |
|
319 |
|
|
320 | 354 |
<!--************************Attribute Method************************--> |
321 | 355 |
|
322 | 356 |
|
... | ... | |
325 | 359 |
|
326 | 360 |
|
327 | 361 |
<!--*************************Distribution Inline Data*****************--> |
362 |
<xsl:template name="datasetinlinedata"> |
|
363 |
<tr><td> |
|
364 |
<center> |
|
365 |
<h3>Inline Data</h3> |
|
366 |
</center> |
|
367 |
</td></tr> |
|
368 |
<tr> |
|
369 |
<td width="100%"> |
|
370 |
<xsl:if test="$distributionlevel='toplevel'"> |
|
371 |
<xsl:for-each select="distribution"> |
|
372 |
<xsl:if test="position=$distributionindex"> |
|
373 |
<xsl:choose> |
|
374 |
<xsl:when test="references!=''"> |
|
375 |
<xsl:variable name="ref_id1" select="references"/> |
|
376 |
<xsl:variable name="references1" select="$ids[@id=$ref_id1]" /> |
|
377 |
<xsl:for-each select="$references1"> |
|
378 |
<xsl:for-each select="inline"> |
|
379 |
<xsl:value-of select="."/> |
|
380 |
</xsl:for-each> |
|
381 |
</xsl:for-each> |
|
382 |
</xsl:when> |
|
383 |
<xsl:otherwise> |
|
384 |
<xsl:for-each select="inline"> |
|
385 |
<xsl:value-of select="."/> |
|
386 |
</xsl:for-each> |
|
387 |
</xsl:otherwise> |
|
388 |
</xsl:choose> |
|
389 |
</xsl:if> |
|
390 |
</xsl:for-each> |
|
391 |
</xsl:if> |
|
392 |
<xsl:if test="$distributionlevel='entitylevel'"> |
|
393 |
<xsl:if test="$entitytype='dataTable'"> |
|
394 |
<xsl:for-each select="dataTable"> |
|
395 |
<xsl:if test="position()=$entityindex"> |
|
396 |
<xsl:choose> |
|
397 |
<xsl:when test="references!=''"> |
|
398 |
<xsl:variable name="ref_id2" select="references"/> |
|
399 |
<xsl:variable name="references2" select="$ids[@id=$ref_id2]" /> |
|
400 |
<xsl:for-each select="$references2"> |
|
401 |
<xsl:call-template name="choosephysical"/> |
|
402 |
</xsl:for-each> |
|
403 |
</xsl:when> |
|
404 |
<xsl:otherwise> |
|
405 |
<xsl:call-template name="choosephysical"/> |
|
406 |
</xsl:otherwise> |
|
407 |
</xsl:choose> |
|
408 |
</xsl:if> |
|
409 |
</xsl:for-each> |
|
410 |
</xsl:if> |
|
411 |
</xsl:if> |
|
412 |
</td> |
|
413 |
</tr> |
|
414 |
</xsl:template> |
|
328 | 415 |
|
416 |
<xsl:template name="choosephysical"> |
|
417 |
<xsl:for-each select="physical"> |
|
418 |
<xsl:test if="position()=$physicalindex"> |
|
419 |
<xsl:choose> |
|
420 |
<xsl:when test="references!=''"> |
|
421 |
<xsl:variable name="ref_id" select="references"/> |
|
422 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
|
423 |
<xsl:for-each select="$references"> |
|
424 |
<xsl:call-template name="choosedistribution"/> |
|
425 |
</xsl:for-each> |
|
426 |
</xsl:when> |
|
427 |
<xsl:otherwise> |
|
428 |
<xsl:call-template name="choosedistribution"/> |
|
429 |
</xsl:otherwise> |
|
430 |
</xsl:choose> |
|
431 |
</xsl:test> |
|
432 |
</xsl:for-each> |
|
433 |
</xsl:template> |
|
329 | 434 |
|
435 |
<xsl:template name="choosedistribution"> |
|
436 |
<xsl:for-each select="distribution"> |
|
437 |
<xsl:test if="position()=$distributionindex"> |
|
438 |
<xsl:choose> |
|
439 |
<xsl:when test="references!=''"> |
|
440 |
<xsl:variable name="ref_id" select="references"/> |
|
441 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
|
442 |
<xsl:for-each select="$references"> |
|
443 |
<xsl:for-each select="inline"> |
|
444 |
<xsl:value-of select="."/> |
|
445 |
</xsl:for-each> |
|
446 |
</xsl:for-each> |
|
447 |
</xsl:when> |
|
448 |
<xsl:otherwise> |
|
449 |
<xsl:for-each select="inline"> |
|
450 |
<xsl:value-of select="."/> |
|
451 |
</xsl:for-each> |
|
452 |
</xsl:otherwise> |
|
453 |
</xsl:choose> |
|
454 |
</xsl:test> |
|
455 |
</xsl:for-each> |
|
456 |
</xsl:template> |
|
330 | 457 |
|
331 | 458 |
|
332 |
|
|
333 | 459 |
<!--******************************************************** |
334 | 460 |
Citation part |
335 | 461 |
********************************************************--> |
Also available in: Unified diff
Add new templates.