Hi!

Some weeks ago I posted the attached patch on the docs-list. Last week I
posted it a second time, but didn't receive any replies. Therefore I am
posting it here on the dev-list...

The patch modifies the present error doc templates (spacer.html, top.html,
bottom.html) to be valid XHTML 1.1 documents.

To ensure their correctness, I validated all the resulting error documents
(the ssi-parsed output) at w3.org.

I also had to correct the <br>-tags in HTTP_INTERNAL_SERVER_ERROR.html.var
and an <a>-tag in contact.html.var (see patch).

cheers,
erik


> Von: Justin Erenkrantz <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
> Betreff: Re: Valid XHTML Error-Docs
> 
> On Wed, Jun 19, 2002 at 09:05:00PM +0200, Erik Abele wrote:
>> I would also prefer valid XHTML-Documents, but I don't want to convert all
>> the files if they won't be included.
> 
> +1 especially if someone contributes them!  -- justin

Index: httpd-docs-2.0/error/HTTP_INTERNAL_SERVER_ERROR.html.var
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/error/HTTP_INTERNAL_SERVER_ERROR.html.var,v
retrieving revision 1.3
diff -u -I*.AppleDouble -r1.3 HTTP_INTERNAL_SERVER_ERROR.html.var
--- httpd-docs-2.0/error/HTTP_INTERNAL_SERVER_ERROR.html.var    18 Jun 2002 22:34:34 
-0000      1.3
+++ httpd-docs-2.0/error/HTTP_INTERNAL_SERVER_ERROR.html.var    8 Jul 2002 18:04:48 
+-0000
@@ -12,7 +12,7 @@
     <!--#include virtual="include/spacer.html" -->
 
     Fehlermeldung:
-    <BR><!--#echo var="REDIRECT_ERROR_NOTES" -->
+    <br /><!--#echo var="REDIRECT_ERROR_NOTES" -->
 
 
   <!--#else -->
@@ -38,7 +38,7 @@
     <!--#include virtual="include/spacer.html" -->
 
     Error message:
-    <BR><!--#echo var="REDIRECT_ERROR_NOTES" -->
+    <br /><!--#echo var="REDIRECT_ERROR_NOTES" -->
 
   <!--#else -->
 
@@ -65,7 +65,7 @@
     <!--#include virtual="include/spacer.html" -->
 
         Mensaje de error:
-    <BR><!--#echo var="REDIRECT_ERROR_NOTES" -->
+    <br /><!--#echo var="REDIRECT_ERROR_NOTES" -->
 
   <!--#else -->
 
@@ -94,7 +94,7 @@
     <!--#include virtual="include/spacer.html" -->
 
         Message d'erreur:
-    <BR><!--#echo var="REDIRECT_ERROR_NOTES" -->
+    <br /><!--#echo var="REDIRECT_ERROR_NOTES" -->
 
   <!--#else -->
 
Index: httpd-docs-2.0/error/contact.html.var
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/error/contact.html.var,v
retrieving revision 1.5
diff -u -I*.AppleDouble -r1.5 contact.html.var
--- httpd-docs-2.0/error/contact.html.var       18 Jun 2002 22:34:34 -0000      1.5
+++ httpd-docs-2.0/error/contact.html.var       8 Jul 2002 18:04:48 -0000
@@ -1,24 +1,24 @@
 Content-language: de
 Content-type: text/html
 Body:----------de--
- Sofern Sie dies f&uuml;r eine Fehlfunktion des Servers halten,
- informieren Sie bitte den
- <A HREF="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">Webmaster</A>
- hier&uuml;ber.
+Sofern Sie dies f&uuml;r eine Fehlfunktion des Servers halten,
+informieren Sie bitte den
+<a href="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">Webmaster</a>
+hier&uuml;ber.
 ----------de--
 
 Content-language: en
 Content-type: text/html
 Body:----------en--
