Skip to content

Commit

Permalink
ISO xslt updated for metanorma/metanorma-iso#1090
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jul 12, 2024
1 parent 838373e commit c69b933
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 49 deletions.
18 changes: 9 additions & 9 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@

<xsl:template name="refine_termexample-style">
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
</xsl:if>
Expand Down Expand Up @@ -1398,7 +1398,7 @@

<xsl:template name="refine_example-style">
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
</xsl:if>
Expand Down Expand Up @@ -1837,7 +1837,7 @@
<xsl:if test="starts-with(@id, 'array_')">
<xsl:attribute name="margin-top">6pt</xsl:attribute>
</xsl:if>
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="normalize-space(@width) != 'text-width'">
<xsl:attribute name="span">all</xsl:attribute>
</xsl:if>
Expand Down Expand Up @@ -2221,7 +2221,7 @@
<xsl:if test="$continued = 'true'">
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
</xsl:if>
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:if test="normalize-space(../@width) != 'text-width'">
<xsl:attribute name="span">all</xsl:attribute>
Expand Down Expand Up @@ -3756,7 +3756,7 @@
</xsl:if>

<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
<xsl:if test="$layoutVersion = '1987'">
Expand Down Expand Up @@ -4050,7 +4050,7 @@
</xsl:if>
</xsl:if>
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
<xsl:if test="$doctype = 'amendment' and parent::*[local-name() = 'quote']">
Expand Down Expand Up @@ -4329,7 +4329,7 @@
</xsl:if>
</xsl:if>
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="normalize-space(@width) != 'text-width'">
<xsl:attribute name="span">all</xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
Expand Down Expand Up @@ -5463,7 +5463,7 @@
</xsl:if>
</xsl:if>
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:if test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or $layoutVersion = '1989'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
<xsl:if test="$layoutVersion = '2024'">
Expand Down Expand Up @@ -19352,7 +19352,7 @@
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
<xsl:if test="$namespace = 'jcgm'"><xsl:text>&#xA0;</xsl:text></xsl:if>
<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion != '1972' and $layoutVersion != '2024'">
<xsl:if test="$layoutVersion != '1972' and $layoutVersion != '1979' and $layoutVersion != '2024'">
<xsl:text>&#xA0;</xsl:text>
</xsl:if>
</xsl:if>
Expand Down
Loading

0 comments on commit c69b933

Please sign in to comment.