56 |
56 |
</td>
|
57 |
57 |
</tr>
|
58 |
58 |
|
59 |
|
<xsl:if test="$showAll='true'">
|
60 |
|
<xsl:for-each select="./*[local-name()='observation']">
|
|
59 |
<xsl:choose>
|
|
60 |
|
|
61 |
<xsl:when test="$showAll='true'">
|
|
62 |
|
|
63 |
<!-- render the full observations and measurements -->
|
|
64 |
<xsl:for-each select="./*[local-name()='observation']">
|
|
65 |
<tr>
|
|
66 |
<td>
|
|
67 |
<table class="subGroup subGroup_border onehundred_percent">
|
|
68 |
<tr valign="top">
|
|
69 |
<td>
|
|
70 |
<!-- observation entity -->
|
|
71 |
<xsl:call-template name="observation" />
|
|
72 |
</td>
|
|
73 |
</tr>
|
|
74 |
<tr>
|
|
75 |
<td>
|
|
76 |
<table class="onehundred_percent">
|
|
77 |
<tr>
|
|
78 |
<!-- measurement -->
|
|
79 |
<xsl:for-each select="./*[local-name()='measurement']">
|
|
80 |
<td>
|
|
81 |
<xsl:call-template name="measurement" />
|
|
82 |
</td>
|
|
83 |
</xsl:for-each>
|
|
84 |
</tr>
|
|
85 |
</table>
|
|
86 |
</td>
|
|
87 |
</tr>
|
|
88 |
</table>
|
|
89 |
</td>
|
|
90 |
</tr>
|
|
91 |
</xsl:for-each><!-- end observation -->
|
|
92 |
|
|
93 |
</xsl:when><!--end show all-->
|
|
94 |
<xsl:otherwise>
|
61 |
95 |
<tr>
|
62 |
|
<td class="text_plain">
|
63 |
|
<table class="subGroup subGroup_border onehundred_percent">
|
64 |
|
<tr valign="top">
|
65 |
|
<td>
|
66 |
|
<!-- observation entity -->
|
67 |
|
<xsl:call-template name="observation" />
|
68 |
|
</td>
|
69 |
|
</tr>
|
70 |
|
<tr>
|
71 |
|
<td>
|
72 |
|
<table class="onehundred_percent">
|
73 |
|
<tr>
|
74 |
|
<!-- measurement -->
|
75 |
|
<xsl:for-each select="./*[local-name()='measurement']">
|
76 |
|
<td>
|
77 |
|
<xsl:call-template name="measurement" />
|
78 |
|
</td>
|
79 |
|
</xsl:for-each>
|
80 |
|
</tr>
|
81 |
|
</table>
|
82 |
|
</td>
|
83 |
|
</tr>
|
84 |
|
</table>
|
85 |
|
</td>
|
86 |
|
</tr>
|
87 |
|
</xsl:for-each><!-- end observation -->
|
88 |
|
</xsl:if><!--end show all-->
|
|
96 |
<td>
|
|
97 |
<xsl:call-template name="modelSummary" />
|
|
98 |
</td>
|
|
99 |
</tr>
|
|
100 |
</xsl:otherwise>
|
|
101 |
</xsl:choose>
|
89 |
102 |
|
90 |
103 |
<tr class="searchresultsdivider">
|
91 |
104 |
<td></td>
|
... | ... | |
274 |
287 |
|
275 |
288 |
</xsl:template>
|
276 |
289 |
|
|
290 |
<xsl:template name="measurementSummary">
|
|
291 |
<!-- entity -->
|
|
292 |
<xsl:for-each select="../*[local-name()='entity']">
|
|
293 |
<span>
|
|
294 |
<xsl:attribute name="title">
|
|
295 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
|
296 |
<xsl:text>#</xsl:text>
|
|
297 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
298 |
</xsl:attribute>
|
|
299 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
300 |
</span>
|
|
301 |
(<xsl:value-of select="../@label"/>)
|
|
302 |
<xsl:if test="position() != last()">, </xsl:if>
|
|
303 |
</xsl:for-each>
|
|
304 |
<xsl:text> / </xsl:text>
|
|
305 |
<!-- measurement -->
|
|
306 |
<!--
|
|
307 |
<xsl:value-of select="./@label" />
|
|
308 |
-->
|
|
309 |
<!-- characteristic -->
|
|
310 |
<xsl:for-each select="./*[local-name()='characteristic']">
|
|
311 |
<span>
|
|
312 |
<xsl:attribute name="title">
|
|
313 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
|
314 |
<xsl:text>#</xsl:text>
|
|
315 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
316 |
</xsl:attribute>
|
|
317 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
318 |
</span>
|
|
319 |
<xsl:if test="position() != last()">, </xsl:if>
|
|
320 |
</xsl:for-each>
|
|
321 |
<xsl:text> / </xsl:text>
|
|
322 |
<!-- standard -->
|
|
323 |
<span>
|
|
324 |
<xsl:attribute name="title">
|
|
325 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
|
326 |
<xsl:text>#</xsl:text>
|
|
327 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
|
328 |
</xsl:attribute>
|
|
329 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
|
330 |
</span>
|
|
331 |
<xsl:text> / </xsl:text>
|
|
332 |
<!-- protocol -->
|
|
333 |
<span>
|
|
334 |
<xsl:attribute name="title">
|
|
335 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/>
|
|
336 |
<xsl:text>#</xsl:text>
|
|
337 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
|
338 |
</xsl:attribute>
|
|
339 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
|
340 |
</span>
|
|
341 |
</xsl:template>
|
|
342 |
|
|
343 |
<xsl:template name="modelSummary">
|
|
344 |
<table class="subGroup subGroup_border">
|
|
345 |
<tr>
|
|
346 |
<th colspan="2">
|
|
347 |
Attribute Summary
|
|
348 |
</th>
|
|
349 |
</tr>
|
|
350 |
|
|
351 |
<!-- reference to the annotation parent -->
|
|
352 |
<xsl:variable name="thisAnnotationId">
|
|
353 |
<xsl:value-of select="./@id"/>
|
|
354 |
</xsl:variable>
|
|
355 |
|
|
356 |
<xsl:for-each select="./*[local-name()='map']">
|
|
357 |
<tr>
|
|
358 |
<!-- look up the attribute -->
|
|
359 |
<xsl:variable name="attributeLabel">
|
|
360 |
<xsl:value-of select="./@attribute"/>
|
|
361 |
</xsl:variable>
|
|
362 |
<td class="rowodd">
|
|
363 |
<xsl:value-of select="$attributeLabel"/>
|
|
364 |
</td>
|
|
365 |
<td>
|
|
366 |
<!-- look up the attribute mapping for the given attribute -->
|
|
367 |
<xsl:for-each select="key('attributes', concat($thisAnnotationId, $attributeLabel))">
|
|
368 |
<table>
|
|
369 |
<tr>
|
|
370 |
<!-- get the <measurement> node using this label -->
|
|
371 |
<xsl:for-each select="key('measurements', concat($thisAnnotationId, ./@measurement))">
|
|
372 |
<td>
|
|
373 |
<xsl:call-template name="measurementSummary"/>
|
|
374 |
</td>
|
|
375 |
</xsl:for-each>
|
|
376 |
</tr>
|
|
377 |
</table>
|
|
378 |
</xsl:for-each>
|
|
379 |
</td>
|
|
380 |
</tr>
|
|
381 |
|
|
382 |
</xsl:for-each>
|
|
383 |
|
|
384 |
</table>
|
|
385 |
|
|
386 |
</xsl:template>
|
|
387 |
|
277 |
388 |
<xsl:template name="attributeDetail">
|
278 |
389 |
<xsl:param name="attributeLabel"/>
|
279 |
390 |
<!-- look up the attribute mapping for the given label -->
|
inclue shorter model summary for the attributes when displaying in the resultset stylesheet