Changeset d989d56


Ignore:
Timestamp:
01/20/2024 11:04:48 AM (5 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
d75f8790
Parents:
e72bf16 (diff), 0d7e9a26 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'trunk' of git.linuxfromscratch.org:blfs into trunk

File:
1 edited

Legend:

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

    re72bf16 rd989d56  
    128128
    129129    <!-- sect3.titlepage:
    130            Uses h3 and removed a lot of unneeded code.
    131            Use generic titlepage.mode template in case there are child
    132             elements (xref)-->
     130         Same as sect2 except it uses h3 -->
    133131    <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
    134132  <xsl:template name="sect3.titlepage">
    135     <h3 class="{name(.)}">
    136       <xsl:if test="@id">
    137         <a id="{@id}" name="{@id}"/>
    138       </xsl:if>
    139       <xsl:if test="$section.autolabel != 0">
    140         <xsl:apply-templates select="." mode="label.markup"/>
    141         <xsl:text>. </xsl:text>
    142       </xsl:if>
    143       <xsl:apply-templates select="./title" mode="titlepage.mode"/>
    144     </h3>
     133    <xsl:choose>
     134      <xsl:when test="string-length(title) = 0"/>
     135      <xsl:otherwise>
     136        <h3 class="{name(.)}">
     137          <xsl:if test="@id">
     138            <a id="{@id}" name="{@id}"/>
     139          </xsl:if>
     140          <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
     141            <xsl:apply-templates select="." mode="label.markup"/>
     142            <xsl:text>. </xsl:text>
     143          </xsl:if>
     144          <xsl:value-of select="title"/>
     145        </h3>
     146      </xsl:otherwise>
     147    </xsl:choose>
    145148  </xsl:template>
    146 
    147149    <!-- dedication.titlepage:
    148150           Uses h2 and removed a lot of unneeded code. -->
Note: See TracChangeset for help on using the changeset viewer.