Mercurial > repos > ecology > data_paper_from_eml
comparison emldown_templates/taxonomic_coverage.xsl @ 0:4a468c0c2260 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:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a468c0c2260 |
---|---|
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="taxonomic_coverage" match="/"> | |
6 <xsl:choose> | |
7 <xsl:when test=".//dataset/coverage/taxonomicCoverage"> | |
8 <h3>Taxonomic coverage</h3> | |
9 <div class="table-responsive"> | |
10 <table class="table table-striped"> | |
11 <tr> | |
12 <th>Rank</th> | |
13 <th>Value</th> | |
14 </tr> | |
15 <xsl:for-each select="//dataset/coverage/taxonomicCoverage/taxonomicClassification"> | |
16 <xsl:call-template name="loop"/> | |
17 </xsl:for-each> | |
18 </table> | |
19 </div> | |
20 </xsl:when> | |
21 </xsl:choose> | |
22 </xsl:template> | |
23 <xsl:template name="loop" match="/"> | |
24 <xsl:for-each select="taxonomicClassification"> | |
25 <xsl:choose> | |
26 <xsl:when test="descendant::taxonomicClassification"> | |
27 <xsl:call-template name="loop"/> | |
28 </xsl:when> | |
29 <xsl:otherwise> | |
30 <tr> | |
31 <td><xsl:value-of select="taxonRankName"/></td> | |
32 <td><xsl:value-of select="taxonRankValue"/></td> | |
33 </tr> | |
34 </xsl:otherwise> | |
35 </xsl:choose> | |
36 </xsl:for-each> | |
37 </xsl:template> | |
38 </xsl:stylesheet> | |
39 | |
40 | |
41 | |
42 |