45 |
45 |
<xsl:key name="mapping" match="//*[local-name()='map']" use="@measurement" />
|
46 |
46 |
|
47 |
47 |
<xsl:template name="annotation">
|
48 |
|
<xsl:param name="showAll">true</xsl:param>
|
49 |
|
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
|
|
48 |
<xsl:param name="showAll">true</xsl:param>
|
|
49 |
|
|
50 |
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%" class="subGroup">
|
50 |
51 |
<tr class="subpanel">
|
51 |
52 |
<td class="text_plain" colspan="2">
|
52 |
|
<table>
|
|
53 |
<table class="subGroup subGroup_border">
|
53 |
54 |
<tr>
|
54 |
55 |
<td class="text_plain">
|
55 |
56 |
Annotation ID:
|
... | ... | |
101 |
102 |
</tr>
|
102 |
103 |
|
103 |
104 |
<xsl:if test="$showAll='true'">
|
104 |
|
|
|
105 |
|
105 |
106 |
<tr class="subpanel">
|
106 |
|
<th style="text-align: left">
|
107 |
|
Entity
|
108 |
|
</th>
|
109 |
|
<th style="text-align: left">
|
110 |
|
Measurement
|
111 |
|
</th>
|
|
107 |
<td class="text_plain" colspan="2">
|
|
108 |
<table class="subGroup subGroup_border">
|
|
109 |
<tr class="subpanel">
|
|
110 |
<th style="text-align: left">
|
|
111 |
Entity
|
|
112 |
</th>
|
|
113 |
<th style="text-align: left">
|
|
114 |
Measurement
|
|
115 |
</th>
|
|
116 |
</tr>
|
|
117 |
|
|
118 |
<xsl:for-each select="./*[local-name()='observation']">
|
|
119 |
<tr valign="top" class="subpanel">
|
|
120 |
<xsl:attribute name="class">
|
|
121 |
<xsl:choose>
|
|
122 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
|
123 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
|
124 |
</xsl:choose>
|
|
125 |
</xsl:attribute>
|
|
126 |
|
|
127 |
<!-- observation entity -->
|
|
128 |
<td class="text_plain">
|
|
129 |
Class: <xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/>
|
|
130 |
<br/>
|
|
131 |
Ontology: <xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/>
|
|
132 |
<br />
|
|
133 |
Label: <xsl:value-of select="./@label"/>
|
|
134 |
</td>
|
|
135 |
<!-- measurement -->
|
|
136 |
<td class="text_plain">
|
|
137 |
<xsl:for-each select="./*[local-name()='measurement']">
|
|
138 |
<table>
|
|
139 |
<tr>
|
|
140 |
<td class="text_plain">
|
|
141 |
Column:
|
|
142 |
</td>
|
|
143 |
<td class="text_plain">
|
|
144 |
<xsl:for-each select="key('mapping', @label)">
|
|
145 |
<xsl:value-of select="./@attribute" />
|
|
146 |
</xsl:for-each>
|
|
147 |
</td>
|
|
148 |
<td></td>
|
|
149 |
</tr>
|
|
150 |
<tr>
|
|
151 |
<td class="text_plain">
|
|
152 |
Characteristic[s]:
|
|
153 |
</td>
|
|
154 |
<td class="text_plain">
|
|
155 |
<xsl:for-each select="./*[local-name()='characteristic']">
|
|
156 |
<!--xsl:value-of select="./@id" /-->
|
|
157 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
158 |
</xsl:for-each>
|
|
159 |
</td>
|
|
160 |
<td class="text_plain">
|
|
161 |
<xsl:for-each select="./*[local-name()='characteristic']">
|
|
162 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
|
163 |
</xsl:for-each>
|
|
164 |
</td>
|
|
165 |
</tr>
|
|
166 |
<tr>
|
|
167 |
<td class="text_plain">
|
|
168 |
Standard:
|
|
169 |
</td>
|
|
170 |
<td class="text_plain">
|
|
171 |
<!-- xsl:value-of select="./*[local-name()='standard']/@id" /-->
|
|
172 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
|
173 |
</td>
|
|
174 |
<td class="text_plain">
|
|
175 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
|
176 |
</td>
|
|
177 |
</tr>
|
|
178 |
<tr>
|
|
179 |
<td class="text_plain">
|
|
180 |
Protocol:
|
|
181 |
</td>
|
|
182 |
<td class="text_plain">
|
|
183 |
<!-- xsl:value-of select="./*[local-name()='protocol']/@id" /-->
|
|
184 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
|
185 |
</td>
|
|
186 |
<td class="text_plain">
|
|
187 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/>
|
|
188 |
</td>
|
|
189 |
</tr>
|
|
190 |
</table>
|
|
191 |
<hr/>
|
|
192 |
</xsl:for-each>
|
|
193 |
</td>
|
|
194 |
</tr>
|
|
195 |
</xsl:for-each>
|
|
196 |
</table>
|
|
197 |
</td>
|
112 |
198 |
</tr>
|
113 |
|
|
114 |
|
<xsl:for-each select="./*[local-name()='observation']">
|
115 |
|
<tr valign="top" class="subpanel">
|
116 |
|
<xsl:attribute name="class">
|
117 |
|
<xsl:choose>
|
118 |
|
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
119 |
|
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
120 |
|
</xsl:choose>
|
121 |
|
</xsl:attribute>
|
122 |
|
|
123 |
|
<!-- observation entity -->
|
124 |
|
<td class="text_plain">
|
125 |
|
Class: <xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/>
|
126 |
|
<br/>
|
127 |
|
Ontology: <xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/>
|
128 |
|
<br />
|
129 |
|
Label: <xsl:value-of select="./@label"/>
|
130 |
|
</td>
|
131 |
|
<!-- measurement -->
|
132 |
|
<td class="text_plain">
|
133 |
|
<xsl:for-each select="./*[local-name()='measurement']">
|
134 |
|
<table>
|
135 |
|
<tr>
|
136 |
|
<td class="text_plain">
|
137 |
|
Column:
|
138 |
|
</td>
|
139 |
|
<td class="text_plain">
|
140 |
|
<xsl:for-each select="key('mapping', @label)">
|
141 |
|
<xsl:value-of select="./@attribute" />
|
142 |
|
</xsl:for-each>
|
143 |
|
</td>
|
144 |
|
<td></td>
|
145 |
|
</tr>
|
146 |
|
<tr>
|
147 |
|
<td class="text_plain">
|
148 |
|
Characteristic[s]:
|
149 |
|
</td>
|
150 |
|
<td class="text_plain">
|
151 |
|
<xsl:for-each select="./*[local-name()='characteristic']">
|
152 |
|
<!--xsl:value-of select="./@id" /-->
|
153 |
|
<xsl:value-of select="substring-after(./@id, ':')"/>
|
154 |
|
</xsl:for-each>
|
155 |
|
</td>
|
156 |
|
<td class="text_plain">
|
157 |
|
<xsl:for-each select="./*[local-name()='characteristic']">
|
158 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
159 |
|
</xsl:for-each>
|
160 |
|
</td>
|
161 |
|
</tr>
|
162 |
|
<tr>
|
163 |
|
<td class="text_plain">
|
164 |
|
Standard:
|
165 |
|
</td>
|
166 |
|
<td class="text_plain">
|
167 |
|
<!-- xsl:value-of select="./*[local-name()='standard']/@id" /-->
|
168 |
|
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
169 |
|
</td>
|
170 |
|
<td class="text_plain">
|
171 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
172 |
|
</td>
|
173 |
|
</tr>
|
174 |
|
<tr>
|
175 |
|
<td class="text_plain">
|
176 |
|
Protocol:
|
177 |
|
</td>
|
178 |
|
<td class="text_plain">
|
179 |
|
<!-- xsl:value-of select="./*[local-name()='protocol']/@id" /-->
|
180 |
|
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
181 |
|
</td>
|
182 |
|
<td class="text_plain">
|
183 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/>
|
184 |
|
</td>
|
185 |
|
</tr>
|
186 |
|
</table>
|
187 |
|
<hr/>
|
188 |
|
</xsl:for-each>
|
189 |
|
</td>
|
190 |
|
</tr>
|
191 |
|
|
192 |
|
</xsl:for-each>
|
193 |
|
|
194 |
199 |
</xsl:if>
|
195 |
200 |
|
196 |
201 |
<tr class="searchresultsdivider">
|
... | ... | |
199 |
204 |
</tr>
|
200 |
205 |
|
201 |
206 |
</table>
|
|
207 |
|
202 |
208 |
</xsl:template>
|
203 |
209 |
|
204 |
210 |
</xsl:stylesheet>
|
include nesting borders