Skip to content

Commit

Permalink
provenance clause rendering added, metanorma/metanorma-iso#1219
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Oct 9, 2024
1 parent 3cf646a commit 3492ec8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion xslt_src/iso.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,11 @@
<fo:block font-size="12pt" font-weight="bold" role="H2" line-height="1.05" margin-top="6pt">
<xsl:call-template name="printAddendumTitle"/>
</fo:block>

<xsl:apply-templates select="/iso:iso-standard/iso:preface/iso:clause[@type = 'provenance']">
<xsl:with-param name="process">true</xsl:with-param>
</xsl:apply-templates>

</xsl:when>
<xsl:otherwise>
<xsl:for-each select="xalan:nodeset($lang_other)/lang">
Expand All @@ -1037,7 +1042,11 @@
</xsl:otherwise>
</xsl:choose>
</fo:block-container>


<xsl:if test="$doctype = 'addendum'">
<fo:block break-after="page"/>
</xsl:if>

<!-- ToC, Foreword, Introduction -->
<xsl:call-template name="processPrefaceSectionsDefault"/>

Expand Down Expand Up @@ -1433,6 +1442,15 @@
<xsl:value-of select="/iso:iso-standard/iso:bibdata/iso:title[@type = 'title-add']"/>
</xsl:template>

<xsl:template match="iso:preface/iso:clause[@type = 'provenance']" priority="5">
<xsl:param name="process">false</xsl:param>
<xsl:if test="$process = 'true'">
<fo:block margin-top="30mm" role="SKIP" font-size="8pt">
<xsl:apply-templates />
</fo:block>
</xsl:if>
</xsl:template>


<xsl:template name="insertMainSectionsAmendmentPageSequences">
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
Expand Down

0 comments on commit 3492ec8

Please sign in to comment.