Skip to content

Commit

Permalink
JIS xslt refactored for footer, metanorma/metanorma-jis#226
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Dec 13, 2024
1 parent b391385 commit 3f894ff
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions xslt_src/jis.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,11 @@
<xsl:with-param name="key">table_of_contents</xsl:with-param>
</xsl:call-template> -->
<fo:marker marker-class-name="section_title">
<xsl:variable name="section_title"><xsl:apply-templates/></xsl:variable>
<xsl:value-of select="translate($section_title, ' ', '')"/>
<xsl:variable name="section_title_"><xsl:apply-templates/></xsl:variable>
<xsl:variable name="section_title" select="translate($section_title_, ' ', '')"/>
<xsl:call-template name="insertVerticalChar">
<xsl:with-param name="str" select="$section_title"/>
</xsl:call-template>
</fo:marker>
<xsl:apply-templates/>
</fo:block>
Expand Down Expand Up @@ -1957,12 +1960,18 @@
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$stitle"/>
<!-- <xsl:value-of select="$stitle"/> -->
<xsl:call-template name="insertVerticalChar">
<xsl:with-param name="str" select="$stitle"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="stitle"><xsl:call-template name="extractTitle"/></xsl:variable>
<xsl:variable name="section_title"><xsl:value-of select="normalize-space(concat($section, ' ', $stitle))"/></xsl:variable>
<xsl:value-of select="translate($section_title, ' ', ' ')"/>
<xsl:variable name="section_title_"><xsl:value-of select="normalize-space(concat($section, ' ', $stitle))"/></xsl:variable>
<xsl:variable name="section_title" select="translate($section_title_, ' ', ' ')"/>
<xsl:call-template name="insertVerticalChar">
<xsl:with-param name="str" select="$section_title"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</fo:marker>
Expand Down Expand Up @@ -3278,7 +3287,18 @@
<fo:leader leader-pattern="space"/>
<fo:inline font-size="6pt" baseline-shift="-10%">
<!-- <xsl:value-of select="$copyrightText"/> -->
<xsl:copy-of select="$copyrightText"/>
<xsl:for-each select="xalan:nodeset($copyrightText)/node()">
<xsl:choose>
<xsl:when test="self::text()">
<xsl:call-template name="insertVerticalChar">
<xsl:with-param name="str" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:inline>
</fo:inline >

Expand Down

0 comments on commit 3f894ff

Please sign in to comment.