Skip to content

Commit

Permalink
Merge pull request #343 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 16, 2024
2 parents d5fb0be + f5db635 commit 6af1f6e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/isodoc/iec/iec.international-standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -14457,6 +14457,20 @@

<!-- END: insert cover page image -->

<xsl:template name="insertVerticalChar">
<xsl:param name="str"/>
<xsl:if test="string-length($str) &gt; 0">
<fo:inline-container writing-mode="lr-tb" text-align="center" alignment-baseline="central" reference-orientation="90" width="1em" margin="0" padding="0" text-indent="0mm" last-line-end-indent="0mm" start-indent="0mm" end-indent="0mm">
<fo:block-container width="1em">
<fo:block line-height="1em"><xsl:value-of select="substring($str,1,1)"/></fo:block>
</fo:block-container>
</fo:inline-container>
<xsl:call-template name="insertVerticalChar">
<xsl:with-param name="str" select="substring($str, 2)"/>
</xsl:call-template>
</xsl:if>
</xsl:template>

<xsl:template name="number-to-words">
<xsl:param name="number"/>
<xsl:param name="first"/>
Expand Down

0 comments on commit 6af1f6e

Please sign in to comment.