Forum Moderators: open

Message Too Old, No Replies

SSI Tag and WC3 do not play nicely?

Adding SSI to my page has messed my validation up.

         

shawn

7:33 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



I recently started using SSI to simply keep my site map and copyright information updated easily throught my site.

The problem is now that is really plays havok on my validation of the site.

I get these errors:

Line 113, column 2: "DOCTYPE" declaration not allowed in instance
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
^
Line 114, column 42: document type does not allow element "html" here (explain...).
<html xmlns="http://www.w3.org/1999/xhtml">

Thos elines of code are not even there on line 113 or 114 when I look at my code - line 112 has my SSI - <!--#include virtual="copyright.html" -->

If this has been discussed before I apologize. :)

Shawn

Brett_Tabke

7:36 pm on Aug 6, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Sever Side Include. Which means it will INCLUDE whatever file you insert into the directive.

So if you have a file with two complete sets of headers and try to include one within the other, then you are causing you own validation error. The validator and all users see whatever you see when you view the page and then VIEW the source from the browser.

shawn

7:53 pm on Aug 6, 2003 (gmt 0)

10+ Year Member



DOH!

That makes perfect sense! Its always the easy stuff that...

Shawn