Mercurial > repos > ecology > data_paper_from_eml
view 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 |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template name="units" match="/"> <xsl:choose> <xsl:when test=".//unitList"> <h3>Custom units</h3> <table class="table"> <tr> <th>unit name</th> <th>parent SI unit</th> <th>unit type</th> <th>description</th> </tr> <xsl:for-each select="//unitList/unit"> <tr> <td><xsl:value-of select="@name"/></td> <td><xsl:value-of select="@parentSI"/></td> <td><xsl:value-of select="@unitType"/></td> <td><xsl:value-of select="description"/></td> </tr> </xsl:for-each> </table> </xsl:when> </xsl:choose> </xsl:template> </xsl:stylesheet>