forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r526993 [6/6] - in /forrest/trunk/main/webapp/skins: coat/ coat/css/ coat/xslt/fo/ coat/xslt/html/ forrest-site/xslt/fo/ forrest-site/xslt/html/ krysalis-site/ krysalis-site/css/ krysalis-site/xslt/fo/ krysalis-site/xslt/html/ leather-dev/ ...
Date Tue, 10 Apr 2007 01:49:47 GMT
Modified: forrest/trunk/main/webapp/skins/tigris/xslt/html/site-to-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/tigris/xslt/html/site-to-xhtml.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/tigris/xslt/html/site-to-xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/tigris/xslt/html/site-to-xhtml.xsl Mon Apr  9 18:49:44
2007
@@ -33,11 +33,8 @@
 </site>
 
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/site-to-xhtml.xsl"/>
-
   <xsl:template match="site">
     <html>
       <head>
@@ -45,28 +42,29 @@
         <xsl:call-template name="meta-data"/>
         <style type="text/css">
           /* <![CDATA[ */
-          @import "]]><xsl:value-of select="$root"/><![CDATA[skin/tigris.css";
-          @import "]]><xsl:value-of select="$root"/><![CDATA[skin/quirks.css";
-          @import "]]><xsl:value-of select="$root"/><![CDATA[skin/inst.css";
+          @import "]]>
+          <xsl:value-of select="$root"/>
+<![CDATA[skin/tigris.css";
+          @import "]]>
+          <xsl:value-of select="$root"/>
+<![CDATA[skin/quirks.css";
+          @import "]]>
+          <xsl:value-of select="$root"/>
+<![CDATA[skin/inst.css";
          /*  ]]> */
-        </style>
-        <link rel="stylesheet" type="text/css" href="{$root}skin/print.css" media="print"
/>
-        <link rel="stylesheet" type="text/css" href="{$root}skin/forrest.css" />
-        <xsl:if test="$config/favicon-url">
-          <link rel="shortcut icon">
-            <xsl:attribute name="href">
-              <xsl:value-of select="concat($root,$config/favicon-url)"/>
-            </xsl:attribute>
-          </link>
+        </style><link rel="stylesheet" type="text/css" href="{$root}skin/print.css"
media="print" /><link rel="stylesheet" type="text/css" href="{$root}skin/forrest.css"
/>
+        <xsl:if test="$config/favicon-url"><link rel="shortcut icon">
+          <xsl:attribute name="href">
+            <xsl:value-of select="concat($root,$config/favicon-url)"/>
+          </xsl:attribute></link>
         </xsl:if>
-        <script src="{$root}skin/tigris.js" type="text/javascript"></script>
-        <script type="text/javascript" language="javascript" src="{$root}skin/menu.js"></script>
+<script src="{$root}skin/tigris.js" type="text/javascript"></script>
+<script type="text/javascript" language="javascript" src="{$root}skin/menu.js"></script>
         <title><xsl:value-of select="div[@class='content']//div[@id='apphead']/h2/em"/></title>
         <meta http-equiv="Content-style-type" content="text/css" />
       </head>
       <body onload="focus()" class="composite">
-
-        <!--
+<!--
           +=========================+
           |       topstrip          |
           +=========================+
@@ -78,16 +76,14 @@
           |       bottomstrip       |
           +=========================+
         -->
-
         <xsl:call-template name = "topstrip" />
         <xsl:call-template name="centerstrip"/>
         <xsl:call-template name="bottomstrip"/>
       </body>
     </html>
   </xsl:template>
-
   <xsl:template name="topstrip">
-    <!--
+<!--
         +======================================================+
         |+============+    +==============+    | search box |  |
         || group logo |    | project logo |    +============+  |
@@ -100,131 +96,133 @@
     -->
     <div id="banner">
       <table border="0" cellspacing="0" cellpadding="8" width="100%">
-       <tr>
-       <!-- ( ================= Group Logo ================== ) -->
-        <td align="left" >
-          <xsl:if test="$config/group-url">
-            <div><!--<div id="cn">-->
-            <xsl:call-template name="renderlogo">
-              <xsl:with-param name="name" select="$config/group-name"/>
-              <xsl:with-param name="url" select="$config/group-url"/>
-              <xsl:with-param name="logo" select="$config/group-logo"/>
-              <xsl:with-param name="root" select="$root"/>
-            </xsl:call-template>
-            </div>
-            <span class="alt"><xsl:value-of select="$config/group-name"/></span>
-          </xsl:if>
-        </td>
-        <!-- ( ================= Project Logo ================== ) -->
-        <td align="center" >
-         <xsl:if test="$config/project-url">
-           <div>
-            <xsl:call-template name="renderlogo">
-              <xsl:with-param name="name" select="$config/project-name"/>
-              <xsl:with-param name="url" select="$config/project-url"/>
-              <xsl:with-param name="logo" select="$config/project-logo"/>
-              <xsl:with-param name="root" select="$root"/>
-            </xsl:call-template>
-          </div>
-          </xsl:if>
+        <tr>
+<!-- ( ================= Group Logo ================== ) -->
+          <td align="left" >
+            <xsl:if test="$config/group-url">
+              <div>
+<!--<div id="cn">-->
+                <xsl:call-template name="renderlogo">
+                  <xsl:with-param name="name" select="$config/group-name"/>
+                  <xsl:with-param name="url" select="$config/group-url"/>
+                  <xsl:with-param name="logo" select="$config/group-logo"/>
+                  <xsl:with-param name="root" select="$root"/>
+                </xsl:call-template>
+              </div>
+              <span class="alt">
+                <xsl:value-of select="$config/group-name"/>
+              </span>
+            </xsl:if>
+          </td>
+<!-- ( ================= Project Logo ================== ) -->
+          <td align="center" >
+            <xsl:if test="$config/project-url">
+              <div>
+                <xsl:call-template name="renderlogo">
+                  <xsl:with-param name="name" select="$config/project-name"/>
+                  <xsl:with-param name="url" select="$config/project-url"/>
+                  <xsl:with-param name="logo" select="$config/project-logo"/>
+                  <xsl:with-param name="root" select="$root"/>
+                </xsl:call-template>
+              </div>
+            </xsl:if>
           </td>
-        <!-- ( =================  Search ================== ) -->
-	  <td align="right" valign="top">
-	    <xsl:if test="$config/search and not($config/search/@box-location = 'alt')">
-	      <div id="login" align="right" class="right">
-		<xsl:choose>
-		  <xsl:when test="$config/search/@provider = 'lucene'">
-		    <form method="get" action="{$root}{$lucene-search}">
+<!-- ( =================  Search ================== ) -->
+          <td align="right" valign="top">
+            <xsl:if test="$config/search and not($config/search/@box-location = 'alt')">
+              <div id="login" align="right" class="right">
+                <xsl:choose>
+                  <xsl:when test="$config/search/@provider = 'lucene'">
+                    <form method="get" action="{$root}{$lucene-search}">
 		      Search
 		      the <xsl:value-of select="$config/search/@name"/> site
 		      for
 		      <input type="text" id="query" name="queryString" size="15"/>
-		      <input type="submit" value="Go" name="Search"/>
-		    </form>
-		  </xsl:when>
-		  <xsl:otherwise>
-		    <form method="get" action="http://www.google.com/search" target="_blank">
-		      <select name="as_sitesearch">
-			<option value="">Search...</option>
-			<option value="{$config/search/@domain}">The <xsl:value-of select="$config/search/@name"/>
site</option>
-			<option value="">The web</option>
-		      </select> for
+                      <input type="submit" value="Go" name="Search"/>
+                    </form>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <form method="get" action="http://www.google.com/search" target="_blank">
+                      <select name="as_sitesearch">
+                        <option value="">Search...</option>
+                        <option value="{$config/search/@domain}">The <xsl:value-of
select="$config/search/@name"/> site</option>
+                        <option value="">The web</option>
+                      </select> for
 		      <input type="text" id="query" name="as_q" size="15"/>
-		      <input type="submit" value="Go" name="Search"/>
-		    </form>
-		  </xsl:otherwise>
-		</xsl:choose>
-	      </div>
-	    </xsl:if>
-	  </td>
-       </tr>
-      </table>
-     </div>
-
-      <!-- ( ================= Tabs ================== ) -->
-      <xsl:apply-templates select="div[@class='tabs']"/>
-
-      <table id="breadcrumbs" cellspacing="0" cellpadding="0" border="0" width="100%">
-        <tr>
-          <td>
-            <xsl:apply-templates select="div[@class='level2tab']"/>
-          </td>
-          <td>
-            <div align="right">
-              <script language="JavaScript" type="text/javascript"><![CDATA[<!--
-                 document.write("Published: " + document.lastModified);
-                 //  -->]]></script>
-            </div>
+                      <input type="submit" value="Go" name="Search"/>
+                    </form>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </div>
+            </xsl:if>
           </td>
         </tr>
       </table>
-
+    </div>
+<!-- ( ================= Tabs ================== ) -->
+    <xsl:apply-templates select="div[@class='tabs']"/>
+    <table id="breadcrumbs" cellspacing="0" cellpadding="0" border="0" width="100%">
+      <tr>
+        <td>
+          <xsl:apply-templates select="div[@class='level2tab']"/>
+        </td>
+        <td>
+          <div align="right">
+<script language="JavaScript" type="text/javascript"><![CDATA[<!--
+                 document.write("Published: " + document.lastModified);
+                 //  -->]]></script>
+          </div>
+        </td>
+      </tr>
+    </table>
   </xsl:template>
-
   <xsl:template match="td[@class='tasknav']/div[@align='left']" >
     <xsl:call-template name="breadcrumbs"/>
   </xsl:template>
-
-  <!-- Generates the TXT link -->
+<!-- Generates the TXT link -->
   <xsl:template match="div[@id='skinconf-txtlink']">
     <xsl:if test="not($config/disable-txt-link) or $disable-txt-link = 'false'">
       <div class="txtlink" title="Text Format"><a href="{$filename-noext}.txt" class="dida">
-        <img class="skin" src="{$skin-img-dir}/txtdoc.gif" alt="TXT -icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/txtdoc.gif" alt="TXT -icon" />
+        <br/>
         TXT</a>
       </div>
     </xsl:if>
   </xsl:template>
-  <!-- Generates the PDF link -->
+<!-- Generates the PDF link -->
   <xsl:template match="div[@id='skinconf-pdflink']">
     <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">
       <div class="pdflink" title="Portable Document Format"><a href="{$filename-noext}.pdf"
class="dida">
-        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF -icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF -icon" />
+        <br/>
         PDF</a>
       </div>
     </xsl:if>
   </xsl:template>
-  <!-- Generates the XML link -->
+<!-- Generates the XML link -->
   <xsl:template match="div[@id='skinconf-xmllink']">
     <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'">
       <div class="xmllink" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
-        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" />
+        <br/>
         XML</a>
       </div>
     </xsl:if>
   </xsl:template>
-  <!-- generates the pod link -->
+<!-- generates the pod link -->
   <xsl:template match="div[@id='skinconf-podlink']">
     <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'">
       <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod"
class="dida">
-        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" />
+        <br/>
         POD</a>
       </div>
     </xsl:if>
   </xsl:template>
-  <!-- Generates the "printer friendly version" link -->
+<!-- Generates the "printer friendly version" link -->
   <xsl:template match="div[@id='skinconf-printlink']">
     <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">
-        <script type="text/javascript" language="Javascript">
+<script type="text/javascript" language="Javascript">
 function printit() {
   if (window.print) {
     window.focus();
@@ -232,8 +230,7 @@
   }
 }
         </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) {
@@ -247,9 +244,8 @@
         </script>
     </xsl:if>
   </xsl:template>
-
   <xsl:template name="centerstrip" >
-   <!--
+<!--
      +=========+======================+
      |         |                      |
      |         |                      |
@@ -264,204 +260,203 @@
     -->
     <table border="0" cellspacing="0" cellpadding="4" width="100%" id="main">
       <tr valign="top">
-        <!-- ( =================  Menu  ================== ) -->
+<!-- ( =================  Menu  ================== ) -->
         <td id="leftcol" width="20%">
-          <!-- If we have any menu items, draw a menu -->
+<!-- If we have any menu items, draw a menu -->
           <xsl:if test="div[@class='menu']">
             <xsl:call-template name="menu"/>
           </xsl:if>
           <div class="strut">&#160;</div>
         </td>
-        <!-- ( =================  Main Area  ================== ) -->
-        <!--<td valign="top" width="100%">-->
+<!-- ( =================  Main Area  ================== ) -->
+<!--<td valign="top" width="100%">-->
         <td>
-           <xsl:call-template name="mainarea"/>
+          <xsl:call-template name="mainarea"/>
         </td>
       </tr>
     </table>
   </xsl:template>
-
   <xsl:template name="menu">
     <div id="navcolumn">
-    <!--
+<!--
     projecttools
     admfun
     searchbox
     helptext
     -->
-    <!-- ( ================= start Menu items ================== ) -->
-    <div id="projecttools" class="toolgroup">
-      <div class="label">
-        <strong>Section</strong>
-      </div>
-      <xsl:apply-templates select="div[@class='menu']"/>
-
-      <xsl:if test="$config/toc/@max-depth > 0
+<!-- ( ================= start Menu items ================== ) -->
+      <div id="projecttools" class="toolgroup">
+        <div class="label"><strong>Section</strong>
+        </div>
+        <xsl:apply-templates select="div[@class='menu']"/>
+        <xsl:if test="$config/toc/@max-depth > 0
           and contains($minitoc-location,'menu')
           and count(//tocitems/tocitem) >= $config/toc/@min-sections">
-        <xsl:if test="//tocitems/tocitem">
-          <div class="label">
-             <strong>Page</strong>
-          </div>
-          <div class="body">
-            <!-- Only show first level sections here -->
-            <xsl:for-each select = "//tocitems/tocitem[@level=1]">
-              <div>
-                <xsl:choose>
-                  <xsl:when test="string-length(@title)>15">
-                    <a href="{@href}" title="{@title}"><xsl:value-of select="substring(@title,0,20)"
/>...</a>
-                  </xsl:when>
-                  <xsl:otherwise>
-                    <a href="{@href}"><xsl:value-of select="@title" /></a>
-                  </xsl:otherwise>
-                </xsl:choose>
-              </div>
-            </xsl:for-each>
-          </div>
+          <xsl:if test="//tocitems/tocitem">
+            <div class="label"><strong>Page</strong>
+            </div>
+            <div class="body">
+<!-- Only show first level sections here -->
+              <xsl:for-each select = "//tocitems/tocitem[@level=1]">
+                <div>
+                  <xsl:choose>
+                    <xsl:when test="string-length(@title)>15"><a href="{@href}"
title="{@title}">
+                      <xsl:value-of select="substring(@title,0,20)" />...</a>
+                    </xsl:when>
+                    <xsl:otherwise><a href="{@href}">
+                      <xsl:value-of select="@title" /></a>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </div>
+              </xsl:for-each>
+            </div>
+          </xsl:if>
         </xsl:if>
-      </xsl:if>
-    </div>
-
-    <!-- ( ================= end Menu items ================== ) -->
-
-    <!-- ( =================  Search ================== ) -->
+      </div>
+<!-- ( ================= end Menu items ================== ) -->
+<!-- ( =================  Search ================== ) -->
       <xsl:if test="$config/search and ($config/search/@box-location = 'alt' or $config/search/@box-location
= 'all')">
-	<xsl:choose>
-	  <!-- Lucene search -->
-	  <xsl:when test="$config/search/@provider = 'lucene'">
-	    <form action="{$root}{$lucene-search}" method="get">
-	      <div id="searchbox" class="toolgroup">
-		<div class="label"><strong>Search</strong></div>
-		<div class="body">
-		  <div>
-		    <xsl:value-of select="$config/search/@name"/>
-		  </div>
-		  <div>
-		    <input type="text" id="query" name="queryString" size="12" />
-		    <input type="submit" value="Go" name="Go" />
-		  </div>
-		</div>
-	      </div>
-	    </form>
-	  </xsl:when>
-	  <xsl:otherwise>
-	    <!-- Google search -->
-	    <form action="http://www.google.com/search" method="get" target="_blank">
-	      <div id="searchbox" class="toolgroup">
-		<div class="label"><strong>Search</strong></div>
-		<div class="body">
-		  <div>
-		    <select name="as_sitesearch">
-		      <option value="{$config/search/@domain}" selected="selected"><xsl:value-of
select="$config/search/@name"/></option>
-		      <option value="" >the web</option>
-		    </select>
-		  </div>
-		  <div>
-		    <input type="text" id="query" name="as_q" size="12" />
-		    <input type="submit" value="Go" name="Go" />
-		  </div>
-		</div>
-	      </div>
-	    </form>
-	  </xsl:otherwise>
-	</xsl:choose>
+        <xsl:choose>
+<!-- Lucene search -->
+          <xsl:when test="$config/search/@provider = 'lucene'">
+            <form action="{$root}{$lucene-search}" method="get">
+              <div id="searchbox" class="toolgroup">
+                <div class="label"><strong>Search</strong>
+                </div>
+                <div class="body">
+                  <div>
+                    <xsl:value-of select="$config/search/@name"/>
+                  </div>
+                  <div>
+                    <input type="text" id="query" name="queryString" size="12" />
+                    <input type="submit" value="Go" name="Go" />
+                  </div>
+                </div>
+              </div>
+            </form>
+          </xsl:when>
+          <xsl:otherwise>
+<!-- Google search -->
+            <form action="http://www.google.com/search" method="get" target="_blank">
+              <div id="searchbox" class="toolgroup">
+                <div class="label"><strong>Search</strong>
+                </div>
+                <div class="body">
+                  <div>
+                    <select name="as_sitesearch">
+                      <option value="{$config/search/@domain}" selected="selected">
+                        <xsl:value-of select="$config/search/@name"/>
+                      </option>
+                      <option value="" >the web</option>
+                    </select>
+                  </div>
+                  <div>
+                    <input type="text" id="query" name="as_q" size="12" />
+                    <input type="submit" value="Go" name="Go" />
+                  </div>
+                </div>
+              </div>
+            </form>
+          </xsl:otherwise>
+        </xsl:choose>
       </xsl:if>
-
-
- 	<xsl:if test="$filename = 'index.html' and $config/credits">
-      <div id="admfun" class="toolgroup">
-        <div class="label">
-         <strong>Credits</strong>
-        </div>
-        <div class="body">
-    <table>
-		        <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
-		          <xsl:variable name="name" select="name"/>
-		          <xsl:variable name="url" select="url"/>
-		          <xsl:variable name="image" select="image"/>
-		          <xsl:variable name="width" select="width"/>
-		          <xsl:variable name="height" select="height"/>
-		          <tr>
-		            <td></td>
-		            <td colspan="4" height="5" class="logos">
-		              <a href="{$url}">
-		                <img alt="{$name} - logo" title="{$name}" border="0">
-		                  <xsl:attribute name="src">
-		                    <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of
select="$root"/></xsl:if>
-		                    <xsl:value-of select="$image"/>
-		                  </xsl:attribute>
-		                  <xsl:if test="$width"><xsl:attribute name="width"><xsl:value-of
select="$width"/></xsl:attribute></xsl:if>
-		                  <xsl:if test="$height"><xsl:attribute name="height"><xsl:value-of
select="$height"/></xsl:attribute></xsl:if>
-		                </img>
-		              </a>
-		            </td>
-		          </tr>
-		        </xsl:for-each>
+      <xsl:if test="$filename = 'index.html' and $config/credits">
+        <div id="admfun" class="toolgroup">
+          <div class="label"><strong>Credits</strong>
+          </div>
+          <div class="body">
+            <table>
+              <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
+                <xsl:variable name="name" select="name"/>
+                <xsl:variable name="url" select="url"/>
+                <xsl:variable name="image" select="image"/>
+                <xsl:variable name="width" select="width"/>
+                <xsl:variable name="height" select="height"/>
+                <tr>
+                  <td></td>
+                  <td colspan="4" height="5" class="logos"><a href="{$url}">
+                    <img alt="{$name} - logo" title="{$name}" border="0">
+                      <xsl:attribute name="src">
+                        <xsl:if test="not(starts-with($image, 'http://'))">
+                          <xsl:value-of select="$root"/>
+                        </xsl:if>
+                        <xsl:value-of select="$image"/>
+                      </xsl:attribute>
+                      <xsl:if test="$width">
+                        <xsl:attribute name="width">
+                          <xsl:value-of select="$width"/>
+                        </xsl:attribute>
+                      </xsl:if>
+                      <xsl:if test="$height">
+                        <xsl:attribute name="height">
+                          <xsl:value-of select="$height"/>
+                        </xsl:attribute>
+                      </xsl:if>
+                    </img></a>
+                  </td>
+                </tr>
+              </xsl:for-each>
             </table>
+          </div>
         </div>
-      </div>
-    </xsl:if>
-  </div>
+      </xsl:if>
+    </div>
   </xsl:template>
-
   <xsl:template name="mainarea">
-      <xsl:apply-templates select="div[@class='content']"/>
+    <xsl:apply-templates select="div[@class='content']"/>
   </xsl:template>
-
   <xsl:template name="bottomstrip">
-    <!-- ( ================= start Footer ================== ) -->
-  <div id="footer">
-   <table border="0" cellspacing="0" cellpadding="4">
-    <tr>
-     <xsl:if test="$config/host-logo and not($config/host-logo = '')">
-        <td>
-            <xsl:call-template name="renderlogo">
-              <xsl:with-param name="name" select="$config/host-name"/>
-              <xsl:with-param name="url" select="$config/host-url"/>
-              <xsl:with-param name="logo" select="$config/host-logo"/>
-              <xsl:with-param name="root" select="$root"/>
-            </xsl:call-template>
-        </td>
-    </xsl:if>
-     <td>
-      <xsl:choose>
-        <xsl:when test="$config/copyright-link">
-          <a>
-            <xsl:attribute name="href">
-              <xsl:value-of select="$config/copyright-link"/>
-            </xsl:attribute>
+<!-- ( ================= start Footer ================== ) -->
+    <div id="footer">
+      <table border="0" cellspacing="0" cellpadding="4">
+        <tr>
+          <xsl:if test="$config/host-logo and not($config/host-logo = '')">
+            <td>
+              <xsl:call-template name="renderlogo">
+                <xsl:with-param name="name" select="$config/host-name"/>
+                <xsl:with-param name="url" select="$config/host-url"/>
+                <xsl:with-param name="logo" select="$config/host-logo"/>
+                <xsl:with-param name="root" select="$root"/>
+              </xsl:call-template>
+            </td>
+          </xsl:if>
+          <td>
+            <xsl:choose>
+              <xsl:when test="$config/copyright-link"><a>
+                <xsl:attribute name="href">
+                  <xsl:value-of select="$config/copyright-link"/>
+                </xsl:attribute>
           Copyright &#169; <xsl:value-of select="$config/year"/>
-          <xsl:text> </xsl:text>
-          <xsl:value-of select="$config/vendor"/>
-          </a>
-        </xsl:when>
-        <xsl:otherwise>
+<xsl:text> </xsl:text>
+                <xsl:value-of select="$config/vendor"/></a>
+              </xsl:when>
+              <xsl:otherwise>
           Copyright &#169; <xsl:value-of select="$config/year"/>
-          <xsl:text> </xsl:text>
-          <xsl:value-of select="$config/vendor"/>
-        </xsl:otherwise>
-      </xsl:choose>
+<xsl:text> </xsl:text>
+                <xsl:value-of select="$config/vendor"/>
+              </xsl:otherwise>
+            </xsl:choose>
       All rights reserved.
-            <br/><script language="JavaScript" type="text/javascript"><![CDATA[<!--
+            <br/>
+<script language="JavaScript" type="text/javascript"><![CDATA[<!--
               document.write(" - "+"Last Published: " + document.lastModified);
               //  -->]]></script>
-      <xsl:if test="$config/feedback">
-        <xsl:call-template name="feedback"/>
-      </xsl:if>
-     </td>
-    <td class="footerLogos" nowrap="nowrap">
-          <xsl:call-template name="compliancy-logos"/>
-          <xsl:call-template name="bottom-credit-icons"/>
-    </td>
-    </tr>
-   </table>
-  </div>
-   <!-- ( ================= end Footer ================== ) -->
+            <xsl:if test="$config/feedback">
+              <xsl:call-template name="feedback"/>
+            </xsl:if>
+          </td>
+          <td class="footerLogos" nowrap="nowrap">
+            <xsl:call-template name="compliancy-logos"/>
+            <xsl:call-template name="bottom-credit-icons"/>
+          </td>
+        </tr>
+      </table>
+    </div>
+<!-- ( ================= end Footer ================== ) -->
   </xsl:template>
-
   <xsl:template name="bottom-credit-icons">
-      <!-- old place where to put credits icons-->
-      <!--
+<!-- old place where to put credits icons-->
+<!--
       <xsl:if test="$filename = 'index.html' and $config/credits">
         <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
           <xsl:variable name="name" select="name"/>
@@ -483,5 +478,4 @@
       </xsl:if>
       -->
   </xsl:template>
-
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/tigris/xslt/html/tab-to-menu.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/tigris/xslt/html/tab-to-menu.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/tigris/xslt/html/tab-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/tigris/xslt/html/tab-to-menu.xsl Mon Apr  9 18:49:44 2007
@@ -38,13 +38,11 @@
 
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/tab-to-menu.xsl"/>
-
   <xsl:template match="tabs">
     <div class="tabs" id="toptabs">
-     <table cellpadding="4" cellspacing="0" border="0">
-       <tr>
+      <table cellpadding="4" cellspacing="0" border="0">
+        <tr>
           <xsl:call-template name="base-tabs"/>
         </tr>
       </table>
@@ -55,35 +53,28 @@
       </div>
     </xsl:if>
   </xsl:template>
-
   <xsl:template name="pre-separator"/>
   <xsl:template name="post-separator"/>
   <xsl:template name="separator"/>
   <xsl:template name="level2-pre-separator"/>
   <xsl:template name="level2-post-separator"/>
-
   <xsl:template name="level2-separator">
-    <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
   </xsl:template>
-
   <xsl:template name="selected">
     <th>
       <xsl:call-template name="base-selected"/>
     </th>
   </xsl:template>
-
   <xsl:template name="not-selected">
     <td>
       <xsl:call-template name="base-selected"/>
     </td>
   </xsl:template>
-
   <xsl:template name="level2-selected">
-     <xsl:call-template name="base-selected"/>
+    <xsl:call-template name="base-selected"/>
   </xsl:template>
-
   <xsl:template name="level2-not-selected">
-     <xsl:call-template name="base-not-selected"/>
+    <xsl:call-template name="base-not-selected"/>
   </xsl:template>
-
 </xsl:stylesheet>



Mime
View raw message