public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Web Page Content Error
@ 2002-10-24 21:22 Dennis Newbold
  2002-10-25  1:14 ` Gerald Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Dennis Newbold @ 2002-10-24 21:22 UTC (permalink / raw)
  To: gcc

Dear Sirs:

     When trying to view http://gcc.gnu.org/java/papers/cni/t1.html
using Internet Explorer 5.5, I get the following error message:

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Cannot have multiple DOCTYPE declarations. Line 27, Position 11 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
----------^

However, it works fine when viewed with Netscape 6.1

Thanks alot for gcj.  Keep up the terrific work!

Dennis Newbold

---------------------------------------------
|                                           |
|     The way to be happy is to be good     |
|                                           |
---------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Web Page Content Error
  2002-10-24 21:22 Web Page Content Error Dennis Newbold
@ 2002-10-25  1:14 ` Gerald Pfeifer
  2002-11-06  9:33   ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Gerald Pfeifer @ 2002-10-25  1:14 UTC (permalink / raw)
  To: Dennis Newbold; +Cc: gcc, java

On Thu, 24 Oct 2002, Dennis Newbold wrote:
>      When trying to view http://gcc.gnu.org/java/papers/cni/t1.html
> using Internet Explorer 5.5, I get the following error message:
>
> The XML page cannot be displayed
> Cannot view XML input using style sheet. Please correct the error and then
> click the Refresh button, or try again later.
>
>
> --------------------------------------------------------------------------------
>
> Cannot have multiple DOCTYPE declarations. Line 27, Position 11
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> ----------^

Thank you for your report.

I believe we can fix this problem by (a) excluding all pages under
/java/papers from the preprocessing we perform on gcc.gnu.org, or
(b) removing all DOCTYPES from the pages there.

Personally, given that these pages are generated automatically, I
believe that (a) is the better fix, but I'd like to hear (and follow)
the preference from  one of our Java web hackers.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Web Page Content Error
  2002-10-25  1:14 ` Gerald Pfeifer
@ 2002-11-06  9:33   ` Tom Tromey
  2002-11-06 14:10     ` PATCH for " Gerald Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2002-11-06  9:33 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: Dennis Newbold, gcc, java

>>>>> "Gerald" == Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

Gerald> I believe we can fix this problem by (a) excluding all pages under
Gerald> /java/papers from the preprocessing we perform on gcc.gnu.org, or
Gerald> (b) removing all DOCTYPES from the pages there.

Gerald> Personally, given that these pages are generated automatically, I
Gerald> believe that (a) is the better fix, but I'd like to hear (and follow)
Gerald> the preference from  one of our Java web hackers.

I think (a) is fine.  These papers are basically static content.  I
haven't looked at them in years...

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* PATCH for Re: Web Page Content Error
  2002-11-06  9:33   ` Tom Tromey
@ 2002-11-06 14:10     ` Gerald Pfeifer
  0 siblings, 0 replies; 4+ messages in thread
From: Gerald Pfeifer @ 2002-11-06 14:10 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Dennis Newbold, gcc, java, gcc-patches

On 6 Nov 2002, Tom Tromey wrote:
>> I believe we can fix this problem by (a) excluding all pages under
>> /java/papers from the preprocessing we perform on gcc.gnu.org, or
>> (b) removing all DOCTYPES from the pages there.
>> Personally, given that these pages are generated automatically, I
>> believe that (a) is the better fix [...]
> I think (a) is fine.  These papers are basically static content.  I
> haven't looked at them in years...

Based on this feedback I just committed the patch below and tested it
on gcc.gnu.org as well by rebuilding the web pages.

  Update the pattern matching .cvsignore files.  Treat java/papers/*.html
  files as "binary" and add a comment for these and all other files treated
  similarly.

Gerald

Index: preprocess
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/preprocess,v
retrieving revision 1.34
diff -u -3 -p -r1.34 preprocess
--- preprocess	28 Oct 2002 19:12:44 -0000	1.34
+++ preprocess	6 Nov 2002 20:21:29 -0000
@@ -108,14 +108,22 @@ process_file()
     fi

     case $f in
-        */CVS|*/\.cvsignore)
+        */CVS|*\.cvsignore)
             ;;
+
+        # Treat the following files as "binary" and simply copy them
+        # whenever they do not already exist in the destination tree
+        # or when the copies in the source and destination trees differ.
         *\.htaccess|*\.htpasswd)
             copy_if_different $f $DESTTREE/$f
             ;;
         *\.txt|*\.ps|*\.ps\.gz|*\.pdf|*\.jpg|*\.jpeg|*\.png|*\.patch|*\.diff)
             copy_if_different $f $DESTTREE/$f
             ;;
+        java/papers/*\.html)
+            copy_if_different $f $DESTTREE/$f
+            ;;
+
         *\.html)
             # Set environment variable PREPROCESS_FILE, which will then be
             # accessible by MetaHTML.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-06 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 21:22 Web Page Content Error Dennis Newbold
2002-10-25  1:14 ` Gerald Pfeifer
2002-11-06  9:33   ` Tom Tromey
2002-11-06 14:10     ` PATCH for " Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).