Skip to content

Commit

Permalink
Merge pull request #296 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 21, 2023
2 parents 3d6eae2 + c3a5771 commit 7671c56
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
23 changes: 19 additions & 4 deletions lib/isodoc/ieee/ieee.amendment.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4072,11 +4072,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
23 changes: 19 additions & 4 deletions lib/isodoc/ieee/ieee.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4072,11 +4072,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 7671c56

Please sign in to comment.