james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r124521 - /james/server/trunk/src/xdocs/stylesheet.css /james/server/trunk/src/xdocs/stylesheets/project.xml /james/server/trunk/src/xdocs/stylesheets/site.xsl
Date Fri, 07 Jan 2005 15:56:32 GMT
Author: danny
Date: Fri Jan  7 07:56:30 2005
New Revision: 124521

URL: http://svn.apache.org/viewcvs?view=rev&rev=124521
Log:
Changed site to 3 column version (like www.apache.org but retaining james' style)
Modified:
   james/server/trunk/src/xdocs/stylesheet.css
   james/server/trunk/src/xdocs/stylesheets/project.xml
   james/server/trunk/src/xdocs/stylesheets/site.xsl

Modified: james/server/trunk/src/xdocs/stylesheet.css
Url: http://svn.apache.org/viewcvs/james/server/trunk/src/xdocs/stylesheet.css?view=diff&rev=124521&p1=james/server/trunk/src/xdocs/stylesheet.css&r1=124520&p2=james/server/trunk/src/xdocs/stylesheet.css&r2=124521
==============================================================================
--- james/server/trunk/src/xdocs/stylesheet.css	(original)
+++ james/server/trunk/src/xdocs/stylesheet.css	Fri Jan  7 07:56:30 2005
@@ -2,9 +2,151 @@
 td {  font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 90%  }
 strong {  font-weight: bold;}
 p {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90% }
-a {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90% }
+a {
+	font-family: Verdana, Arial, Helvetica, sans-serif;
+	font-size: 90%;
+}
 h3 {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100% }
-li {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90% }
+li {
+	font-family: Verdana, Arial, Helvetica, sans-serif;
+	font-size: 90%;
+}
 
 table {  border-style: none}
 td {  border-style: none}
+.section-header {
+	border: thin solid #525D76;
+	background-color: #525D76;
+	color: #FFFFFF;
+
+
+}
+.subsection-header {
+	border: thin solid #828DA6;
+	color: #FFFFFF;
+	background-color: #828DA6;
+
+
+
+
+}
+.source {
+	left: 4em;
+	border: 1px solid #000066;
+	white-space: pre;
+	font-family: "Courier New", Courier, mono;
+	padding: 0ex 2ex 2ex 2ex;
+	margin: 0ex;
+
+
+
+}
+.left-navbar {
+	padding-right: 1ex;
+	padding-left: 1ex;
+	border-top: 1px none #CCCCCC;
+	border-right: 1px none #CCCCCC;
+	border-bottom: 1px none #CCCCCC;
+	border-left: 1px none #CCCCCC;
+
+
+}
+li a {
+	font-family: Verdana, Arial, Helvetica, sans-serif;
+	font-size: 90%;
+        color: #333333;
+}
+p a {
+	font-family: Verdana, Arial, Helvetica, sans-serif;
+	font-size: 90%;
+        color: #333333;
+}
+.right-navbar {
+	padding-left: 1ex;
+	padding-right: 1ex;
+	border-top: 1px none #CCCCCC;
+	border-right: 1px none #CCCCCC;
+	border-bottom: 1px none #CCCCCC;
+	border-left: 1px none #CCCCCC;
+
+
+
+
+}
+ul {
+	list-style-position: inside;
+	margin: 0em 0em 0em 0px;
+	padding: 0em 0em 0em 0px;
+	list-style-type: square;
+
+
+}
+.section-body {
+	padding-left: 1em;
+	margin-bottom: 1em;
+	border-top-width: 1px;
+	border-right-width: 1px;
+	border-bottom-width: 1px;
+	border-left-width: 1px;
+	border-top-style: none;
+	border-right-style: solid;
+	border-bottom-style: none;
+	border-left-style: solid;
+	border-top-color: #CCCCCC;
+	border-right-color: #CCCCCC;
+	border-bottom-color: #CCCCCC;
+	border-left-color: #CCCCCC;
+	padding-right: 1ex;
+	text-align: justify;
+
+
+
+
+}
+.subsection-body {
+	padding-left: 1em;
+	margin-bottom: 1em;
+	border-top-width: 1px;
+	border-right-width: 1px;
+	border-bottom-width: 1px;
+	border-left-width: 1px;
+	border-top-style: none;
+	border-right-style: none;
+	border-bottom-style: none;
+	border-left-style: none;
+	border-top-color: #CCCCCC;
+	border-right-color: #CCCCCC;
+	border-bottom-color: #CCCCCC;
+	border-left-color: #CCCCCC;
+	text-align: justify;
+
+
+
+}
+pre {
+
+
+	left: 4em;
+	border: 1px solid #000066;
+	white-space: pre;
+	font-family: "Courier New", Courier, mono;
+	padding: 0ex 2ex 2ex 2ex;
+	margin: 0ex;
+}
+.detail-table-header {
+	font-weight: bold;
+	color: #FFFFFF;
+	background-color: #666666;
+	vertical-align: text-bottom;
+	text-align: center;
+}
+.detail-table-content {
+	border: 1px solid #CCCCCC;
+	font-family: Verdana;
+	font-size: 90%;
+	margin: 2px;
+	padding: 0px 4px;
+
+
+
+}

Modified: james/server/trunk/src/xdocs/stylesheets/project.xml
Url: http://svn.apache.org/viewcvs/james/server/trunk/src/xdocs/stylesheets/project.xml?view=diff&rev=124521&p1=james/server/trunk/src/xdocs/stylesheets/project.xml&r1=124520&p2=james/server/trunk/src/xdocs/stylesheets/project.xml&r2=124521
==============================================================================
--- james/server/trunk/src/xdocs/stylesheets/project.xml	(original)
+++ james/server/trunk/src/xdocs/stylesheets/project.xml	Fri Jan  7 07:56:30 2005
@@ -1,47 +1,51 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<project name="James" href="http://james.apache.org">
-  <title>Java Mail and News server, SMTP POP3 NNTP</title>
+<site name="James Site" href="http://james.apache.org/">
+  <title>Apache James - Mail and News server</title>
   <logo href="/images/james-logo.jpg">James - Java Apache Mail Enterprise Server</logo>
   <body>
-    <menu name="James">
-      <item name="Overview" href="/index.html"/>
-      <item name="James FAQ" href="/FAQ.html"/>
-      <item name="Mailing Lists" href="/mail.html"/>
-      <item name="Wiki" href="http://wiki.apache.org/james"/>
-    </menu>
-    <menu name="Downloads">
-      <item name="Current Release(s)" href="http://james.apache.org/download.cgi"/>
-    </menu>
-    <menu name="Documentation">
-      <item name="James 2.x Documentation" href="/documentation_2_1.html"/>
-      <item name="Design objectives" href="/design_objectives.html"/>
-      <item name="James Javadocs" href="/javadocs/index.html"/>
-      <item name="Mailet Javadocs" href="/mailet/index.html"/>
-      <item name="Useful RFCs" href="/rfclist.html"/>
-      <item name="Older Document Archive" href="/document_archive.html"/>
-    </menu>
-    <menu name="Project">
-      <item name="Bug Database " href="http://issues.apache.org/jira/browse/JAMES"/>
-      <item name="Subversion Repositories" href="http://svn.apache.org/"/>
-      <item name="Who We Are" href="/weare.html"/>
-      <item name="How Can I Contribute?" href="/contribute.html"/>
-      <item name="Coding Standards" href="/code-standards.html"/>
-      <item name="License" href="/license.html"/>
-      <item name="Changelog" href="/changelog.html"/>
-      <item name="TODO" href="/todo.html"/>
-    </menu>
-    <menu name="Translated">
-      <item name="Japanese (web)" href="http://james.terra-intl.com/"/>
-    </menu>
-    <menu name="Related Projects">
-      <item name="Jakarta" href="http://jakarta.apache.org/index.html"/>
-      <item name="Ant" href="http://ant.apache.org/index.html"/>
-      <item name="Avalon" href="http://avalon.apache.org/index.html"/>
-    </menu>
-    <menu name="Useful Information">
-      <item name="Get Involved" href="http://jakarta.apache.org/site/getinvolved.html"/>
-      <item name="Reference Library" href="http://jakarta.apache.org/site/library.html"/>
-      <item name="Apache" href="http://apache.org/foundation/faq.html"/>
-    </menu>
+    <navbar name="lhs">
+      <menu name="James">
+        <item name="Overview" href="/index.html"/>
+        <item name="James FAQ" href="/FAQ.html"/>
+        <item name="Mailing Lists" href="/mail.html"/>
+        <item name="Wiki" href="http://wiki.apache.org/james"/>
+      </menu>
+      <menu name="Downloads">
+        <item name="Releases" href="http://james.apache.org/download.cgi"/>
+      </menu>
+      <menu name="Documentation">
+        <item name="James 2.X" href="/documentation_2_1.html"/>
+        <item name="Design" href="/design_objectives.html"/>
+        <item name="James Javadocs" href="/javadocs/index.html"/>
+        <item name="Mailet Javadocs" href="/mailet/index.html"/>
+        <item name="Useful RFCs" href="/rfclist.html"/>
+        <item name="Document Archive" href="/document_archive.html"/>
+      </menu>
+    </navbar>
+    <navbar name="rhs">
+      <menu name="Project">
+        <item name="Bug Database " href="http://issues.apache.org/jira/browse/JAMES"/>
+        <item name="Source Code" href="http://svn.apache.org/"/>
+        <item name="Who We Are" href="/weare.html"/>
+        <item name="Contributing" href="/contribute.html"/>
+        <item name="Standards" href="/code-standards.html"/>
+        <item name="License" href="/license.html"/>
+        <item name="Changelog" href="/changelog.html"/>
+        <item name="TODO" href="/todo.html"/>
+      </menu>
+      <menu name="Translated">
+        <item name="Japanese (web)" href="http://james.terra-intl.com/"/>
+      </menu>
+      <menu name="Related Projects">
+        <item name="Jakarta" href="http://jakarta.apache.org/index.html"/>
+        <item name="Ant" href="http://ant.apache.org/index.html"/>
+        <item name="Avalon" href="http://avalon.apache.org/index.html"/>
+      </menu>
+      <menu name="Useful Information">
+        <item name="Get Involved" href="http://jakarta.apache.org/site/getinvolved.html"/>
+        <item name="Reference Library" href="http://jakarta.apache.org/site/library.html"/>
+        <item name="Apache" href="http://apache.org/foundation/faq.html"/>
+      </menu>
+    </navbar>
   </body>
-</project>
+</site>

Modified: james/server/trunk/src/xdocs/stylesheets/site.xsl
Url: http://svn.apache.org/viewcvs/james/server/trunk/src/xdocs/stylesheets/site.xsl?view=diff&rev=124521&p1=james/server/trunk/src/xdocs/stylesheets/site.xsl&r1=124520&p2=james/server/trunk/src/xdocs/stylesheets/site.xsl&r2=124521
==============================================================================
--- james/server/trunk/src/xdocs/stylesheets/site.xsl	(original)
+++ james/server/trunk/src/xdocs/stylesheets/site.xsl	Fri Jan  7 07:56:30 2005
@@ -2,93 +2,61 @@
 <!-- Content Stylesheet for "jakarta-site2" Documentation -->
 <!-- NOTE:  Changes here should also be reflected in "site.vsl" and vice
      versa, so either Anakia or XSLT can be used for document generation.   -->
-
-
 <!-- Outstanding Compatibility Issues (with Anakia-based stylesheets):
 
 * Handling of the <image> element to insert relative path prefixes
 
-* Functional equivalent of "site_printable.vsl" not yet started.
-
 -->
-
-
 <!-- $Id$ -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  version="1.0">
-
-
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <!-- Output method -->
-  <xsl:output method="html"
-            encoding="iso-8859-1"
-              indent="yes"/>
-
-
+  <xsl:output method="xhtml" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0
Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>
   <!-- Defined parameters (overrideable) -->
-  <xsl:param    name="relative-path" select="'.'"/>
-
+  <xsl:param name="relative-path" select="'.'"/>
   <!-- Defined variables (non-overrideable) -->
-  <xsl:variable name="body-bg"       select="'#ffffff'"/>
-  <xsl:variable name="body-fg"       select="'#000000'"/>
-  <xsl:variable name="body-link"     select="'#525D76'"/>
-  <xsl:variable name="banner-bg"     select="'#525D76'"/>
-  <xsl:variable name="banner-fg"     select="'#ffffff'"/>
-  <xsl:variable name="sub-banner-bg" select="'#828DA6'"/>
-  <xsl:variable name="sub-banner-fg" select="'#ffffff'"/>
-  <xsl:variable name="table-th-bg"   select="'#039acc'"/>
-  <xsl:variable name="table-td-bg"   select="'#a0ddf0'"/>
-  <xsl:variable name="source-color"  select="'#023264'"/>
-
-
   <!-- Process an entire document into an HTML page -->
   <xsl:template match="document">
-    <xsl:variable name="project"
-                select="document('project.xml')/project"/>
-
+    <xsl:variable name="site" select="document('project.xml')/site"/>
     <html>
-    <head>
-    <xsl:apply-templates select="meta"/>
-    <title>Apache James - <xsl:value-of select="properties/title"/> - <xsl:value-of
select="$project/title"/></title>
-    <xsl:for-each select="properties/author">
-      <xsl:variable name="name">
-        <xsl:value-of select="."/>
-      </xsl:variable>
-      <xsl:variable name="email">
-        <xsl:value-of select="@email"/>
-      </xsl:variable>
-      <meta name="author" value="{$name}"/>
-      <meta name="email" value="{$email}"/>
-    </xsl:for-each>
-<meta name="keywords" content="mail,email,news,SMTP,POP3,NNTP,IMAP,MAILET,JAVA,WINDOWS,LINUX,server,Windows,2k,NT,98,ME,XP,Linux."/>
-<meta name="description" content="Free (Open Source) Java mail server (mailserver) from
Apache. Providing SMTP POP3 IMAP and News NNTP runs on Microsoft Windows 2k,NT,98,ME,XP, and
most flavours of Linux."/>
-<meta name="ROBOTS" content="ALL"/>
-
-    <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style" />
-    </head>
-
-    <body bgcolor="{$body-bg}" text="{$body-fg}" link="{$body-link}"
-          alink="{$body-link}" vlink="{$body-link}">
-
-    <table border="0" width="100%" cellspacing="4">
-
-      <xsl:comment>PAGE HEADER</xsl:comment>
-      <tr><td colspan="2">
-
-        <xsl:comment>ASF LOGO</xsl:comment>
+      <head>
+        <xsl:apply-templates select="meta"/>
+        <title>
+          <xsl:value-of select="$site/title"/> - <xsl:value-of select="properties/title"/>
+        </title>
+        <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style" />
+        <xsl:for-each select="properties/author">
+          <xsl:variable name="name">
+            <xsl:value-of select="."/>
+          </xsl:variable>
+          <xsl:variable name="email">
+            <xsl:value-of select="@email"/>
+          </xsl:variable>
+          <meta name="author" value="{$name}"/>
+          <meta name="email" value="{$email}"/>
+        </xsl:for-each>
+        <xsl:if test="properties/base">
+          <base href="{properties/base/@href}"/>
+        </xsl:if>
+      </head>
+      <body>
+        <table class="page-header" border="0" width="100%" cellspacing="0">
+          <xsl:comment>PAGE HEADER</xsl:comment>
+          <tr>
+            <td colspan="2">
+              <xsl:comment>ASF LOGO</xsl:comment>
         <a href="http://www.apache.org/">
           <img src="http://www.apache.org/images/asf_logo_wide.gif"
              align="left" alt="The ASF" border="0"/>
         </a>
-        <xsl:if test="$project/logo">
+        <xsl:if test="$site/logo">
           <xsl:variable name="alt">
-            <xsl:value-of select="$project/logo"/>
+            <xsl:value-of select="$site/logo"/>
           </xsl:variable>
           <xsl:variable name="home">
-            <xsl:value-of select="$project/@href"/>
+            <xsl:value-of select="$site/@href"/>
           </xsl:variable>
           <xsl:variable name="src">
-            <xsl:value-of select="$project/logo/@href"/>
+            <xsl:value-of select="$site/logo/@href"/>
           </xsl:variable>
 
           <xsl:comment>PROJECT LOGO</xsl:comment>
@@ -97,187 +65,170 @@
           </a>
         </xsl:if>
 
-      </td></tr>
-
-      <xsl:comment>HEADER SEPARATOR</xsl:comment>
-      <tr>
-        <td colspan="2">
-          <hr noshade="" size="1"/>
-        </td>
-      </tr>
-
-      <tr>
-
-        <xsl:comment>LEFT SIDE NAVIGATION</xsl:comment>
-        <td width="20%" valign="top" nowrap="true">
-          <!-- A HREF="http://www.apachecon.com/2004/US/index.html"><img border="0"
src="http://www.apache.org/images/ac2004_170x100.gif"/></A -->
-          <xsl:apply-templates select="$project/body/menu"/>
-        </td>
-
-        <xsl:comment>RIGHT SIDE MAIN BODY</xsl:comment>
-        <td width="80%" valign="top" align="left">
-          <xsl:apply-templates select="body/section"/>
-        </td>
-
-      </tr>
-
-      <xsl:comment>FOOTER SEPARATOR</xsl:comment>
-      <tr>
-        <td colspan="2">
-          <hr noshade="" size="1"/>
-        </td>
-      </tr>
-
-      <xsl:comment>PAGE FOOTER</xsl:comment>
-      <tr><td colspan="2">
-        <div align="center"><font color="{$body-link}" size="-1"><em>
-        Copyright &#169; 1999-2005, Apache Software Foundation
-        </em></font></div>
-      </td></tr>
-
-    </table>
-    </body>
+            </td>
+          </tr>
+        </table>
+        <table border="0" width="100%" cellspacing="4">
+          <tr>
+            <xsl:comment>LEFT SIDE NAVIGATION</xsl:comment>
+            <td class="left-navbar" valign="top" nowrap="true">
+              <xsl:apply-templates select="$site/body/navbar[@name='lhs']"/>
+            </td>
+            <xsl:comment>MAIN BODY</xsl:comment>
+            <td class="main-body" valign="top" align="left">
+              <xsl:apply-templates select="body/section"/>
+            </td>
+            <xsl:comment>RIGHT SIDE NAVIGATION</xsl:comment>
+            <td class="right-navbar" valign="top" nowrap="true">
+              <xsl:apply-templates select="$site/body/navbar[@name='rhs']"/>
+            </td>
+          </tr>
+          <xsl:comment>FOOTER SEPARATOR</xsl:comment>
+          <tr>
+            <td colspan="3">
+              <hr noshade="" size="1"/>
+            </td>
+          </tr>
+          <tr>
+            <td colspan="3">
+              <div class="page-footer">
+                <em>
+        Copyright &#169; 1999-2005, The Apache Software Foundation
+        </em>
+              </div>
+            </td>
+          </tr>
+        </table>
+      </body>
     </html>
-
   </xsl:template>
-
-
   <!-- Process a menu for the navigation bar -->
   <xsl:template match="menu">
-    <p><strong><xsl:value-of select="@name"/></strong></p>
+    <p>
+      <strong>
+        <xsl:value-of select="@name"/>
+      </strong>
+    </p>
     <ul>
       <xsl:apply-templates select="item"/>
     </ul>
   </xsl:template>
-
-
   <!-- Process a menu item for the navigation bar -->
   <xsl:template match="item">
     <xsl:variable name="href">
       <xsl:choose>
-            <xsl:when test="starts-with(@href, 'http://')">
-                <xsl:value-of select="@href"/>
-            </xsl:when>
-            <xsl:when test="starts-with(@href, '/site')">
-                <xsl:text>http://james.apache.org</xsl:text><xsl:value-of
select="@href"/>
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:value-of select="$relative-path"/><xsl:value-of select="@href"/>
-            </xsl:otherwise>    
+        <xsl:when test="starts-with(@href, 'http://')">
+          <xsl:value-of select="@href"/>
+        </xsl:when>
+        <xsl:when test="starts-with(@href, '/site')">
+          <xsl:text>http://jakarta.apache.org</xsl:text>
+          <xsl:value-of select="@href"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="$relative-path"/>
+          <xsl:value-of select="@href"/>
+        </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-    <li><a href="{$href}"><xsl:value-of select="@name"/></a></li>
+    <li>
+      <a href="{$href}">
+        <xsl:value-of select="@name"/>
+      </a>
+    </li>
   </xsl:template>
-
-
   <!-- Process a documentation section -->
   <xsl:template match="section">
     <xsl:variable name="name">
       <xsl:value-of select="@name"/>
     </xsl:variable>
-    <table border="0" cellspacing="0" cellpadding="2" width="100%">
-      <!-- Section heading -->
-      <tr><td bgcolor="{$banner-bg}">
-          <font color="{$banner-fg}" face="arial,helvetica.sanserif">
-          <a name="{$name}">
-          <strong><xsl:value-of select="@name"/></strong></a></font>
-      </td></tr>
-      <!-- Section body -->
-      <tr><td><blockquote>
-        <xsl:apply-templates/>
-      </blockquote></td></tr>
-    </table>
+    <div class="section">
+      <div class="section-header">
+        <a name="{$name}">
+          <strong>
+            <xsl:value-of select="@name"/>
+          </strong>
+        </a>
+      </div>
+      <p>
+        <div class="section-body">
+          <xsl:apply-templates/>
+        </div>
+      </p>
+    </div>
   </xsl:template>
-
-
   <!-- Process a documentation subsection -->
   <xsl:template match="subsection">
     <xsl:variable name="name">
       <xsl:value-of select="@name"/>
     </xsl:variable>
-    <table border="0" cellspacing="0" cellpadding="2" width="100%">
+    <div class="subsection">
       <!-- Subsection heading -->
-      <tr><td bgcolor="{$sub-banner-bg}">
-          <font color="{$sub-banner-fg}" face="arial,helvetica.sanserif">
-          <a name="{$name}">
-          <strong><xsl:value-of select="@name"/></strong></a></font>
-      </td></tr>
+      <div class="subsection-header">
+        <a name="{$name}">
+          <strong>
+            <xsl:value-of select="@name"/>
+          </strong>
+        </a>
+      </div>
       <!-- Subsection body -->
-      <tr><td><blockquote>
+      <div class="subsection-body">
         <xsl:apply-templates/>
-      </blockquote></td></tr>
-    </table>
+      </div>
+    </div>
   </xsl:template>
-
-
   <!-- Process a source code example -->
   <xsl:template match="source">
-    <div align="left">
-      <table cellspacing="4" cellpadding="0" border="0">
-        <tr>
-          <td bgcolor="{$source-color}" width="1" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-          <td bgcolor="{$source-color}" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-          <td bgcolor="{$source-color}" width="1" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-        </tr>
-        <tr>
-          <td bgcolor="{$source-color}" width="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-          <td bgcolor="#ffffff" height="1"><pre>
-            <xsl:value-of select="."/>
-          </pre></td>
-          <td bgcolor="{$source-color}" width="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-        </tr>
-        <tr>
-          <td bgcolor="{$source-color}" width="1" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-          <td bgcolor="{$source-color}" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-          <td bgcolor="{$source-color}" width="1" height="1">
-            <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
-          </td>
-        </tr>
-      </table>
+    <div class="source">
+      <xsl:value-of select="."/>
     </div>
   </xsl:template>
-
-  <!-- specially process td tags ala site.vsl -->
-  <xsl:template match="td">
-    <td bgcolor="{$table-td-bg}" valign="top" align="left">
-        <xsl:if test="@colspan"><xsl:attribute name="colspan"><xsl:value-of
select="@colspan"/></xsl:attribute></xsl:if>
-        <xsl:if test="@rowspan"><xsl:attribute name="rowspan"><xsl:value-of
select="@rowspan"/></xsl:attribute></xsl:if>
-        <font color="#000000" size="-1" face="arial,helvetica,sanserif">
-            <xsl:apply-templates/>
-        </font>
-    </td>
+  
+  
+  
+<xsl:template match="*/table">
+<table class="detail-table" cellpadding="0" cellspacing="0" >
+  <tbody>
+    <xsl:apply-templates/>
+  </tbody>
+</table>
+
+</xsl:template>
+  <xsl:template match="tr">
+
+  <tr class="detail-table-row">
+<td class="separator-col"></td>
+    <xsl:apply-templates/>
+  </tr>
+  
   </xsl:template>
   
+  <xsl:template match="td">
+    <td class="detail-table-content" valign="top" align="left">
+      <xsl:if test="@colspan">
+        <xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@rowspan">
+        <xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </td><td class="separator-col"></td>
+  </xsl:template>
   <!-- handle th ala site.vsl -->
   <xsl:template match="th">
-    <td bgcolor="{$table-th-bg}" valign="top">
-        <xsl:if test="@colspan"><xsl:attribute name="colspan"><xsl:value-of
select="@colspan"/></xsl:attribute></xsl:if>
-        <xsl:if test="@rowspan"><xsl:attribute name="rowspan"><xsl:value-of
select="@rowspan"/></xsl:attribute></xsl:if>
-        <font color="#000000" size="-1" face="arial,helvetica,sanserif">
-            <xsl:apply-templates />
-        </font>
-    </td>
+    <td class="detail-table-header" valign="top">
+      <xsl:if test="@colspan">
+        <xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@rowspan">
+        <xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </td><td class="separator-col"></td>
   </xsl:template>
-  
   <!-- Process everything else by just passing it through -->
   <xsl:template match="*|@*">
     <xsl:copy>
       <xsl:apply-templates select="@*|*|text()"/>
     </xsl:copy>
   </xsl:template>
-
 </xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message