From: Chris Hanson <org/chris-hanson/cph>
Date: Sun, 31 Dec 2006 05:59:47 +0000 (+0000)
Subject: Don't provide a default <?xml> declaration.  The absence of the
X-Git-Tag: 20090517-FFI~820
X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=6efc339cf01a349b068295c963df16c1c61496e6;p=mit-scheme.git

Don't provide a default <?xml> declaration.  The absence of the
declaration is equivalent to its presence, and avoids confusing
non-XML browsers.
---

diff --git a/v7/src/ssp/xhtml-expander.scm b/v7/src/ssp/xhtml-expander.scm
index 39ea6c7ba..a78ddea61 100644
--- a/v7/src/ssp/xhtml-expander.scm
+++ b/v7/src/ssp/xhtml-expander.scm
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xhtml-expander.scm,v 1.10 2006/07/26 19:04:41 cph Exp $
+$Id: xhtml-expander.scm,v 1.11 2006/12/31 05:59:47 cph Exp $
 
 Copyright 2002,2003,2004,2006 Massachusetts Institute of Technology
 
@@ -35,13 +35,6 @@ USA.
   (let ((document
 	 (read/expand-xml-file pathname
 			       (make-expansion-environment pathname))))
-    (if (not (xml-document-declaration document))
-	(begin
-	  (set-xml-document-declaration! document
-					 (make-xml-declaration "1.0" #f #f))
-	  (set-xml-document-misc-1! document
-				    (cons "\n"
-					  (xml-document-misc-1 document)))))
     (if (not (xml-document-dtd document))
 	(begin
 	  (set-xml-document-dtd! document html-1.0-dtd)