comparison emldown_templates/spatraster2.xsl @ 0:cfe884e53600 draft default tip

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/make_data_paper_sketches commit 34f4e0604adc2a2ba4902ce6b8e6df2460eda292
author ecology
date Tue, 15 Oct 2024 20:33:48 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cfe884e53600
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5 <xsl:template name="spatraster2" match="/">
6 <xsl:choose>
7 <xsl:when test=".//spatialRaster">
8 <h3>Spatial Rasters</h3>
9 <xsl:for-each select=".//spatialRaster">
10 <br/>
11 <h4>
12 <xsl:value-of select="entityName"/></h4>
13 <br/>
14 <tr>
15 Physical:<xsl:text>&#xA0;</xsl:text><xsl:value-of select="physical/objectName"/>
16 </tr>
17 <div class="table-responsive">
18 <table class="table table-striped">
19 <tr>
20 <th>attribute name</th>
21 <th>definition</th>
22 <th>format, unit or codes</th>
23 </tr>
24 <xsl:for-each select="attributeList/attribute">
25 <tr>
26 <td><xsl:value-of select="attributeName"/></td>
27 <td><xsl:value-of select="attributeDefinition"/></td>
28 <td><xsl:value-of select="measurementScale/dateTime"/><xsl:value-of select="measurementScale/ratio/unit"/><xsl:value-of select="measurementScale/interval/unit"/><xsl:for-each select="measurementScale/nominal/nonNumericDomain/enumeratedDomain/codeDefinition"><xsl:value-of select="code"/><xsl:text>&#xA0;=&#xA0;</xsl:text><xsl:value-of select="definition"/> <xsl:text>&#xA0;</xsl:text></xsl:for-each></td>
29 </tr>
30 </xsl:for-each>
31 </table>
32 </div>
33 </xsl:for-each>
34 </xsl:when>
35 </xsl:choose>
36 </xsl:template>
37 </xsl:stylesheet>
38
39