Changeset 027e027


Ignore:
Timestamp:
01/21/2024 09:35:48 PM (4 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
a9d1a93
Parents:
07fda1c
Message:

Fix webkit bug: output title before div

in the templates we already have in lfs-sections.xsl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/xhtml/lfs-sections.xsl

    r07fda1c r027e027  
    1212
    1313    <!-- preface:
    14            Output non sect1 child elements before the TOC -->
     14         Output non sect1 child elements before the TOC
     15         Output title outside of the <div> because we want to be able to
     16         use it at a fixed position -->
    1517    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
    1618  <xsl:template match="preface">
    1719    <xsl:call-template name="id.warning"/>
     20    <xsl:call-template name="preface.titlepage"/>
     21    <xsl:call-template name="component.separator"/>
    1822    <div>
    1923      <xsl:apply-templates select="." mode="class.attribute"/>
     
    2731        </xsl:attribute>
    2832      </xsl:if>
    29       <xsl:call-template name="component.separator"/>
    30       <xsl:call-template name="preface.titlepage"/>
    3133      <xsl:apply-templates/>
    3234      <xsl:variable name="toc.params">
     
    4648
    4749    <!-- chapter:
    48            Output non sect1 child elements before the TOC -->
     50           Output non sect1 child elements before the TOC
     51           Output title before div to be able to fix the title position -->
    4952    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
    5053  <xsl:template match="chapter">
    5154    <xsl:call-template name="id.warning"/>
     55    <xsl:call-template name="chapter.titlepage"/>
     56    <xsl:call-template name="component.separator"/>
    5257    <div>
    5358      <xsl:apply-templates select="." mode="class.attribute"/>
     
    6166        </xsl:attribute>
    6267      </xsl:if>
    63       <xsl:call-template name="component.separator"/>
    64       <xsl:call-template name="chapter.titlepage"/>
    6568      <xsl:apply-templates/>
    6669      <xsl:variable name="toc.params">
     
    8285           When there is a role attibute, use it as the class value.
    8386           Process the SVN keywords found in sect1info as a footnote.
     87           Output title before the containing <div> so that the title
     88           can be at a fixed position.
    8489           Removed unused code. -->
    8590    <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
    8691  <xsl:template match="sect1">
     92    <xsl:call-template name="sect1.titlepage"/>
    8793    <div>
    8894      <xsl:choose>
     
    97103      </xsl:choose>
    98104      <xsl:call-template name="language.attribute"/>
    99       <xsl:call-template name="sect1.titlepage"/>
    100105      <xsl:apply-templates/>
    101106      <xsl:apply-templates select="sect1info" mode="svn-keys"/>
Note: See TracChangeset for help on using the changeset viewer.