forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/forrest-site/css page.css
Date Sat, 06 Sep 2003 14:10:41 GMT
jefft       2003/09/06 07:10:41

  Modified:    src/resources/skins/common/xslt/html document2html.xsl
               src/resources/skins/forrest-site/css page.css
  Log:
  - Move author attribution down to the bottom, like krysalis-site does.
  - Better <version> handling, including parsing of CVS $Revision$ tags to
    extract the version
  
  Revision  Changes    Path
  1.26      +23 -31    xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- document2html.xsl	6 Sep 2003 12:32:41 -0000	1.25
  +++ document2html.xsl	6 Sep 2003 14:10:41 -0000	1.26
  @@ -105,34 +105,31 @@
     <!-- Generates the "printer friendly version" link -->
     <xsl:template name="printlink">
       <xsl:if test="$disable-print-link = 'false'"> 
  -    
   <script type="text/javascript" language="Javascript">
  -
  -function printit(){  
  +function printit() {  
   if (window.print) {
       window.print() ;  
   } else {
  -    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
  +    var WebBrowser = '&lt;OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">&lt;/OBJECT>';
   document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
       WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML
= "";  
   }
   }
   </script>
  -            
   
  -<script type="text/javascript" language="Javascript">  
  +<script type="text/javascript" language="Javascript">
   var NS = (navigator.appName == "Netscape");
   var VERSION = parseInt(navigator.appVersion);
   if (VERSION > 3) {
  -    document.write('<td align="center" width="40" nowrap="nowrap">');     
  -    document.write('  <a href="javascript:printit()" class="dida">');        
  -    document.write('    <img class="skin" src="{$skin-img-dir}/printer.gif" alt="Print
this Page"/><br/>');   
  -    document.write('  print</a>');   
  -    document.write('</td>');           
  +    document.write('<td align="center" width="40" nowrap="nowrap">');
  +    document.write('  <a href="javascript:printit()" class="dida">');
  +    document.write('    <img class="skin" src="{$skin-img-dir}/printer.gif" alt="Print
this Page"/><br />');
  +    document.write('  print</a>');
  +    document.write('</td>');
   }
   </script>
   
  -    </xsl:if>
  +</xsl:if>
     </xsl:template>
   
     <!-- Generates the PDF link -->
  @@ -212,10 +209,7 @@
           <xsl:choose>
             <xsl:when test="local-name() = 'note'">Note</xsl:when>
             <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
  -          <xsl:otherwise>Fixme (
  -               <xsl:value-of select="@author"/>
  -
  -               )</xsl:otherwise>
  +          <xsl:otherwise>Fixme (<xsl:value-of select="@author"/>)</xsl:otherwise>
           </xsl:choose>
         </div>
         <div class="content">
  @@ -341,26 +335,23 @@
     <xsl:template name="minitoc">  
       <xsl:param name="tocroot"/>
       <xsl:param name="depth"/>     
  -    <xsl:if test="count($tocroot/section) > 0">
  -      <ul class="minitoc">
  -        <xsl:for-each select="$tocroot/section">
  -          <li>
  -            <xsl:call-template name="toclink"/>
  -            <xsl:if test="$depth&lt;$max-depth">
  -              <xsl:call-template name="minitoc">
  -                <xsl:with-param name="tocroot" select="."/>
  -                <xsl:with-param name="depth" select="$depth + 1"/>          
  -              </xsl:call-template>
  -            </xsl:if>      
  -          </li>
  -        </xsl:for-each>
  -      </ul>
  -    </xsl:if>
  +    <ul class="minitoc">
  +      <xsl:for-each select="$tocroot/section">
  +        <xsl:call-template name="toclink"/>
  +        <xsl:if test="$depth&lt;$max-depth">
  +          <xsl:call-template name="minitoc">
  +            <xsl:with-param name="tocroot" select="."/>
  +            <xsl:with-param name="depth" select="$depth + 1"/>          
  +          </xsl:call-template>
  +        </xsl:if>      
  +      </xsl:for-each>
  +    </ul>
     </xsl:template>
   
     <xsl:template name="toclink">
       <xsl:variable name="tocitem" select="normalize-space(title)"/>
       <xsl:if test="string-length($tocitem)>0">
  +      <li>
         <a>
           <xsl:attribute name="href">
             <xsl:text>#</xsl:text>
  @@ -370,6 +361,7 @@
           </xsl:attribute>
           <xsl:value-of select="$tocitem"/>
         </a>
  +      </li>
       </xsl:if>
     </xsl:template>
     
  
  
  
  1.16      +1 -0      xml-forrest/src/resources/skins/forrest-site/css/page.css
  
  Index: page.css
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/forrest-site/css/page.css,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- page.css	2 Sep 2003 22:35:36 -0000	1.15
  +++ page.css	6 Sep 2003 14:10:41 -0000	1.16
  @@ -38,6 +38,7 @@
   .content .ForrestTable caption { text-align: left; color: black; font-weight: bold; }
   .content .ForrestTable th { text-align: center; }
   .content .ForrestTable td { background-color: #f0f0ff; color: black; }
  +.content .attribution { text-align: right; font-style: italic; font-size: 90% }
   
   .frame { margin: 5px 20px 5px 20px; font-size: 90%; }
   .frame .content { margin: 0px; }
  
  
  

Mime
View raw message