Mercurial > repos > ecology > data_paper_from_eml
comparison emldown_templates/spatvector2.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="spatvector2" match="/"> | |
| 6 <xsl:choose> | |
| 7 <xsl:when test=".//spatialVector"> | |
| 8 <h3>Spatial Vectors</h3> | |
| 9 <xsl:for-each select=".//spatialVector"> | |
| 10 <br/> | |
| 11 <h4><xsl:value-of select="entityName"/></h4> | |
| 12 <br/> | |
| 13 <tr> | |
| 14 Physical:<xsl:text> </xsl:text><xsl:value-of select="physical/objectName"/> | |
| 15 </tr> | |
| 16 <div class="table-responsive"> | |
| 17 <table class="table table-striped"> | |
| 18 <tr> | |
| 19 <th>attribute name</th> | |
| 20 <th>definition</th> | |
| 21 <th>format, unit or codes</th> | |
| 22 </tr> | |
| 23 <xsl:for-each select="attributeList/attribute"> | |
| 24 <tr> | |
| 25 <td><xsl:value-of select="attributeName"/></td> | |
| 26 <td><xsl:value-of select="attributeDefinition"/></td> | |
| 27 <td><xsl:value-of select="measurementScale/dateTime"/><xsl:value-of select="measurementScale/ratio/unit"/><xsl:value-of select="measurementScale/interval/unit"/><xsl:for-each select="measurementScale/nominal/nonNumericDomain/enumeratedDomain/codeDefinition"><xsl:value-of select="code"/><xsl:text> = </xsl:text><xsl:value-of select="definition"/> <xsl:text> </xsl:text></xsl:for-each></td> | |
| 28 </tr> | |
| 29 </xsl:for-each> | |
| 30 </table> | |
| 31 </div> | |
| 32 </xsl:for-each> | |
| 33 </xsl:when> | |
| 34 </xsl:choose> | |
| 35 </xsl:template> | |
| 36 </xsl:stylesheet> | |
| 37 | |
| 38 |
