Skip to content

Commit

Permalink
Merge pull request #662 from metanorma/iso_historical
Browse files Browse the repository at this point in the history
Iso historical
  • Loading branch information
Intelligent2013 authored Mar 17, 2024
2 parents 804da53 + 2a3a0b1 commit 2b71dd8
Show file tree
Hide file tree
Showing 2 changed files with 396 additions and 31 deletions.
8 changes: 8 additions & 0 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
<xsl:when test="$namespace = 'iho'">24.5</xsl:when>
<xsl:when test="$namespace = 'iso'">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951'">36</xsl:when>
<xsl:when test="$layoutVersion = '2024'">18.7</xsl:when>
<xsl:otherwise>25</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -250,6 +251,7 @@
<xsl:when test="$namespace = 'iho'">25</xsl:when>
<xsl:when test="$namespace = 'iso'">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951'">29</xsl:when>
<xsl:when test="$layoutVersion = '2024'">18.7</xsl:when>
<xsl:otherwise>12.5</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -309,6 +311,7 @@
<xsl:when test="$namespace = 'iho'">25.4</xsl:when>
<xsl:when test="$namespace = 'iso'">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951'">25.5</xsl:when>
<xsl:when test="$layoutVersion = '2024'">25.5</xsl:when>
<xsl:otherwise>15</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -446,6 +449,7 @@
<xsl:variable name="zero_width_space">&#x200B;</xsl:variable>
<xsl:variable name="hair_space">&#x200A;</xsl:variable>
<xsl:variable name="en_dash">&#x2013;</xsl:variable>
<xsl:variable name="em_dash">&#x2014;</xsl:variable>

<xsl:template name="getTitle">
<xsl:param name="name"/>
Expand Down Expand Up @@ -15131,6 +15135,9 @@
</xsl:choose>
</xsl:variable>

<xsl:if test="$namespace = 'iso'">
<xsl:if test="$layoutVersion = '1951' and $depth = 1">.</xsl:if>
</xsl:if>
<xsl:choose>
<xsl:when test="$lang = 'zh'">
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
Expand Down Expand Up @@ -15353,6 +15360,7 @@
<xsl:choose>
<xsl:when test="$namespace = 'iso'">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951' and (local-name() = 'clause' or local-name() = 'introduction')"></xsl:when>
<xsl:when test="$layoutVersion = '1987' and $doctype = 'technical-report'"></xsl:when>
<xsl:otherwise>
<fo:block break-after="page"/>
Expand Down
Loading

0 comments on commit 2b71dd8

Please sign in to comment.