Mercurial > repos > ecology > data_paper_from_eml
diff emldown_templates/method.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emldown_templates/method.xsl Tue Oct 15 20:33:48 2024 +0000 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" +xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:template name="method" match="/"> + <h3>Method</h3> + +<div class="container"> + <xsl:for-each select="//dataset/methods"> + <xsl:choose> + <xsl:when test=".//methodStep"> + <h4>Method step</h4> + <p class="editor"><xsl:value-of select="methodStep" /></p> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test=".//sampling"> + <h4>Sampling</h4> + <p class="editor"><xsl:value-of select="sampling" /></p> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test=".//qualityControl"> + <h4>Quality control</h4> + <p class="editor"><xsl:value-of select="qualityControl" /></p> + </xsl:when> + </xsl:choose> + + </xsl:for-each> +</div> +</xsl:template> +</xsl:stylesheet>