Skip to content

Commit

Permalink
XSLT updated for toc title, #595
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jul 17, 2023
1 parent d43647c commit c1a8e8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
14 changes: 8 additions & 6 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@


<!-- These titles of Table of contents renders different than determined in localized-strings -->
<title-toc lang="en">
<!-- <title-toc lang="en">
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
<xsl:text>Contents</xsl:text>
</xsl:if>
Expand All @@ -317,11 +317,12 @@
<xsl:if test="$namespace = 'gb'">
<xsl:text>Table of contents</xsl:text>
</xsl:if>
</title-toc>
<title-toc lang="fr">
</title-toc> -->
<title-toc lang="en">Table of contents</title-toc>
<!-- <title-toc lang="fr">
<xsl:text>Sommaire</xsl:text>
</title-toc>
<title-toc lang="zh">
</title-toc> -->
<!-- <title-toc lang="zh">
<xsl:choose>
<xsl:when test="$namespace = 'gb'">
<xsl:text>目次</xsl:text>
Expand All @@ -330,7 +331,8 @@
<xsl:text>Contents</xsl:text>
</xsl:otherwise>
</xsl:choose>
</title-toc>
</title-toc> -->
<title-toc lang="zh">目次</title-toc>

<title-part lang="en">
<xsl:if test="$namespace = 'bsi' or $namespace = 'iso'">
Expand Down
9 changes: 3 additions & 6 deletions xslt_src/csa.standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,9 @@
</xsl:template>

<xsl:template match="csa:preface/csa:clause[@type = 'toc']/csa:title" priority="3">
<xsl:variable name="title-toc">
<xsl:call-template name="getTitle">
<xsl:with-param name="name" select="'title-toc'"/>
</xsl:call-template>
</xsl:variable>
<fo:block font-size="26pt" color="black" margin-top="2pt" margin-bottom="30pt" role="H1"><xsl:value-of select="$title-toc"/></fo:block>
<fo:block font-size="26pt" color="black" margin-top="2pt" margin-bottom="30pt" role="H1">
<xsl:apply-templates />
</fo:block>
</xsl:template>

<xsl:template match="node()">
Expand Down

0 comments on commit c1a8e8f

Please sign in to comment.