In article <[EMAIL PROTECTED]>, one of infinite monkeys
        at the keyboard of Sonia Walter <[EMAIL PROTECTED]> hath written:
 
[ added c.l.p.m crosspost ]

> That was the problem, thanks. I got the issue now. The pages are 
> generated with help of CGI.pm module.

I don't use CGI.pm's HTML-generating facilities.  But from this post and
various others I've seen, I wonder if it's rather clue-challenged in places?

> then the one online, and I wasn't stating the DTD in the
> start_html() 
> function, that in the offline version were giving as the result:
> 
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

IETF HTML is also known as HTML 2.0, and represents (broadly) the
state of HTML just before the W3C was formed.  In other words,
like a VT100 terminal or an MSDOS machine, it's still perfectly
valid today, but is definitely a minority interest.

> header, while the newer online installed CGI.pm by default was
> returning:
> 
> <!DOCTYPE html
>       PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>       "DTD/xhtml1-transitional.dtd">

Now that is the legacy version of XHTML-1.0.  Except that it
*incorrectly* uses a relative path to the DTD in the FPI.
Correct would be any one of:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!DOCTYPE html SYSTEM
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

> stated the DTD for the start_html() as 
> 
> '-//W3C//DTD HTML HTML 4.01 Transitional//EN'

But it's a shame to be using a markup standard that was declared
suitable only for legacy pages more than three years ago.

> BTW: the line-broken DOCTYPE tags generated by CGI.pm, disallow the
> page 
> to be parsed by W3C online HTML Validator.

There's nothing wrong with the linebreak, but it's possible the (bogus)
relative path may have confused it.  More likely you were just getting
lots of errors because you generated HTML but declared it as XHTML.

-- 
Nick Kew

Site Valet - the essential service for anyone with a website.
<URL:http://valet.webthing.com/>

Reply via email to