Ignore:
Timestamp:
01/12/2019 09:42:44 AM (3 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 8.4, 9.0, 9.1, bdubbs/svn, ken/refactor-virt, lazarus, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
02790b1
Parents:
469bb220
Message:

Custom treatment of sect3 in stylesheets. Allows the "content" section to be
properly aligned in Python modules

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20957 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

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

    r469bb220 r946abe26  
    132132  </xsl:template>
    133133
     134    <!-- sect3: treat as sect2 (for Python and Perl modules
     135           When there is a role attibute, use it as the class value.
     136           Removed unused code. -->
     137    <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
     138  <xsl:template match="sect3">
     139    <div>
     140      <xsl:choose>
     141        <xsl:when test="@role">
     142          <xsl:attribute name="class">
     143            <xsl:value-of select="@role"/>
     144          </xsl:attribute>
     145        </xsl:when>
     146        <xsl:otherwise>
     147          <xsl:attribute name="class">
     148            <xsl:value-of select="name(.)"/>
     149          </xsl:attribute>
     150        </xsl:otherwise>
     151      </xsl:choose>
     152      <xsl:call-template name="language.attribute"/>
     153      <xsl:call-template name="sect3.titlepage"/>
     154      <xsl:apply-templates/>
     155    </div>
     156  </xsl:template>
     157
    134158    <!-- sect1info mode svn-keys:
    135159           Self-made template to process SVN keywords found in sect1info. -->
Note: See TracChangeset for help on using the changeset viewer.