Skip to content

Commit

Permalink
Merge pull request #780 from metanorma/plateau_update
Browse files Browse the repository at this point in the history
Plateau update
  • Loading branch information
Intelligent2013 authored Dec 10, 2024
2 parents 1a4ebe0 + 833f79e commit 352cc59
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
8 changes: 8 additions & 0 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6710,6 +6710,11 @@
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="span">all</xsl:attribute>
</xsl:if>
<xsl:if test="$namespace = 'plateau'">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="span">all</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:if>
</xsl:attribute-set>

<xsl:attribute-set name="indexsect-clause-title-style">
Expand Down Expand Up @@ -17968,6 +17973,9 @@
</xsl:if>
</xsl:if>
</xsl:if>
<xsl:if test="$namespace = 'plateau'">
<xsl:attribute name="space-after">12pt</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
</fo:block>
</xsl:template>
Expand Down
36 changes: 32 additions & 4 deletions xslt_src/plateau.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,10 @@
</xsl:for-each>
</xsl:element>

<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>

<xsl:call-template name="insertAnnexInSeparatePageSequences"/>
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
<xsl:call-template name="insertIndexInSeparatePageSequences"/>


</xsl:element>
</xsl:variable>

Expand Down Expand Up @@ -574,7 +572,7 @@
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="@type = 'annex' or @type = 'bibliography'">
<xsl:when test="@type = 'annex' or @type = 'bibliography' or @type = 'index'">
<fo:block space-after="5pt">
<xsl:call-template name="insertTocItem"/>
</fo:block>
Expand Down Expand Up @@ -1786,6 +1784,36 @@
</fo:block-container>
</xsl:template>

<!-- =================== -->
<!-- Index processing -->
<!-- =================== -->
<xsl:template match="plateau:indexsect">
<fo:block id="{@id}" span="all">
<xsl:apply-templates select="plateau:title"/>
</fo:block>
<fo:block role="Index">
<xsl:apply-templates select="*[not(self::plateau:title)]"/>
</fo:block>
</xsl:template>

<xsl:template match="plateau:xref[@pagenumber = 'true']" priority="2">
<xsl:call-template name="insert_basic_link">
<xsl:with-param name="element">
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
<fo:inline>
<xsl:if test="@id">
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:if>
<fo:page-number-citation ref-id="{@target}"/>
</fo:inline>
</fo:basic-link>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- =================== -->
<!-- End of Index processing -->
<!-- =================== -->

<xsl:template name="insertHeaderFooter">
<xsl:call-template name="insertHeader"/>
<fo:static-content flow-name="footer">
Expand Down

0 comments on commit 352cc59

Please sign in to comment.