comparison emldown_templates/dataset2.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="dataset2" match="/">
6 <xsl:choose>
7 <xsl:when test=".//dataset/pubDate">
8 <h3>Publication date </h3>
9 <xsl:value-of select="//dataset/pubDate"/>
10 </xsl:when>
11 </xsl:choose>
12
13 <xsl:choose>
14 <xsl:when test=".//dataset/abstract">
15 <h3>Abstract</h3>
16 <div class="container">
17 <div class="jumbotron">
18 <p class="lead"><xsl:value-of select="//dataset/abstract" /></p>
19 </div>
20 </div>
21 </xsl:when>
22 </xsl:choose>
23
24 <xsl:choose>
25 <xsl:when test=".//metadataProvider">
26 <h3>Metadata Provider</h3>
27 <p>
28 <xsl:value-of select="//metadataProvider/individualName/givenName"/>&#160;
29 <xsl:value-of select="//metadataProvider/individualName/surName"/>
30 </p>
31 </xsl:when>
32 </xsl:choose>
33 <h3>Author list</h3>
34 <h4>Creators</h4>
35 <ul class="list-group">
36 <xsl:for-each select="//dataset/creator">
37 <li class="list-group-item">
38 <xsl:value-of select="individualName/givenName"/>&#160;
39 <xsl:value-of select="individualName/surName"/>&#160;
40 <xsl:value-of select="electronicMailAddress"/>
41 </li>
42 </xsl:for-each>
43 </ul>
44
45 <xsl:choose>
46 <xsl:when test=".//associatedParty">
47 <h4>Associated parties</h4>
48 <ul class="list-group">
49 <xsl:for-each select="//dataset/associatedParty">
50 <li class="list-group-item">
51 <xsl:value-of select="individualName/givenName"/>&#160;
52 <xsl:value-of select="individualName/surName"/>&#160;
53 <xsl:value-of select="electronicMailAddress"/>
54 </li>
55 </xsl:for-each>
56 </ul>
57 </xsl:when>
58 </xsl:choose>
59 <xsl:choose>
60 <xsl:when test=".//dataset/keywordSet/keyword">
61 <h3>Keywords</h3>
62 <p>
63 <xsl:for-each select="//dataset/keywordSet/keyword">
64 <ul>
65 <li><xsl:value-of select="."/></li>
66 </ul>
67 </xsl:for-each>
68 </p>
69 </xsl:when>
70 </xsl:choose>
71
72 <xsl:choose>
73 <xsl:when test=".//dataset/annotation">
74 <h3>Annotations</h3>
75 <p>
76 <xsl:for-each select="//dataset/annotation">
77 <ul>
78 <li>
79 <xsl:value-of select="./valueURI/@label"/>&#160;
80 <a href="{valueURI}"><xsl:value-of select="./valueURI"/></a>
81 </li>
82 </ul>
83 </xsl:for-each>
84 </p>
85 </xsl:when>
86 </xsl:choose>
87 </xsl:template>
88 </xsl:stylesheet>