- If you think this is a server error, please contact
- the <A HREF="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">webmaster</A>
+If you think this is a server error, please contact
+the <a href="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">webmaster</a>
 ----------en--
 
 Content-language: es
 Content-type: text/html
 Body:----------es--
 Favor de contactar al 
-<A HREF="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">webmaster</A>
+<a href="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">webmaster</a>
 en caso de que usted crea que existe un error en el servidor. 
 ----------es--
 
@@ -26,5 +26,5 @@
 Content-type: text/html
 Body:----------fr--
 Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter 
-le <A HREF="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">gestionnaire du 
site</A>   
+le <a href="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">gestionnaire du 
+site</a>   
 ----------fr--
Index: httpd-docs-2.0/error/include/bottom.html
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/error/include/bottom.html,v
retrieving revision 1.10
diff -u -I*.AppleDouble -r1.10 bottom.html
--- httpd-docs-2.0/error/include/bottom.html    20 Jun 2002 03:51:46 -0000      1.10
+++ httpd-docs-2.0/error/include/bottom.html    8 Jul 2002 18:04:49 -0000
@@ -1,19 +1,19 @@
-</DL><DL><DD>
+</dd></dl><dl><dd>
 <!--#include virtual="../contact.html.var" -->
-</DL>
+</dd></dl>
 
-<H2>Error <!--#echo encoding="none" var="REDIRECT_STATUS" --></H2>
-<DL>
-<DD>
-<ADDRESS>
-  <A HREF="/"><!--#echo encoding="none" var="SERVER_NAME" --></A>
-  <BR>
+<h2>Error <!--#echo encoding="none" var="REDIRECT_STATUS" --></h2>
+<dl>
+<dd>
+<address>
+  <a href="/"><!--#echo encoding="none" var="SERVER_NAME" --></a>
+  <br />
   <!--#config timefmt="%c" -->
   <small><!--#echo encoding="none" var="DATE_LOCAL" --></small>
-  <BR>
-
+  <br />
   <small><!--#echo encoding="none" var="SERVER_SOFTWARE" --></small>
-</ADDRESS>
-</DL>
-</BODY>
-</HTML>
+</address>
+</dd>
+</dl>
+</body>
+</html>
Index: httpd-docs-2.0/error/include/spacer.html
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/error/include/spacer.html,v
retrieving revision 1.1
diff -u -I*.AppleDouble -r1.1 spacer.html
--- httpd-docs-2.0/error/include/spacer.html    19 Aug 2001 01:01:51 -0000      1.1
+++ httpd-docs-2.0/error/include/spacer.html    8 Jul 2002 18:04:49 -0000
@@ -1 +1 @@
-</DL><DL><DD>
+</dd></dl><dl><dd>
Index: httpd-docs-2.0/error/include/top.html
===================================================================
RCS file: /home/cvspublic/httpd-2.0/docs/error/include/top.html,v
retrieving revision 1.4
diff -u -I*.AppleDouble -r1.4 top.html
--- httpd-docs-2.0/error/include/top.html       21 Aug 2001 01:31:23 -0000      1.4
+++ httpd-docs-2.0/error/include/top.html       8 Jul 2002 18:04:49 -0000
@@ -1,11 +1,20 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD>
-<TITLE><!--#echo var="TITLE" --></TITLE>
-<LINK REV="made" HREF="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->">
-</HEAD>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
+<head>
+<title><!--#echo var="TITLE" --></title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rev="made" href="mailto:<!--#echo encoding="none" var="SERVER_ADMIN" -->" />
+<style type="text/css">
+<!--
+body { color: #000000; background-color: #FFFFFF; }
+a:link { color: #0000CC; }
+-->
+</style>
+</head>
 
-<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000CC">
-<H1><!--#echo encoding="none" var="TITLE" --></H1>
-<DL>
-<DD>
+<body>
+<h1><!--#echo encoding="none" var="TITLE" --></h1>
+<dl>
+<dd>

Reply via email to