SSI and W3C HTML Validator

Alexander Skwar listen at alexander.skwar.name
Fri Jul 7 13:26:55 UTC 2006


OOzy Pal schrieb:
> Isn't this html code SSI:

Hm? What do you mean?

> <!--#set var="revision" value="\$Id: index.html,v 1.74.2.8 2006/02/20
> 03:21:20 ot Exp $"
> --><!--#set var="date" value="\$Date: 2006/02/20 03:21:20 $"
> --><!--#set var="title" value="The W3C Markup Validation Service"
> --><!--#set var="relroot" value="./"
> --><!--#include virtual="header.html" -->

As far as HTML is concerned, those are plain comments. A server might
interprete those commands.

> Here is the story, I installed the w3c html-validator. Everything is
> ok except when I run it, the header does not appear ok and the CHECK
> button don't work. I looked at the validator html source code and
> found the above code @ the top of the page as is. Isn't this SSI and

Yes, this looks like SSI.

> that Apache should transform to actual data?

Depends on your configuration. What does make you think, that Apache
should interprete the code?

> If yes, how can I make
> apache do it?

By configuring it so, that it interpretes the code. You do so, when you
setup a handler which acts when certain content is requested.

It might be, that your apache is configured in such a way, that it
interpretes .shtml files. Just have a look at your httpd.conf, and
you'll see.

Alexander Skwar
-- 
Vaterland nennt der Staat immer dann, wenn er sich anschickt, auf
Menschenmord auszugehen.
                 -- Friedrich Dürrenmatt (Romulus der Große)




More information about the ubuntu-users mailing list