view emldown_templates/geographic_coverage.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="geographic_coverage" match="/">
    <xsl:choose>
        <xsl:when test=".//geographicCoverage">
    <h3>Geographic coverage</h3>
        <div class="row">        
            <xsl:for-each select="//dataset/coverage/geographicCoverage">
                <div class="col-sm-3">

                    <p><b><xsl:value-of select="geographicDescription"/></b></p>
                    
                    <p>
                        West: <xsl:value-of select="boundingCoordinates/westBoundingCoordinate"/><br/>
                        East: <xsl:value-of select="boundingCoordinates/eastBoundingCoordinate"/><br/>
                        North: <xsl:value-of select="boundingCoordinates/northBoundingCoordinate"/><br/>
                        South: <xsl:value-of select="boundingCoordinates/southBoundingCoordinate"/>
                    </p>

                </div>
                
            </xsl:for-each>

        </div>
     </xsl:when>
    </xsl:choose>  
    </xsl:template>
</xsl:stylesheet>