Skip to content

Commit

Permalink
Basic support for biblStruct in XSLT
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-morrison committed Nov 20, 2023
1 parent 5f4ba0e commit bd5e0c5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions msdesc2html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,27 @@
</ul>
</div>
</xsl:template>

<!-- Basic support for biblStruct -->
<xsl:template match="additional/listBibl/biblStruct">
<span class="{name()}">
<i><xsl:value-of select=".//title"/></i>
<xsl:text>, </xsl:text>
<xsl:for-each select=".//author">
<xsl:value-of select="surname"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="forename"/>
</xsl:for-each>
<xsl:if test=".//imprint">
<xsl:text> (</xsl:text>
<xsl:value-of select="string-join(.//imprint/*, ', ')"/>
<xsl:text>)</xsl:text>
</xsl:if>
</span>
</xsl:template>

<!-- Block other children of biblStruct besides the basic ones used above -->
<xsl:template match="additional/listBibl/biblStruct/*"/>

<xsl:template match="additional/surrogates">
<div class="surrogates">
Expand Down

0 comments on commit bd5e0c5

Please sign in to comment.