Revision 5769
Added by ben leinfelder over 13 years ago
annotation-root.xsl | ||
---|---|---|
41 | 41 |
<xsl:param name="contextURL"/> |
42 | 42 |
<xsl:param name="tripleURI"><xsl:value-of select="$contextURL" /><![CDATA[/metacat?action=read&qformat=]]><xsl:value-of select="$qformat" /><![CDATA[&sessionid=]]><xsl:value-of select="$sessionid" /><![CDATA[&docid=]]></xsl:param> |
43 | 43 |
<xsl:param name="labelWidth">120</xsl:param> |
44 |
<xsl:param name="showEntity">false</xsl:param> |
|
44 | 45 |
|
45 | 46 |
<xsl:key name="mapping" match="//*[local-name()='map']" use="concat(../@id, @measurement)" /> |
46 | 47 |
<xsl:key name="attributes" match="//*[local-name()='map']" use="concat(../@id, @attribute)" /> |
... | ... | |
222 | 223 |
<th colspan="2"> |
223 | 224 |
Measurement (<xsl:value-of select="./@label" />) |
224 | 225 |
</th> |
225 |
</tr> |
|
226 |
<tr> |
|
227 |
<td class="rowodd" width="{$labelWidth}"> |
|
228 |
Column: |
|
229 |
</td> |
|
230 |
<td class="roweven"> |
|
231 |
<xsl:variable name="columnkey"> |
|
232 |
<xsl:value-of select="concat(../../@id, @label)" /> |
|
233 |
</xsl:variable> |
|
234 |
<xsl:for-each select="key('mapping', $columnkey )"> |
|
235 |
<xsl:value-of select="./@attribute" /> |
|
236 |
</xsl:for-each> |
|
237 |
</td> |
|
238 | 226 |
</tr> |
227 |
<xsl:choose> |
|
228 |
<xsl:when test="$showEntity = 'true'"> |
|
229 |
<tr> |
|
230 |
<td class="rowodd" width="{$labelWidth}"> |
|
231 |
Entity: |
|
232 |
</td> |
|
233 |
<td class="roweven"> |
|
234 |
<xsl:for-each select="../*[local-name()='entity']"> |
|
235 |
<span> |
|
236 |
<xsl:attribute name="title"> |
|
237 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/> |
|
238 |
<xsl:text>#</xsl:text> |
|
239 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
240 |
</xsl:attribute> |
|
241 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
242 |
</span> |
|
243 |
</xsl:for-each> |
|
244 |
</td> |
|
245 |
</tr> |
|
246 |
</xsl:when> |
|
247 |
<xsl:otherwise> |
|
248 |
<tr> |
|
249 |
<td class="rowodd" width="{$labelWidth}"> |
|
250 |
Column: |
|
251 |
</td> |
|
252 |
<td class="roweven"> |
|
253 |
<xsl:variable name="columnkey"> |
|
254 |
<xsl:value-of select="concat(../../@id, @label)" /> |
|
255 |
</xsl:variable> |
|
256 |
<xsl:for-each select="key('mapping', $columnkey )"> |
|
257 |
<xsl:value-of select="./@attribute" /> |
|
258 |
</xsl:for-each> |
|
259 |
</td> |
|
260 |
</tr> |
|
261 |
</xsl:otherwise> |
|
262 |
</xsl:choose> |
|
263 |
|
|
264 |
|
|
239 | 265 |
<tr> |
240 | 266 |
<td class="rowodd" width="{$labelWidth}"> |
241 | 267 |
Characteristic[s]: |
Also available in: Unified diff
show Entity when including measurement information within EML rendering