Skip to content

Commit

Permalink
Merge pull request #1228 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 9, 2024
2 parents 8f0d2b0 + 45c89a5 commit ab8df1d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/isodoc/iso/iso.amendment.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,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 @@ -1014,6 +1019,10 @@
</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 @@ -1403,6 +1412,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 -->
<xsl:element name="page_sequence" namespace="{$namespace_full}">
Expand Down
18 changes: 18 additions & 0 deletions lib/isodoc/iso/iso.international-standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,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 @@ -1014,6 +1019,10 @@
</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 @@ -1403,6 +1412,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 -->
<xsl:element name="page_sequence" namespace="{$namespace_full}">
Expand Down

0 comments on commit ab8df1d

Please sign in to comment.