Changeset f6a43f6


Ignore:
Timestamp:
01/26/2024 11:30:17 PM (4 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib
Children:
8ccf082a
Parents:
31a18d02 (diff), 360fdfca (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:

Automatic merge of trunk into multilib

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • chapter02/hostreqs.xml

    r31a18d02 rf6a43f6  
    3131    place software headers into separate packages, often in the form of
    3232    <quote>&lt;package-name&gt;-devel</quote> or
    33     <quote>&lt;package-name&gt;-dev</quote>. Be sure to install those if
     33    <quote>&lt;package-name&gt;-dev.</quote> Be sure to install those if
    3434    your distribution provides them.</para>
    3535
  • chapter02/mounting.xml

    r31a18d02 rf6a43f6  
    1717  </para>
    1818 
    19   <para>Strictly speaking, one cannot "mount a partition". One mounts the <emphasis>file
     19  <para>Strictly speaking, one cannot "mount a partition." One mounts the <emphasis>file
    2020  system</emphasis> embedded in that partition. But since a single partition can't contain
    2121  more than one file system, people often speak of the partition and the
  • chapter02/stages.xml

    r31a18d02 rf6a43f6  
    7070      <listitem>
    7171        <para>A few operations, from <quote>Changing Ownership</quote> to
    72         <quote>Entering the Chroot Environment</quote>, must be done as the
     72        <quote>Entering the Chroot Environment,</quote> must be done as the
    7373        <systemitem class="username">root</systemitem> user, with the LFS
    7474        environment variable set for the &root; user.</para>
  • chapter05/glibc.xml

    r31a18d02 rf6a43f6  
    171171
    172172    <note><para>There have been reports that this package may fail when
    173     building as a "parallel make".  If that occurs, rerun the make command
    174     with the "-j1" option.</para></note>
     173    building as a <quote>parallel make.</quote>  If that occurs, rerun the make command
     174    with the <option>-j1</option> option.</para></note>
    175175
    176176    <para>Compile the package:</para>
  • chapter06/file.xml

    r31a18d02 rf6a43f6  
    7979<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)</userinput></screen>
    8080
    81 <!-- devs: if using - -build here, the build system wants to compile
    82      the signature file with "file" on the build system, but stops if it is not
    83      the same version. One possibility would be to build "file" on the build
    84      system first, but it is simpler to have the system think it is not
    85      cross-compiling, and use the just built "file". -->
    8681    <para>Compile the package:</para>
    8782
  • chapter07/python.xml

    r31a18d02 rf6a43f6  
    4646    <note>
    4747      <para>There are two package files whose name starts with
    48       <quote>python</quote>. The one to extract from is
     48      <quote>python.</quote> The one to extract from is
    4949      <filename>Python-&python-version;.tar.xz</filename> (notice the
    5050      uppercase first letter).</para>
  • chapter08/coreutils.xml

    r31a18d02 rf6a43f6  
    12621262        <term><command>yes</command></term>
    12631263        <listitem>
    1264           <para>Repeatedly outputs <quote>y</quote>, or a given string, until
     1264          <para>Repeatedly outputs <quote>y,</quote> or a given string, until
    12651265          killed</para>
    12661266          <indexterm zone="ch-system-coreutils yes">
  • chapter08/expect.xml

    r31a18d02 rf6a43f6  
    9393
    9494    <para>If any test fails with the message
    95     <quote><computeroutput>The system has no more ptys.  Ask your system
    96     administrator to create more</computeroutput></quote>, it indicates
     95    <quote><computeroutput>The system has no more ptys. Ask your system
     96    administrator to create more</computeroutput>,</quote> it indicates
    9797    you've not mounted the
    9898    <systemitem class="filesystem">devpts</systemitem> file system
  • chapter08/gmp.xml

    r31a18d02 rf6a43f6  
    5959
    6060      <!-- To editors: the configure script says "the none host is obsolete,
    61            use - -disable-assembly", but don't believe it: with the latter
     61           use - -disable-assembly," but don't believe it: with the latter
    6262           CFLAGS is still automatically set to -march=something.  -->
    6363    </note>
     
    107107    it is built. Occasionally, the code that detects the processor misidentifies
    108108    the system capabilities and there will be errors in the tests or other
    109     applications using the gmp libraries with the message "Illegal
    110     instruction".  In this case, gmp should be reconfigured with the option
     109    applications using the gmp libraries with the message
     110    <computeroutput>Illegal instruction</computeroutput>.
     111    In this case, gmp should be reconfigured with the option
    111112    <option>--host=none-linux-gnu</option> and rebuilt.</para></caution>
    112113
  • chapter08/stripping.xml

    r31a18d02 rf6a43f6  
    5353  and ld-linux.so.2 on 32-bit systems.  The construct below selects the
    5454  correct name for the current architecture, excluding anything ending
    55   with <quote>g</quote>, in case the commands below have already been
     55  with <quote>g,</quote> in case the commands below have already been
    5656  run.</para></note>
    5757
  • chapter09/consoled.xml

    r31a18d02 rf6a43f6  
    3131
    3232  <para>The <filename>/etc/vconsole.conf</filename> file should contain lines
    33   of the form: VARIABLE="value". The following variables are recognized:</para>
     33  of the form: <envar>VARIABLE=value</envar>. The following variables are recognized:</para>
    3434
    3535  <variablelist>
  • chapter09/locale.xml

    r31a18d02 rf6a43f6  
    4040
    4141  <para>Replace <replaceable>&lt;ll&gt;</replaceable> below with the two-letter code
    42   for your desired language (e.g., <quote>en</quote>) and
     42  for your desired language (e.g., <literal>en</literal>) and
    4343  <replaceable>&lt;CC&gt;</replaceable> with the two-letter code for the appropriate
    44   country (e.g., <quote>GB</quote>). <replaceable>&lt;charmap&gt;</replaceable> should
     44  country (e.g., <literal>GB</literal>). <replaceable>&lt;charmap&gt;</replaceable> should
    4545  be replaced with the canonical charmap for your chosen locale. Optional
    46   modifiers such as <quote>@euro</quote> may also be present.</para>
     46  modifiers such as <literal>@euro</literal> may also be present.</para>
    4747
    4848  <para>The list of all locales supported by Glibc can be obtained by running
     
    5252
    5353  <para>Charmaps can have a number of aliases, e.g., <quote>ISO-8859-1</quote>
    54   is also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>.
     54  is also referred to as <quote>iso8859-1</quote> and <quote>iso88591.</quote>
    5555  Some applications cannot handle the various synonyms correctly (e.g., require
    56   that <quote>UTF-8</quote> is written as <quote>UTF-8</quote>, not
    57   <quote>utf8</quote>), so it is the safest in most
     56  that <quote>UTF-8</quote> is written as <literal>UTF-8,</literal> not
     57  <literal>utf8</literal>), so it is the safest in most
    5858  cases to choose the canonical name for a particular locale. To determine
    5959  the canonical name, run the following command, where <replaceable>&lt;locale
     
    6868<screen><computeroutput>ISO-8859-1</computeroutput></screen>
    6969
    70   <para>This results in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.
     70  <para>This results in a final locale setting of <literal>en_GB.ISO-8859-1</literal>.
    7171  It is important that the locale found using the heuristic above is tested prior
    7272  to it being added to the Bash startup files:</para>
     
    9090  Further instructions assume that there are no such error messages from
    9191  Glibc.</para>
    92 
    93   <!-- FIXME: the xlib example will become obsolete in the future.-->
    94   <para>Some packages beyond LFS may also lack support for your chosen locale. One
    95   example is the X library (part of the X Window System), which outputs the
    96   following error message if the locale does not exactly match one of the character
    97   map names in its internal files:</para>
    98 
    99 <screen><computeroutput>Warning: locale not supported by Xlib, locale set to C</computeroutput></screen>
    100 
    101   <para>In several cases Xlib expects that the character map will be listed in
    102   uppercase notation with canonical dashes. For instance, "ISO-8859-1" rather
    103   than "iso88591". It is also  possible to find an appropriate specification by
    104   removing the charmap part of the locale specification.  This can be checked
    105   by running the <command>locale charmap</command> command in both locales.
    106   For example, one would have to change "de_DE.ISO-8859-15@euro" to
    107   "de_DE@euro" in order to get this locale recognized by Xlib.</para>
    10892
    10993  <para>Other packages can also function incorrectly (but may not necessarily
  • chapter09/network.xml

    r31a18d02 rf6a43f6  
    6363    the interfaces up correctly.</para>
    6464
    65     <para>If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the
     65    <para>If the <envar>ONBOOT</envar> variable is set to <literal>yes</literal> the
    6666    System V network script will bring up the Network Interface Card (NIC) during
    67     the system boot process. If set to anything besides <quote>yes</quote>, the NIC
     67    the system boot process. If set to anything besides <literal>yes</literal>, the NIC
    6868    will be ignored by the network script and will not be started automatically.
    6969    Interfaces can be manually started or stopped with the
  • chapter09/networkd.xml

    r31a18d02 rf6a43f6  
    9999        <listitem>
    100100          <para>
    101              Create a manual naming scheme, for example by naming the
    102              interfaces something like "internet0", "dmz0", or "lan0".
    103              To do that, create .link files in /etc/systemd/network/ that
    104              select an explicit name or a better naming scheme for your
    105              network interfaces. For example:
     101            Create a manual naming scheme, for example by naming the
     102            interfaces something like <literal>internet0</literal>,
     103            <literal>dmz0</literal>, or <literal>lan0</literal>.
     104            To do that, create .link files in /etc/systemd/network/ that
     105            select an explicit name or a better naming scheme for your
     106            network interfaces. For example:
    106107          </para>
    107108
  • chapter09/profile.xml

    r31a18d02 rf6a43f6  
    7676
    7777  <para>Charmaps can have a number of aliases, e.g., <quote>ISO-8859-1</quote>
    78   is also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>.
     78  is also referred to as <quote>iso8859-1</quote> and <quote>iso88591.</quote>
    7979  Some applications cannot handle the various synonyms correctly (e.g., require
    80   that <quote>UTF-8</quote> is written as <quote>UTF-8</quote>, not
    81   <quote>utf8</quote>), so it is safest in most
     80  that <quote>UTF-8</quote> is written as <literal>UTF-8</literal>, not
     81  <literal>utf8</literal>), so it is safest in most
    8282  cases to choose the canonical name for a particular locale. To determine
    8383  the canonical name, run the following command, where <replaceable>&lt;locale
     
    9292<screen><computeroutput>ISO-8859-1</computeroutput></screen>
    9393
    94   <para>This results in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.
     94  <para>This results in a final locale setting of <literal>en_GB.ISO-8859-1</literal>.
    9595  It is important that the locale found using the heuristic above is tested before
    9696  it is added to the Bash startup files:</para>
     
    115115  Glibc.</para>
    116116
    117   <!-- FIXME: the xlib example will became obsolete real soon -->
    118   <!--<para>Some packages beyond LFS may also lack support for your chosen locale. One
    119   example is the X library (part of the X Window System), which outputs the
    120   following error message if the locale does not exactly match one of the character
    121   map names in its internal files:</para>
    122 
    123 <screen><computeroutput>Warning: locale not supported by Xlib, locale set to C</computeroutput></screen>
    124 
    125   <para>In several cases Xlib expects that the character map will be listed in
    126   uppercase notation with canonical dashes. For instance, "ISO-8859-1" rather
    127   than "iso88591". It is also  possible to find an appropriate specification by
    128   removing the charmap part of the locale specification.  This can be checked
    129   by running the <command>locale charmap</command> command in both locales.
    130   For example, one would have to change "de_DE.ISO-8859-15@euro" to
    131   "de_DE@euro" in order to get this locale recognized by Xlib.</para>
    132 -->
    133117  <para>Other packages may also function incorrectly (but will not necessarily
    134118  display any error messages) if the locale name does not meet their expectations.
  • chapter09/udev.xml

    r31a18d02 rf6a43f6  
    130130      supported by a module. For example, the <emphasis>snd-fm801</emphasis>
    131131      driver supports PCI devices with vendor ID 0x1319 and device ID 0x0801,
    132       and has an alias of <quote>pci:v00001319d00000801sv*sd*bc04sc01i*</quote>.
     132      and has an alias of <literal>pci:v00001319d00000801sv*sd*bc04sc01i*</literal>.
    133133      For most devices, the bus driver exports the alias of the driver that
    134134      would handle the device via <systemitem
     
    136136      <filename>/sys/bus/pci/devices/0000:00:0d.0/modalias</filename> file
    137137      might contain the string
    138       <quote>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</quote>.
     138      <literal>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</literal>.
    139139      The default rules provided with udev will cause <command>udevd</command>
    140140      to call out to <command>/sbin/modprobe</command> with the contents of the
     
    302302      <para>This is due to the fact that udev, by design, handles uevents and
    303303      loads modules in parallel, and thus in an unpredictable order. This will
    304       never be <quote>fixed</quote>. You should not rely upon the kernel device
     304      never be <quote>fixed.</quote> You should not rely upon the kernel device
    305305      names being stable. Instead, create your own rules that make symlinks with
    306306      stable names based on some stable attributes of the device, such as a
  • chapter09/usage.xml

    r31a18d02 rf6a43f6  
    4949    <note>
    5050       <para>
    51           Classically, run level 2 above was defined as
    52           "multi-user mode without networking", but this was only the case
    53           many years ago when multiple users could connect to a system via
    54           serial ports.  In today's environment it makes no sense, and
    55           we now say it is "reserved".
     51         Classically, run level 2 above was defined as <quote>multi-user
     52         mode without networking,</quote> but this was only the case
     53         many years ago when multiple users could connect to a system via
     54         serial ports.  In today's environment it makes no sense, and
     55         we now say it is <quote>reserved.</quote>
    5656       </para>
    5757    </note>
     
    349349
    350350  <para>The <filename>/etc/sysconfig/console</filename> file should contain lines
    351   of the form: VARIABLE="value". The following variables are recognized:</para>
     351  of the form: <envar>VARIABLE=value</envar>. The following variables are recognized:</para>
    352352  <variablelist>
    353353
     
    357357        <para>This variable specifies the log level for kernel messages sent
    358358        to the console as set by <command>dmesg -n</command>. Valid levels are
    359         from "1" (no messages) to "8". The default level is "7".</para>
     359        from <literal>1</literal> (no messages) to <literal>8</literal>. The default level is <literal>7</literal>, which is quite verbose.</para>
    360360      </listitem>
    361361    </varlistentry>
     
    366366        <para>This variable specifies the arguments for the
    367367        <command>loadkeys</command> program, typically, the name of the keymap
    368         to load, e.g., <quote>it</quote>. If this variable is not set, the
     368        to load, e.g., <literal>it</literal>. If this variable is not set, the
    369369        bootscript will not run the <command>loadkeys</command> program,
    370370        and the default kernel keymap will be used.  Note that a few keymaps
     
    385385        is not completely satisfactory and a small adjustment has to be made. E.g.,
    386386        to include the Euro sign into a keymap that normally doesn't have it,
    387         set this variable to <quote>euro2</quote>.</para>
     387        set this variable to <literal>euro2</literal>.</para>
    388388      </listitem>
    389389    </varlistentry>
     
    394394        <para>This variable specifies the arguments for the
    395395        <command>setfont</command> program. Typically, this includes the font
    396         name, <quote>-m</quote>, and the name of the application character
     396        name, <literal>-m</literal>, and the name of the application character
    397397        map to load. E.g., in order to load the <quote>lat1-16</quote> font
    398398        together with the <quote>8859-1</quote> application character map
    399399        (appropriate in the USA),
    400400        <!-- because of the copyright sign -->
    401         set this variable to <quote>lat1-16 -m 8859-1</quote>.
     401        set this variable to <literal>lat1-16 -m 8859-1</literal>.
    402402        In UTF-8 mode, the kernel uses the application character map to
    403403        convert 8-bit key codes to UTF-8. Therefore
     
    411411      <term>UNICODE</term>
    412412      <listitem>
    413         <para>Set this variable to <quote>1</quote>, <quote>yes</quote>, or
    414         <quote>true</quote> in order to put the
     413        <para>Set this variable to <literal>1</literal>, <literal>yes</literal>, or
     414        <literal>true</literal> in order to put the
    415415        console into UTF-8 mode. This is useful in UTF-8 based locales and
    416416        harmful otherwise.</para>
     
    527527      characters, or two ASCII characters are composed together. However, in
    528528      UTF-8 mode it is a problem; e.g., for the Greek language, where one
    529       sometimes needs to put an accent on the letter <quote>alpha</quote>.
     529      sometimes needs to put an accent on the letter <quote>alpha.</quote>
    530530      The solution is either to avoid the use of UTF-8, or to install the
    531531      X window system, which doesn't have this limitation, in its input
  • chapter10/grub.xml

    r31a18d02 rf6a43f6  
    121121    </note>
    122122
    123 <!-- This does not seem to be true any more
    124     <note><para><application>grub-install</application> is a script and calls another
    125     program, grub-probe, that may fail with a message "cannot stat `/dev/root'".
    126     If so, create a temporary symbolic link from your root partition to /dev/root:</para>
    127 
    128 <screen role="nodump"><userinput>ln -sv /dev/sda2 /dev/root</userinput></screen>
    129 
    130     <para>The symbolic link will only be present until the system is rebooted.
    131     The link is only needed for the installation procedure.
    132     </para></note>
    133 -->
    134123  </sect2>
    135124
  • part3intro/toolchaintechnotes.xml

    r31a18d02 rf6a43f6  
    5757      <varlistentry><term>The build</term><listitem>
    5858        <para>is the machine where we build programs. Note that this machine
    59         is also referred to as the <quote>host</quote>.</para></listitem>
     59        is also referred to as the <quote>host.</quote></para></listitem>
    6060      </varlistentry>
    6161
  • prologue/standards.xml

    r31a18d02 rf6a43f6  
    5050
    5151    <para>While it is possible to create a complete system that will pass the LSB
    52     certification tests "from scratch", this can't be done without many additional packages
     52    certification tests <quote>from scratch,</quote> this can't be done without many additional packages
    5353    that are beyond the scope of the LFS book.  Installation instructions for these
    5454    additional packages can be found in BLFS. </para>
  • prologue/typography.xml

    r31a18d02 rf6a43f6  
    8686  specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
    8787  <command>man passwd</command> will print the first man page it finds that
    88   matches <quote>passwd</quote>, which will be
     88  matches <quote>passwd,</quote> which will be
    8989  <filename>/usr/share/man/man1/passwd.1</filename>. For this example, you will
    9090  need to run <command>man 5 passwd</command> in order to read the page
  • stylesheets/lfs-xsl/lfs.css

    r31a18d02 rf6a43f6  
    11/* Global settings */
    22body {
    3   font-family: verdana, tahoma, helvetica, arial, sans-serif;
     3  font-family: verdana, tahoma, arial, sans-serif;
    44  text-align: left;
    55  background: #fff;
     
    88  padding: 0;
    99  font-size: 1em;
    10   line-height: 1.2em
     10  line-height: 1.2em;
    1111}
    1212
     
    3939}
    4040
    41 
    42 /* Sections */
    43 div.sect1, div.appendix {
    44   padding-left: .3em;
     41/* Section titles */
     42h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1
     43 {
     44  background: #f5f6f7;
     45  border-bottom: .1em solid #dbddec;
     46  margin-bottom:1em;
     47  margin-top: 0;
     48  padding: .4em;
     49}
     50
     51/* Scrolling parts
     52   The header is taller for sect1 and chapter pages than on the
     53   other pages.  Since we want fixed boxes, their top has to be calculated
     54   by trial and errors to fit below the static header box.*/
     55
     56div.sect1, div.chapter, div.appendix, div.wrap {
     57  top: 11.55em;
     58}
     59div.preface, div.part, .index div.index {
     60  top: 10.15em;
     61}
     62div.sect1, div.appendix, div.preface, div.part, div.chapter, div.wrap, .index div.index {
     63/*  padding-left: .3em;*/
     64  overflow:auto;
     65  height: auto;
     66  position: fixed;
     67  left:1em;
     68  right:1em;
     69  bottom: 1em;
     70  border-bottom: 1em solid #dbddec;
    4571}
    4672
     
    6490  border-bottom: 0.2em solid #dbddec;
    6591  padding-top: .1em;
     92/*  margin-top: 0;*/
     93}
     94/*
     95.lfs .package p:first-child {
    6696  margin-top: 0;
    67 }
     97}*/
    6898
    6999.lfs .configuration {
     
    75105  background: #f5f6f7;
    76106  border-top: 0.2em solid #dbddec;
     107  border-bottom: 0.2em solid #dbddec;
    77108  padding-bottom: .1em;
    78   margin-bottom: 0;
    79 }
    80 
     109  margin-bottom: .5em;
     110}
    81111
    82112/* Headers */
     
    97127}
    98128
    99 .preface h1, .part h1, .chapter h1, .appendix h1, .index h1, .sect1 h1, .glossary h1 {
    100   background: #f5f6f7;
    101   border-bottom: .1em solid #dbddec;
    102   margin-bottom: 1em;
    103   margin-top: 0;
    104   padding: .4em;
    105 }
    106 
    107 .sect1 h1, .appendix h1 {
    108   margin-left: -.2em;
    109 }
    110 
    111129.wrap h1 {
    112130  background: #f5f6f7;
     
    158176
    159177div.navheader {
    160   border-bottom: 1px solid #dbddec;
    161    position: sticky;
    162    top: 0;
    163 }
    164 
     178  border-bottom: .1em solid #dbddec;
     179}
     180
     181/* no need for a footer now that the header is always visible */
    165182div.navfooter {
    166   border-top: 1px solid #dbddec;
     183  display:none;
     184}
     185
     186/* Except for the first page (TOC), where the bottom is the only
     187   place where navigation is displayed. */
     188
     189div.book + div.navfooter {
     190  display:block
    167191}
    168192
     
    180204
    181205div.navheader ul, div.navfooter ul {
    182   padding: .2em .5em .5em 0;
     206  padding: .2em .5em .5em .5em; /*top right bottom left*/
    183207  margin: .5em 0;
    184208  position: relative;
     
    197221  text-align: left;
    198222  padding: 0.2em 1em;
    199   margin-left: 6px;
     223  margin-left: .4em;
    200224}
    201225
     
    204228  display: block;
    205229  text-align: right;
    206   right: 5px;
    207   padding: 0.2em 0.5em;
    208   margin-right: 7px;
     230  right: 0;
     231  padding: 0.2em 1em;
     232  margin-right: .4em;
    209233}
    210234
     
    212236div.navheader ul li.next p, div.navfooter ul li.next p {
    213237  padding: 0;
    214   margin: 1px 0px;
     238  margin: .1em 0;
    215239}
    216240
     
    219243  text-align: center;
    220244  padding: 0;
    221   margin: 0px auto;
     245  margin: 0 auto;
    222246  display: block;
    223247  color: #dbddec;
  • stylesheets/lfs-xsl/xhtml/lfs-sections.xsl

    r31a18d02 rf6a43f6  
    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">
     
    4547  </xsl:template>
    4648
     49    <!-- part:
     50         Output non sect1 child elements before the TOC
     51         Output title outside of the <div> because we want to be able to
     52         use it at a fixed position -->
     53    <!-- The original template is in {docbook-xsl}/xhtml/divisions.xsl -->
     54  <xsl:template match="part">
     55    <xsl:call-template name="id.warning"/>
     56
     57    <xsl:call-template name="part.titlepage"/>
     58
     59    <div>
     60      <xsl:apply-templates select="." mode="common.html.attributes"/>
     61      <xsl:call-template name="id.attribute">
     62        <xsl:with-param name="conditional" select="0"/>
     63      </xsl:call-template>
     64
     65      <xsl:apply-templates/>
     66      <xsl:variable name="toc.params">
     67        <xsl:call-template name="find.path.params">
     68          <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
     69        </xsl:call-template>
     70      </xsl:variable>
     71      <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
     72        <xsl:call-template name="division.toc"/>
     73      </xsl:if>
     74    </div>
     75  </xsl:template>
     76
    4777    <!-- chapter:
    48            Output non sect1 child elements before the TOC -->
     78           Output non sect1 child elements before the TOC
     79           Output title before div to be able to fix the title position -->
    4980    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
    5081  <xsl:template match="chapter">
    5182    <xsl:call-template name="id.warning"/>
     83    <xsl:call-template name="chapter.titlepage"/>
     84    <xsl:call-template name="component.separator"/>
    5285    <div>
    5386      <xsl:apply-templates select="." mode="class.attribute"/>
     
    6194        </xsl:attribute>
    6295      </xsl:if>
    63       <xsl:call-template name="component.separator"/>
    64       <xsl:call-template name="chapter.titlepage"/>
    6596      <xsl:apply-templates/>
    6697      <xsl:variable name="toc.params">
     
    79110  </xsl:template>
    80111
     112    <!-- appendix:
     113           Output non sect1 child elements before the TOC
     114           Output title before div to be able to fix the title position -->
     115    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
     116  <xsl:template match="appendix">
     117
     118    <xsl:call-template name="id.warning"/>
     119
     120    <xsl:call-template name="appendix.titlepage"/>
     121
     122    <xsl:element name="div" namespace="http://www.w3.org/1999/xhtml">
     123      <xsl:call-template name="common.html.attributes">
     124        <xsl:with-param name="inherit" select="1"/>
     125      </xsl:call-template>
     126      <xsl:call-template name="id.attribute">
     127        <xsl:with-param name="conditional" select="0"/>
     128      </xsl:call-template>
     129
     130      <xsl:apply-templates/>
     131
     132      <xsl:variable name="toc.params">
     133        <xsl:call-template name="find.path.params">
     134          <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
     135        </xsl:call-template>
     136      </xsl:variable>
     137
     138      <xsl:if test="contains($toc.params, 'toc')">
     139        <xsl:call-template name="component.toc">
     140          <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
     141        </xsl:call-template>
     142      </xsl:if>
     143
     144    </xsl:element>
     145  </xsl:template>
     146
    81147    <!-- sect1:
    82148           When there is a role attibute, use it as the class value.
    83149           Process the SVN keywords found in sect1info as a footnote.
     150           Output title before the containing <div> so that the title
     151           can be at a fixed position.
    84152           Removed unused code. -->
    85153    <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
    86154  <xsl:template match="sect1">
     155    <xsl:call-template name="sect1.titlepage"/>
    87156    <div>
    88157      <xsl:choose>
     
    97166      </xsl:choose>
    98167      <xsl:call-template name="language.attribute"/>
    99       <xsl:call-template name="sect1.titlepage"/>
    100168      <xsl:apply-templates/>
    101169      <xsl:apply-templates select="sect1info" mode="svn-keys"/>
Note: See TracChangeset for help on using the changeset viewer.