Skip to content

Commit

Permalink
ISO xslt updated for notes for layout 1951,, metanorma/metanorma-iso#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Aug 9, 2024
1 parent bd668ff commit 0870720
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12743,7 +12743,7 @@
</xsl:if>
</xsl:if>
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1987'">
<xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1987'">
<xsl:if test="following-sibling::*[1][self::iso:note] and not(preceding-sibling::*[1][self::iso:note])">
<!-- NOTES -->
<fo:block font-size="9.5pt" keep-with-next="always" margin-bottom="6pt" text-transform="uppercase">
Expand Down
8 changes: 7 additions & 1 deletion xslt_src/iso.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3957,7 +3957,7 @@
<xsl:when test="$layoutVersion = '1951' and $level = 1 and ancestor::iso:preface">14.7mm</xsl:when>
<xsl:when test="$layoutVersion = '1951' and parent::iso:introduction and $revision_date_num &lt; 19680101">6mm</xsl:when>
<xsl:when test="$layoutVersion = '1951' and parent::iso:introduction">2mm</xsl:when>
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &gt;= 19680101">4pt</xsl:when>
<!-- <xsl:when test="$layoutVersion = '1951' and $revision_date_num &gt;= 19680101">4pt</xsl:when> -->
<xsl:when test="$layoutVersion = '1951' and $level = 1">12pt</xsl:when>
<xsl:when test="ancestor::iso:introduction and $level &gt;= 2">8pt</xsl:when>
<xsl:when test="ancestor::iso:preface">18pt</xsl:when>
Expand Down Expand Up @@ -4312,6 +4312,12 @@

<xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']/text()" priority="5">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951' and not(translate(.,'0123456789','') = .)"> <!-- NOTE with number -->
<fo:inline padding-right="2mm" role="SKIP">
<xsl:value-of select="substring-after(., ' ')"/>
<xsl:text>. </xsl:text>
</fo:inline>
</xsl:when>
<xsl:when test="$layoutVersion = '1951'"> <!-- and $revision_date_num &lt; 19610101 -->
<xsl:call-template name="smallcaps"/>
<xsl:value-of select="concat('. ', $em_dash, ' ')"/>
Expand Down

0 comments on commit 0870720

Please sign in to comment.