Mercurial > repos > ecology > data_paper_from_eml
comparison emldown_templates/units.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="units" match="/"> | |
| 6 <xsl:choose> | |
| 7 <xsl:when test=".//unitList"> | |
| 8 <h3>Custom units</h3> | |
| 9 <table class="table"> | |
| 10 <tr> | |
| 11 <th>unit name</th> | |
| 12 <th>parent SI unit</th> | |
| 13 <th>unit type</th> | |
| 14 <th>description</th> | |
| 15 </tr> | |
| 16 <xsl:for-each select="//unitList/unit"> | |
| 17 <tr> | |
| 18 <td><xsl:value-of select="@name"/></td> | |
| 19 <td><xsl:value-of select="@parentSI"/></td> | |
| 20 <td><xsl:value-of select="@unitType"/></td> | |
| 21 <td><xsl:value-of select="description"/></td> | |
| 22 </tr> | |
| 23 </xsl:for-each> | |
| 24 </table> | |
| 25 </xsl:when> | |
| 26 </xsl:choose> | |
| 27 </xsl:template> | |
| 28 </xsl:stylesheet> | |
| 29 | |
| 30 |
