Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@0dc313a
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Aug 21, 2023
1 parent 94d24d1 commit 6f78f0e
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions lib/isodoc/jis/jis.international-standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1918,11 +1918,26 @@
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
</xsl:if>

<xsl:value-of select="."/>
<xsl:variable name="font_family" select="."/>

<xsl:if test="$additional_fonts != ''">
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$additional_fonts = ''">
<xsl:value-of select="$font_family"/>
</xsl:when>
<xsl:otherwise> <!-- $additional_fonts != '' -->
<xsl:choose>
<xsl:when test="contains($font_family, ',')">
<xsl:value-of select="substring-before($font_family, ',')"/>
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$font_family"/>
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit 6f78f0e

Please sign in to comment.