Skip to content

Commit

Permalink
ISO xslt updated for metanorma/metanorma-iso#1259
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Feb 5, 2025
1 parent 86aaea2 commit a4ada19
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions xslt_src/iso.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,16 @@
<xsl:if test="$stage &gt;=60 and $substage != 0">
<xsl:attribute name="color"><xsl:value-of select="$color_red"/></xsl:attribute>
</xsl:if>
<xsl:value-of select="$docidentifierISO"/>
<xsl:choose>
<xsl:when test="contains($docidentifierISO, ' ')">
<xsl:value-of select="substring-before($docidentifierISO, ' ')"/>
<xsl:text>&#xa0;&#xa0;</xsl:text>
<xsl:value-of select="substring-after($docidentifierISO, ' ')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$docidentifierISO"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:table-cell>
</fo:table-row>
Expand Down Expand Up @@ -2092,15 +2101,43 @@
<!-- Voting begins on: -->
<xsl:value-of select="concat($i18n_voting_begins_on, ':')"/>
<fo:block font-weight="bold">
<xsl:call-template name="insertVoteStarted"/>
<xsl:variable name="v_date">
<xsl:call-template name="split">
<xsl:with-param name="pText">
<xsl:call-template name="insertVoteStarted"/>
</xsl:with-param>
<xsl:with-param name="sep" select="'-'"/>
<xsl:with-param name="keep_sep">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="xalan:nodeset($v_date)/item">
<xsl:choose>
<xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:block>
</fo:block>

<fo:block margin-bottom="3mm">
<!-- Voting terminates on: -->
<xsl:value-of select="concat($i18n_voting_terminates_on, ':')"/>
<fo:block font-weight="bold">
<xsl:call-template name="insertVoteEnded"/>
<xsl:variable name="v_date">
<xsl:call-template name="split">
<xsl:with-param name="pText">
<xsl:call-template name="insertVoteEnded"/>
</xsl:with-param>
<xsl:with-param name="sep" select="'-'"/>
<xsl:with-param name="keep_sep">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="xalan:nodeset($v_date)/item">
<xsl:choose>
<xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:block>
</fo:block>
</xsl:if>
Expand Down Expand Up @@ -2179,11 +2216,11 @@
</xsl:if>
</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2" padding-left="6mm" display-align="after">
<fo:table-cell number-columns-spanned="2" padding-top="-3mm" padding-left="5mm" display-align="after">
<xsl:if test="$lang = 'fr'">
<xsl:attribute name="padding-top">-15mm</xsl:attribute>
<xsl:attribute name="padding-top">-18mm</xsl:attribute>
</xsl:if>
<fo:block font-size="6.5pt" margin-right="15mm">
<fo:block font-size="7pt" margin-right="20mm" font-family="Cambria">
<xsl:call-template name="insertDraftComments"/>
</fo:block>
</fo:table-cell>
Expand Down Expand Up @@ -3242,7 +3279,10 @@
</xsl:if>
<fo:block>
<!-- <xsl:text>ISO/CEN PARALLEL PROCESSING</xsl:text> -->
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($i18n_iso_cen_parallel))"/>
<xsl:call-template name="add-letter-spacing">
<xsl:with-param name="text" select="java:toUpperCase(java:java.lang.String.new($i18n_iso_cen_parallel))"/>
<xsl:with-param name="letter-spacing" select="0.13"/>
</xsl:call-template>
</fo:block>
</fo:block-container>
</fo:block>
Expand Down

0 comments on commit a4ada19

Please sign in to comment.