Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XSL support for the JATS email element in all contexts #4092

Merged
merged 4 commits into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/transform/xsl/default.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3873,6 +3873,15 @@
</pre>
</xsl:template>

<!-- Add support for email links in all contexts. -->
<xsl:template match="email">
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="concat('mailto:',.)"/></xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="'email'"/></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<!-- END - general format -->

<xsl:template match="sub-article//title-group | sub-article/front-stub | fn-group[@content-type='competing-interest']/fn/p | //history//*[@publication-type='journal']/article-title">
Expand Down