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 Sep 16, 2024
2 parents 5b6c8a7 + d0ae3f0 commit fa51a12
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/isodoc/ribose/ribose.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13466,6 +13466,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 fa51a12

Please sign in to comment.