Changeset 8166

Show
Ignore:
Timestamp:
06/14/07 14:39:49 (1 year ago)
Author:
manuel
Message:

Cleaned XHTML nochunked output code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/new-xsl/lfs-nochunks.xsl

    r8138 r8166  
    5858    <!-- The original template is in {docbook-xsl}/xhtml/admon.xsl --> 
    5959  <xsl:template name="nongraphical.admonition"> 
    60     <div class="{name(.)}"> 
    61       <div class ="admonhead"> 
    62         <h3 class="admontitle"> 
    63           <xsl:apply-templates select="." mode="object.title.markup"/> 
    64         </h3> 
    65       </div> 
    66       <div class="admonbody"> 
    67         <xsl:apply-templates/> 
    68       </div> 
     60    <div class="admon {name(.)}"> 
     61      <h3> 
     62        <xsl:apply-templates select="." mode="object.title.markup"/> 
     63      </h3> 
     64      <xsl:apply-templates/> 
    6965    </div> 
    7066  </xsl:template> 
     
    7975      <xsl:when test="string-length(title) = 0"/> 
    8076      <xsl:otherwise> 
    81         <div class="titlepage"> 
     77        <h3 class="{name(.)}"> 
    8278          <xsl:if test="@id"> 
    8379            <a id="{@id}" name="{@id}"/> 
    8480          </xsl:if> 
    85           <h3 class="{name(.)}"> 
    86             <xsl:if test="not(ancestor::preface) and $section.autolabel != 0"> 
    87               <xsl:apply-templates select="." mode="label.markup"/> 
    88               <xsl:text>. </xsl:text> 
    89             </xsl:if> 
    90             <xsl:value-of select="title"/> 
    91           </h3> 
    92         </div> 
     81          <xsl:if test="not(ancestor::preface) and $section.autolabel != 0"> 
     82            <xsl:apply-templates select="." mode="label.markup"/> 
     83            <xsl:text>. </xsl:text> 
     84          </xsl:if> 
     85          <xsl:value-of select="title"/> 
     86        </h3> 
    9387      </xsl:otherwise> 
    9488    </xsl:choose> 
     
    143137} 
    144138 
    145 div.dedication .titlepage { 
    146   background: #fff; 
    147 
    148  
    149 div.dedication p { 
    150   padding-left: 2em; 
     139div.dedication { 
     140  padding-left: 1em; 
    151141} 
    152142 
     
    305295} 
    306296 
    307 .lfs .item + .indexref { 
    308     margin-left: 18em
    309 } 
    310  
    311 .lfs .secitem + .indexref { 
    312     margin-left: 17em; 
    313 } 
    314  
    315 .blfs .indexref { 
    316     margin-left: 26em; 
     297.indexref { 
     298    display: block
     299} 
     300 
     301.item + .indexref { 
     302    margin-left: 30em; 
     303} 
     304 
     305.secitem + .indexref { 
     306    margin-left: 31em; 
    317307} 
    318308 
    319309 
    320310/* Admonitions */ 
     311div.admon h3 { 
     312  padding-left: 2.5em; 
     313  padding-top: 1em; 
     314} 
     315 
     316div.admon p { 
     317  margin-left: .5em; 
     318} 
     319 
     320div.admon pre { 
     321  margin: 0.5em 3em; 
     322} 
     323 
    321324div.note, div.tip { 
    322325  background-color: #fffff6; 
     
    338341} 
    339342 
    340 div.admonhead h3 { 
    341   padding-left: 2.5em; 
    342   padding-top: 1em; 
    343 } 
    344  
    345 div.admonbody { 
    346   margin: .5em; 
    347 } 
    348  
    349343div.important em, div.warning em, div.caution em { 
    350344  color: #000; 
     
    370364} 
    371365 
    372 div.revhistory { 
     366.revhistory { 
    373367  padding-left: 1em; 
    374368} 
    375369 
    376 div.revhistory th { 
     370.revhistory th { 
    377371  line-height: 2em; 
    378372  text-align: left; 
    379373} 
    380374 
    381 div.revhistory td { 
     375.revhistory td { 
    382376  padding-right: 1em; 
    383377}