Skip to content

Commit

Permalink
[#3] Add handling of multiple names.
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Jul 30, 2024
1 parent 044832a commit c9ee80a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions transformations/abcd2bioschemas/abcd2bioschemas-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,21 @@ exclude-result-prefixes="xsl md panxslt set">
</contributor>
</xsl:if>
<xsl:if test="$dataset_creators">
<creator type="Thing">
<name><xsl:value-of select="$dataset_creators"/></name>
</creator>
<xsl:choose>
<xsl:when test="contains($dataset_creators,',')">
<xsl:variable name="creators" select="tokenize($dataset_creators,',')"/>
<xsl:for-each select="$creators">
<creator type="Thing">
<name><xsl:value-of select="."/></name>
</creator>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<creator type="Thing">
<name><xsl:value-of select="$dataset_creators"/></name>
</creator>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<!-- TODO:
- Gathering Agents as contributors?
Expand Down

0 comments on commit c9ee80a

Please sign in to comment.