This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[XHTML 1.0] style.mhtml


Hi !
Here's the patch to style.mhtml, to make it XHTML compliant. This is the 
last step to make most of the site compliant.
Also, some parts of it are relevant to the java/ pages, as it defines the 
GCJ sidebar.

The patched pages are available at 
<http://studenti.fisica.unifi.it/~fwyzard/gcc/>.
The XHTML compliantness status is available at 
<http://studenti.fisica.unifi.it/~fwyzard/validgcc.html>.

PS. Jerry, I actually don't know how to put the "XHTML 1.0" logo right 
alligned in a sane way, so I've just commentd it out.
If you know how to do that, it would be nice :-)

fwyzard
Index: style.mhtml
===================================================================
RCS file: /cvsroot/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.20
diff -u -3 -p -r1.20 style.mhtml
--- style.mhtml	19 Jan 2002 10:04:47 -0000	1.20
+++ style.mhtml	23 Mar 2002 22:54:51 -0000
@@ -1,4 +1,7 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE html
+          PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
 
 ;;; Given a dirname PATH, set BACKPATH to a relative URL pointing from PATH 
 ;;; back to the original directory.
@@ -16,9 +19,21 @@
   >
  >
 
-;;; Redefine the HEAD tag so that we can add default <META> headers.
+;;; Redefine the HTML tag so that we can put XHTML tags instead.
 
-<define-container HEAD>
+<define-container html>
+<verbatim>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+</verbatim>
+%body
+<verbatim>
+</html>
+</verbatim>
+</define-container>
+
+;;; Redefine the HEAD tag so that we can add default <meta /> headers.
+
+<define-container head>
 <verbatim>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
@@ -49,7 +64,7 @@
 ;;; Redefine the BODY tag introducing our own color scheme and adding an
 ;;; "about" link and a "last modified" at the bottom.
 
-<define-container BODY>
+<define-container body>
 <verbatim>
 <body bgcolor="#FFFFFF" text="#000000" link="#1F00FF" alink="#FF0000" vlink="#9900DD">
 </verbatim>
@@ -57,48 +72,55 @@
 %body
 
 <hr />
-<p>Please send FSF &amp; GNU inquiries &amp; questions to
+<address>Please send FSF &amp; GNU inquiries &amp; questions to
 <a href="mailto:gnu@gnu.org";>gnu@gnu.org</a>.
 There are also <a href="http://www.gnu.org/home.html#ContactInfo";>other ways
-to contact</a> the FSF.</p>
-
-<p>These pages are maintained by
-<a href="http://gcc.gnu.org/about.html";>The GCC team</a>.</p>
-
-<p>Please send comments on these web pages and GCC to
+to contact</a> the FSF.</address>
+<br />
+<address>These pages are maintained by
+<a href="http://gcc.gnu.org/about.html";>The GCC team</a>.</address>
+<br />
+<address>Please send comments on these web pages and GCC to
 <a href="mailto:gcc@gnu.org";>gcc@gnu.org</a>
 or
 <a href="mailto:gcc@gcc.gnu.org";>gcc@gcc.gnu.org</a>,
 send other questions to
-<a href="mailto:gnu@gnu.org";>gnu@gnu.org</a>.</p>
-
-<p>Copyright (C) Free Software Foundation, Inc.,
-59 Temple Place - Suite 330, Boston, MA  02111,  USA.</p>
-
-<p>Verbatim copying and distribution of this entire article is
-permitted in any medium, provided this notice is preserved.</p>
-
-<!-- IGNORE DIFF --><p>Last modified <date::format-time "YYYY-MM-DD">.</p>
-
+<a href="mailto:gnu@gnu.org";>gnu@gnu.org</a>.</address>
+<br />
+<address>Copyright (C) Free Software Foundation, Inc.,
+59 Temple Place - Suite 330, Boston, MA  02111,  USA.</address>
+<br />
+<address>Verbatim copying and distribution of this entire article is
+permitted in any medium, provided this notice is preserved.</address>
+<br />
+<address>
+<!-- IGNORE DIFF -->Last modified <date::format-time "YYYY-MM-DD">.
+</address>
+<!--
+<a href="http://validator.w3.org/check/referer";><img
+  src="http://www.w3.org/Icons/valid-xhtml10";
+  alt="Valid XHTML 1.0" 
+  border="0" width="88" height="31" /></a>
+-->
 <verbatim>
 </body>
 </verbatim>
 </define-container>
 
 ;;; Navigation bar for gcj pages.
-<define-container GCJNAV>
+<define-container gcjnav>
 <verbatim>
-<table border=0>
+<table border="0">
 <tr><td valign="top">
 
-<table border=0>
+<table border="0">
 <tr><td>
-<img src="gcj.jpg" alt="gcj logo" width=136 height=98>
+<img src="gcj.jpg" alt="gcj logo" width="136" height="98" />
 </td></tr>
 <tr>
-<td valign>
+<td>
 <br />
-<table border=0><tr><td width="10"></td><td>
+<table border="0"><tr><td width="10"></td><td>
 <a href="index.html">Home</a><br />
 <a href="faq.html">FAQ</a><br />
 <a href="../lists.html">Mailing Lists</a><br />
@@ -107,7 +129,7 @@ permitted in any medium, provided this n
 <a href="build-snapshot.html">Build</a><br />
 <a href="test.html">Testing</a><br />
 <a href="contrib.html">Contributing</a><br />
-<a href="done.html">Done with Gcj</A><br />
+<a href="done.html">Done with Gcj</a><br />
 <a href="../bugs.html">Bugs</a><br />
 <a href="thanks.html">Thanks</a><br />
 <br /><br /><br />
@@ -116,26 +138,26 @@ permitted in any medium, provided this n
 <a href="http://www.gnu.org/";>The GNU Project</a><br />
 </td></tr></table>
 <br /><br /><br />
-<table border=0><tr><td width="10"></td><td>
-<small>
+<table border="0"><tr><td width="10"></td><td>
 <form method="get" action="http://gcc.gnu.org/cgi-bin/ml-request";>
+<small>
 Get our announcements:<br />
-<input type="hidden" name="digest" value="off">
-<input type="hidden" name="operation" value="subscribe">
-<input type="hidden" name="listname" value="java-announce">
-<input type="text" name="username" value="your e-mail-address" size="20">
+</small>
+<input type="hidden" name="digest" value="off" />
+<input type="hidden" name="operation" value="subscribe" />
+<input type="hidden" name="listname" value="java-announce" />
+<input type="text" name="username" value="your e-mail-address" size="20" />
 <br />
-<input type="Submit" name="submit" value="Subscribe!">
+<input type="submit" name="submit" value="Subscribe!" />
 </form>
-</small>
 </td></tr></table>
 
 </td></tr></table>
 
 </td>
 
-<td width=2 bgcolor="black">i</td>
-<td width=6></td>
+<td width="2" bgcolor="black">i</td>
+<td width="6"></td>
 <td>
 
 </verbatim>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]