This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: XML-validator fixes for index.html
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Jan 2002 22:55:22 +0100 (CET)
- Subject: Re: XML-validator fixes for index.html
On Thu, 3 Jan 2002, Zack Weinberg wrote:
> because I'm thinking about web page stuff anyway. Most of this is
> converting uppercase tags to lowercase. Applied as obvious.
Thanks! This was on my TODO for quite some time (and as you probably
noticed I had converted part of that page already), but I never found
the time to complete it.
> Gerald, would it be possible for the metahtml stuff to add the
> align="center" annotation to <h1> tags? If so, we could take that out
> of all the pages [...]
That sounds like a good idea, and the patch below that I just committed
does exactly that. (Indeed it's just a variation of your proposed macro.)
> [...] and ask people to validate against the strict DTD (which seems to
> catch more nesting mistakes) instead of the transitional one.
This makes sense, yes. Though, I believe we shouldn't require that people
changing pages have to fix all pre-existing deviations from the XHTML
standard on these pages.
> Also, a future move to CSS would then be possible (almost) entirely
> within style.mhtml.
MetaHTML is nice, isn't it? :-)
Gerald
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.17
diff -u -3 -p -r1.17 style.mhtml
--- style.mhtml 2001/12/11 20:34:34 1.17
+++ style.mhtml 2002/01/04 21:48:48
@@ -38,6 +38,14 @@
<verbatim>- GNU Project - Free Software Foundation (FSF)</title></verbatim>
</define-container>
+;;; Redefine the <h1> tag to add our own style.
+
+<define-container h1>
+<verbatim><h1 align="center"></verbatim>
+%body
+<verbatim></h1></verbatim>
+</define-container>
+
;;; Redefine the BODY tag introducing our own color scheme and adding an
;;; "about" link and a "last modified" at the bottom.