Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@6af6910
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Sep 16, 2024
1 parent 18547fe commit 110b472
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/isodoc/m3aawg/m3aawg.policy.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12773,6 +12773,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
14 changes: 14 additions & 0 deletions lib/isodoc/m3aawg/m3aawg.report.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12773,6 +12773,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 110b472

Please sign in to comment.