Changeset 3fe8b511 for stylesheets/xhtml


Ignore:
Timestamp:
01/07/2005 05:14:15 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
d8dc77a
Parents:
bad8b53
Message:

Update stylesheets and fix Python references

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

Location:
stylesheets/xhtml
Files:
2 added
5 edited

Legend:

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

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    75                version="1.0">
    86
    9         <!-- Use graphics in admonitions -->
     7    <!-- Use graphics in admonitions -->
    108  <xsl:param name="admon.graphics" select="1"/>
    119  <xsl:param name="admon.graphics.path">../images/</xsl:param>
    1210  <xsl:param name="admon.graphics.extension" select="'.png'"/>
    1311
    14         <!-- Changing the output tagging -->
     12    <!-- Changing the output tagging -->
    1513  <xsl:template name="graphical.admonition">
    1614    <xsl:variable name="admon.type">
     
    2422      </xsl:choose>
    2523    </xsl:variable>
    26     <div class="admonition">
    27         <div class ="admonhead">
    28         <img alt="[{$admon.type}]">
     24    <xsl:variable name="alt">
     25      <xsl:call-template name="gentext">
     26        <xsl:with-param name="key" select="$admon.type"/>
     27      </xsl:call-template>
     28    </xsl:variable>
     29    <div class="{name(.)}">
     30      <div class ="admonhead">
     31        <img alt="[{$alt}]">
    2932          <xsl:attribute name="src">
    3033            <xsl:call-template name="admon.graphic"/>
    3134          </xsl:attribute>
    3235        </img>
    33         <h3 class="{name(.)}">
    34           <xsl:value-of select="$admon.type"/>
    35           <xsl:if test="title">
    36             <xsl:text>: </xsl:text>
    37             <xsl:value-of select="title"/>
    38           </xsl:if>
     36        <h3 class="admontitle">
     37          <xsl:apply-templates select="." mode="object.title.markup"/>
    3938        </h3>
    4039      </div>
    4140      <div class="admonbody">
    42                                 <xsl:apply-templates/>
     41        <xsl:apply-templates/>
    4342      </div>
    4443    </div>
  • stylesheets/xhtml/lfs-legalnotice.xsl

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    75                version="1.0">
    86
    9         <!-- Generating the page -->
    10 
     7    <!-- Generating the page -->
    118  <xsl:template match="legalnotice" mode="titlepage.mode">
    129    <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     
    3027              <xsl:apply-templates mode="titlepage.mode"/>
    3128            </div>
    32             <hr/>
    3329            <div class="navfooter">
    3430              <ul class="footerlinks">
    35                 <li>
     31                <li class="home">
    3632                  <a accesskey="h">
    3733                    <xsl:attribute name="href">
    38                       <xsl:text>../index.html</xsl:text>
     34                      <xsl:text>index.html</xsl:text>
    3935                    </xsl:attribute>
    40                     <xsl:text>Home</xsl:text>
     36                    <xsl:attribute name="title">
     37                      <xsl:value-of select="/book/bookinfo/title"/>
     38                      <xsl:text> - </xsl:text>
     39                      <xsl:value-of select="/book/bookinfo/subtitle"/>
     40                    </xsl:attribute>
     41                    <xsl:call-template name="navig.content">
     42                      <xsl:with-param name="direction" select="'home'"/>
     43                    </xsl:call-template>
    4144                  </a>
    4245                </li>
  • stylesheets/xhtml/lfs-mixed.xsl

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    75                version="1.0">
    86
     7    <!-- screen -->
    98  <xsl:template match="screen">
    109    <xsl:choose>
    11                 <!-- Temporally hack -->
    12 <!-- Broke userinput   <xsl:when test="child::* = userinput">
    13         <pre class="{name(.)}">
    14            <kbd class="command">
    15             <xsl:value-of select="."/>
    16           </kbd>
     10      <xsl:when test="child::* = userinput">
     11        <pre class="userinput">
     12            <xsl:apply-templates/>
    1713        </pre>
    18       </xsl:when> -->
    19       <!-- This should be fixed in the XML code -->
    20      
    21       <xsl:when test="contains(text() , 'SBU')">
    22         <p class="sbu">
    23           <tt>
    24             <xsl:value-of select="substring-before(text() , 'R')"/>
    25             <br/>
    26             <xsl:value-of select="substring-after(text() , 'U')"/>
    27           </tt>
    28         </p>
    2914      </xsl:when>
    30      
    3115      <xsl:otherwise>
    3216        <pre class="{name(.)}">
     
    3620    </xsl:choose>
    3721  </xsl:template>
     22 
     23    <!-- userinput -->
     24  <xsl:template match="userinput">
     25    <xsl:choose>
     26      <xsl:when test="ancestor::screen">
     27        <kbd class="command">
     28          <xsl:apply-templates/>
     29        </kbd>
     30      </xsl:when>
     31      <xsl:otherwise>
     32        <xsl:apply-imports/>
     33      </xsl:otherwise>
     34    </xsl:choose>
     35  </xsl:template>
     36
     37    <!-- Body attributes -->
     38  <xsl:template name="body.attributes">
     39    <xsl:attribute name="id">
     40      <xsl:text>blfs</xsl:text>
     41    </xsl:attribute>
     42    <xsl:attribute name="class">
     43      <xsl:value-of select="substring-after(/book/bookinfo/subtitle, ' ')"/>
     44    </xsl:attribute>
     45  </xsl:template>
     46
     47    <!-- External URLs in italic font -->
     48  <xsl:template match="ulink" name="ulink">
     49    <a>
     50      <xsl:if test="@id">
     51        <xsl:attribute name="id">
     52          <xsl:value-of select="@id"/>
     53        </xsl:attribute>
     54      </xsl:if>
     55      <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
     56       <strong>
     57        <xsl:choose>
     58          <xsl:when test="count(child::node())=0">
     59            <xsl:value-of select="@url"/>
     60          </xsl:when>
     61          <xsl:otherwise>
     62            <xsl:apply-templates/>
     63          </xsl:otherwise>
     64        </xsl:choose>
     65      </strong>
     66    </a>
     67  </xsl:template>
     68 
     69    <!-- The <code> xhtml tag have look issues in some browsers, like Konqueror and.
     70      isn't semantically correct (a filename isn't a code fragment) We will use <tt> for now. -->
     71  <xsl:template name="inline.monoseq">
     72    <xsl:param name="content">
     73      <xsl:call-template name="anchor"/>
     74      <xsl:call-template name="simple.xlink">
     75        <xsl:with-param name="content">
     76          <xsl:apply-templates/>
     77        </xsl:with-param>
     78      </xsl:call-template>
     79    </xsl:param>
     80    <tt class="{local-name(.)}">
     81      <xsl:if test="@dir">
     82        <xsl:attribute name="dir">
     83          <xsl:value-of select="@dir"/>
     84        </xsl:attribute>
     85      </xsl:if>
     86      <xsl:copy-of select="$content"/>
     87    </tt>
     88  </xsl:template>
     89 
     90  <xsl:template name="inline.boldmonoseq">
     91    <xsl:param name="content">
     92      <xsl:call-template name="anchor"/>
     93      <xsl:call-template name="simple.xlink">
     94        <xsl:with-param name="content">
     95          <xsl:apply-templates/>
     96        </xsl:with-param>
     97      </xsl:call-template>
     98    </xsl:param>
     99    <!-- don't put <strong> inside figure, example, or table titles -->
     100    <!-- or other titles that may already be represented with <strong>'s. -->
     101    <xsl:choose>
     102      <xsl:when test="local-name(..) = 'title' and (local-name(../..) = 'figure'
     103              or local-name(../..) = 'example' or local-name(../..) = 'table' or local-name(../..) = 'formalpara')">
     104        <tt class="{local-name(.)}">
     105          <xsl:if test="@dir">
     106            <xsl:attribute name="dir">
     107              <xsl:value-of select="@dir"/>
     108            </xsl:attribute>
     109          </xsl:if>
     110          <xsl:copy-of select="$content"/>
     111        </tt>
     112      </xsl:when>
     113      <xsl:otherwise>
     114        <strong class="{local-name(.)}">
     115          <tt>
     116            <xsl:if test="@dir">
     117              <xsl:attribute name="dir">
     118                <xsl:value-of select="@dir"/>
     119              </xsl:attribute>
     120            </xsl:if>
     121            <xsl:copy-of select="$content"/>
     122          </tt>
     123        </strong>
     124      </xsl:otherwise>
     125    </xsl:choose>
     126  </xsl:template>
     127 
     128  <xsl:template name="inline.italicmonoseq">
     129    <xsl:param name="content">
     130      <xsl:call-template name="anchor"/>
     131      <xsl:call-template name="simple.xlink">
     132        <xsl:with-param name="content">
     133          <xsl:apply-templates/>
     134        </xsl:with-param>
     135      </xsl:call-template>
     136    </xsl:param>
     137    <em class="{local-name(.)}">
     138      <tt>
     139        <xsl:if test="@dir">
     140          <xsl:attribute name="dir">
     141            <xsl:value-of select="@dir"/>
     142          </xsl:attribute>
     143        </xsl:if>
     144        <xsl:copy-of select="$content"/>
     145      </tt>
     146    </em>
     147  </xsl:template>
    38148
    39149</xsl:stylesheet>
  • stylesheets/xhtml/lfs-navigational.xsl

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    4 <!-- Updates by Bruce Dubbs <bdubbs@linuxfromscratch.org> -->
    52
    63<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    1714  </xsl:template>
    1815
    19         <!-- Header Navigation-->
     16    <!-- Header Navigation-->
    2017  <xsl:template name="header.navigation">
    2118    <xsl:param name="prev" select="/foo"/>
     
    3027        <xsl:if test="$home != .">
    3128          <div class="headertitles">
    32             <p>
    33               <xsl:apply-templates select="$home" mode="object.title.markup"/>
    34               <xsl:text> &#8211; </xsl:text> <!-- ndash -->
     29            <h4>
     30              <xsl:text>Beyond Linux From Scratch - </xsl:text>
    3531              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
    36             </p>
     32            </h4>
    3733            <xsl:if test="$up != $home">
    38               <p><b>
     34              <h3>
    3935                <xsl:apply-templates select="$up" mode="object.title.markup"/>
    40               </b></p>
     36              </h3>
    4137            </xsl:if>
    4238          </div>
    4339        </xsl:if>
    44         <div class="headerlinks">
    45           <div class='prev'>
    46             <xsl:if test="count($prev)&gt;0 and $prev != $home">
     40        <ul class="headerlinks">
     41          <xsl:if test="count($prev)&gt;0 and $prev != $home">
     42            <li class="prev">
    4743              <a accesskey="p">
    4844                <xsl:attribute name="href">
     
    5147                  </xsl:call-template>
    5248                </xsl:attribute>
    53                 <xsl:text>Prev</xsl:text>
    54               </a>
    55             </xsl:if>
    56           <xsl:text>&#160;</xsl:text></div>  <!-- nbsp -->
    57           <div class='next'><xsl:text>&#160;</xsl:text>
    58             <xsl:if test="count($next)&gt;0">
     49                <xsl:attribute name="title">
     50                  <xsl:value-of select="$prev/title"/>
     51                </xsl:attribute>
     52                <xsl:call-template name="navig.content">
     53                  <xsl:with-param name="direction" select="'prev'"/>
     54                </xsl:call-template>
     55              </a>
     56              <p>
     57                <xsl:value-of select="$prev/title"/>
     58              </p>
     59            </li>
     60          </xsl:if>
     61          <xsl:if test="count($next)&gt;0">
     62            <li class="next">
    5963              <a accesskey="n">
    6064                <xsl:attribute name="href">
     
    6367                  </xsl:call-template>
    6468                </xsl:attribute>
    65                 <xsl:text>Next</xsl:text>
    66               </a>
    67             </xsl:if>
    68           </div>
    69           <div class='home'>
     69                <xsl:attribute name="title">
     70                  <xsl:choose>
     71                    <xsl:when test="local-name($next)='index'">
     72                      <xsl:call-template name="gentext">
     73                        <xsl:with-param name="key">Index</xsl:with-param>
     74                      </xsl:call-template>
     75                    </xsl:when>
     76                    <xsl:otherwise>
     77                      <xsl:value-of select="$next/title"/>
     78                    </xsl:otherwise>
     79                  </xsl:choose>
     80                </xsl:attribute>
     81                <xsl:call-template name="navig.content">
     82                  <xsl:with-param name="direction" select="'next'"/>
     83                </xsl:call-template>
     84              </a>
     85              <p>
     86                <xsl:choose>
     87                  <xsl:when test="local-name($next)='index'">
     88                    <xsl:call-template name="gentext">
     89                      <xsl:with-param name="key">Index</xsl:with-param>
     90                    </xsl:call-template>
     91                  </xsl:when>
     92                  <xsl:otherwise>
     93                    <xsl:value-of select="$next/title"/>
     94                  </xsl:otherwise>
     95                </xsl:choose>
     96              </p>
     97            </li>
     98          </xsl:if>
     99            <li class="up">
     100              <xsl:if test="count($up)&gt;0 and $up != $home">
     101                <a accesskey="u">
     102                  <xsl:attribute name="href">
     103                    <xsl:call-template name="href.target">
     104                      <xsl:with-param name="object" select="$up"/>
     105                    </xsl:call-template>
     106                  </xsl:attribute>
     107                  <xsl:attribute name="title">
     108                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
     109                  </xsl:attribute>
     110                  <xsl:call-template name="navig.content">
     111                    <xsl:with-param name="direction" select="'up'"/>
     112                  </xsl:call-template>
     113                </a>
     114              </xsl:if>
     115              <xsl:text>.</xsl:text>
     116            </li>
     117          <li class="home">
    70118            <a accesskey="h">
    71119              <xsl:attribute name="href">
     
    74122                </xsl:call-template>
    75123              </xsl:attribute>
    76               <xsl:text>Home</xsl:text>
     124                <xsl:attribute name="title">
     125                  <xsl:value-of select="$home/bookinfo/title"/>
     126                  <xsl:text> - </xsl:text>
     127                  <xsl:value-of select="$home/bookinfo/subtitle"/>
     128                </xsl:attribute>
     129                <xsl:call-template name="navig.content">
     130                  <xsl:with-param name="direction" select="'home'"/>
     131                </xsl:call-template>
    77132            </a>
    78           </div>
    79         </div>
     133          </li>
     134        </ul>
    80135      </div>
    81136    </xsl:if>
    82137  </xsl:template>
    83138
    84         <!-- Footer Navigation-->
     139    <!-- Footer Navigation-->
    85140  <xsl:template name="footer.navigation">
    86141    <xsl:param name="prev" select="/foo"/>
     
    93148    <xsl:if test="$row">
    94149      <div class="navfooter">
    95           <div class='prev'>
    96             <xsl:if test="count($prev)&gt;0 and $prev != $home">
     150        <ul>
     151          <xsl:if test="count($prev)&gt;0 and $prev != $home">
     152            <li class="prev">
    97153              <a accesskey="p">
    98154                <xsl:attribute name="href">
     
    101157                  </xsl:call-template>
    102158                </xsl:attribute>
    103                 <xsl:text>Prev</xsl:text>
    104               </a><br/>
    105               <!-- <xsl:text> </xsl:text> -->
    106               <xsl:apply-templates select="$prev" mode="object.title.markup"/>
    107             </xsl:if>
    108             <xsl:text>&#160;</xsl:text>
    109           </div> <!-- nbsp -->
    110           <div class='next'><xsl:text>&#160;</xsl:text>
     159                <xsl:attribute name="title">
     160                  <xsl:value-of select="$prev/title"/>
     161                </xsl:attribute>
     162                <xsl:call-template name="navig.content">
     163                  <xsl:with-param name="direction" select="'prev'"/>
     164                </xsl:call-template>
     165              </a>
     166              <p>
     167                <xsl:value-of select="$prev/title"/>
     168              </p>
     169            </li>
     170          </xsl:if>
    111171          <xsl:if test="count($next)&gt;0">
     172            <li class="next">
    112173              <a accesskey="n">
    113174                <xsl:attribute name="href">
     
    116177                  </xsl:call-template>
    117178                </xsl:attribute>
    118                 <xsl:text>Next</xsl:text>
    119               </a><br/>
    120               <!-- <xsl:text> </xsl:text> -->
    121               <xsl:apply-templates select="$next" mode="object.title.markup"/>
    122             </xsl:if>
    123           </div>
    124           <xsl:if test="count($up)&gt;0 and $up != $home">
    125             <div class='up'>
    126               <a accesskey="u">
    127                 <xsl:attribute name="href">
    128                   <xsl:call-template name="href.target">
    129                     <xsl:with-param name="object" select="$up"/>
    130                   </xsl:call-template>
    131                 </xsl:attribute>
    132                 <xsl:text>Up</xsl:text>
    133               </a>
    134             </div>
    135           </xsl:if>
    136           <div class='home'>
    137             <xsl:if  test="$home != .">
    138               <a accesskey="h">
    139                 <xsl:attribute name="href">
    140                   <xsl:call-template name="href.target">
    141                     <xsl:with-param name="object" select="$home"/>
    142                   </xsl:call-template>
    143                 </xsl:attribute>
    144                 <xsl:text>Home</xsl:text>
    145               </a>
    146             </xsl:if>
    147           </div>
     179                <xsl:attribute name="title">
     180                  <xsl:choose>
     181                    <xsl:when test="local-name($next)='index'">
     182                      <xsl:call-template name="gentext">
     183                        <xsl:with-param name="key">Index</xsl:with-param>
     184                      </xsl:call-template>
     185                    </xsl:when>
     186                    <xsl:otherwise>
     187                      <xsl:value-of select="$next/title"/>
     188                    </xsl:otherwise>
     189                  </xsl:choose>
     190                </xsl:attribute>
     191                <xsl:call-template name="navig.content">
     192                  <xsl:with-param name="direction" select="'next'"/>
     193                </xsl:call-template>
     194              </a>
     195              <p>
     196                <xsl:choose>
     197                  <xsl:when test="local-name($next)='index'">
     198                    <xsl:call-template name="gentext">
     199                      <xsl:with-param name="key">Index</xsl:with-param>
     200                    </xsl:call-template>
     201                  </xsl:when>
     202                  <xsl:otherwise>
     203                    <xsl:value-of select="$next/title"/>
     204                  </xsl:otherwise>
     205                </xsl:choose>
     206              </p>
     207            </li>
     208          </xsl:if>
     209            <li class="up">
     210              <xsl:if test="count($up)&gt;0 and $up != $home">
     211                <a accesskey="u">
     212                  <xsl:attribute name="href">
     213                    <xsl:call-template name="href.target">
     214                      <xsl:with-param name="object" select="$up"/>
     215                    </xsl:call-template>
     216                  </xsl:attribute>
     217                  <xsl:attribute name="title">
     218                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
     219                  </xsl:attribute>
     220                  <xsl:call-template name="navig.content">
     221                    <xsl:with-param name="direction" select="'up'"/>
     222                  </xsl:call-template>
     223                </a>
     224              </xsl:if>
     225              <xsl:text>.</xsl:text>
     226            </li>
     227            <li class="home">
     228              <xsl:if  test="$home != .">
     229                <a accesskey="h">
     230                  <xsl:attribute name="href">
     231                    <xsl:call-template name="href.target">
     232                      <xsl:with-param name="object" select="$home"/>
     233                    </xsl:call-template>
     234                  </xsl:attribute>
     235                  <xsl:attribute name="title">
     236                    <xsl:value-of select="$home/bookinfo/title"/>
     237                    <xsl:text> - </xsl:text>
     238                    <xsl:value-of select="$home/bookinfo/subtitle"/>
     239                  </xsl:attribute>
     240                  <xsl:call-template name="navig.content">
     241                    <xsl:with-param name="direction" select="'home'"/>
     242                  </xsl:call-template>
     243                </a>
     244              </xsl:if>
     245              <xsl:text>.</xsl:text>
     246            </li>
     247        </ul>
    148248      </div>
    149249    </xsl:if>
  • stylesheets/xhtml/lfs-titles.xsl

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9- Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    97  <xsl:template name="part.titlepage">
    108    <div class="titlepage">
     9      <xsl:if test="@id">
     10        <a id="{@id}" name="{@id}"/>
     11      </xsl:if>
    1112      <h1 class="{name(.)}">
    1213        <xsl:value-of select="title"/>
     
    1718  <xsl:template name="chapter.titlepage">
    1819    <div class="titlepage">
     20      <xsl:if test="@id">
     21        <a id="{@id}" name="{@id}"/>
     22      </xsl:if>
    1923      <h1 class="{name(.)}">
    2024        <xsl:value-of select="title"/>
     
    2529  <xsl:template name="preface.titlepage">
    2630    <div class="titlepage">
     31      <xsl:if test="@id">
     32        <a id="{@id}" name="{@id}"/>
     33      </xsl:if>
     34      <h1 class="{name(.)}">
     35        <xsl:value-of select="title"/>
     36      </h1>
     37    </div>
     38  </xsl:template>
     39
     40  <xsl:template name="appendix.titlepage">
     41    <div class="titlepage">
     42      <xsl:if test="@id">
     43        <a id="{@id}" name="{@id}"/>
     44      </xsl:if>
    2745      <h1 class="{name(.)}">
    2846        <xsl:value-of select="title"/>
     
    3250
    3351  <xsl:template name="sect1.titlepage">
    34     <xsl:choose>
    35                 <!-- I should find a better test -->
    36       <xsl:when test="position() = 4">
    37         <div class="titlepage">
    38           <xsl:if test="@id">
    39             <a id="{@id}" name="{@id}"/>
    40           </xsl:if>
    41           <h2 class="{name(.)}">
    42             <xsl:value-of select="title"/>
    43           </h2>
    44         </div>
    45       </xsl:when>
    46       <xsl:otherwise>
    47         <div class="titlepage">
    48           <h1 class="{name(.)}">
    49             <xsl:value-of select="title"/>
    50           </h1>
    51         </div>
    52       </xsl:otherwise>
    53     </xsl:choose>
     52    <div class="titlepage">
     53      <xsl:if test="@id">
     54        <a id="{@id}" name="{@id}"/>
     55      </xsl:if>
     56      <h1 class="{name(.)}">
     57        <xsl:value-of select="title"/>
     58      </h1>
     59    </div>
    5460  </xsl:template>
    5561
     
    6268            <a id="{@id}" name="{@id}"/>
    6369          </xsl:if>
    64           <h3 class="{name(.)}">
     70          <h2 class="{name(.)}">
    6571            <xsl:value-of select="title"/>
    66           </h3>
     72          </h2>
    6773        </div>
    6874      </xsl:otherwise>
     
    7884  </xsl:template>
    7985
     86    <!-- Added the role param for proper punctuation in xref calls. -->
     87  <xsl:template match="*" mode="insert.title.markup">
     88    <xsl:param name="purpose"/>
     89    <xsl:param name="xrefstyle"/>
     90    <xsl:param name="title"/>
     91    <xsl:param name="role"/>
     92    <xsl:choose>
     93      <xsl:when test="$purpose = 'xref' and titleabbrev">
     94        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     95      </xsl:when>
     96      <xsl:otherwise>
     97        <xsl:copy-of select="$title"/>
     98        <xsl:value-of select="$role"/>
     99      </xsl:otherwise>
     100    </xsl:choose>
     101  </xsl:template>
     102
    80103</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.