Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: first steps...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 9 Topic 1416 of 1496
Post > Topic >>

Re: first steps with mod_perl

by mstep@[EMAIL PROTECTED] (Marek) Sep 22, 2007 at 03:26 AM

Thank you Gunnar, and Thank you Matthew Hellman (who replied off-list)

Matthew sent me the link to:


http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#CREATING_THE_HTML_DO***ENT_HEADER

which does not reply my question: how to insert an DTD xhtml strict or
transitional, and how to avoid the xhtml "basic" DTD ... I see only
the possibility to insert it manually, but I don't know how to achieve
this.

After many tries my script looks at the beginning like follows:

print header;


print start_html(-dtd=>'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',-
title=>'Hello World, Address, Colours',
	   -head=>[Link({-rel=>'stylesheet',
		   -href=>'../styles/style.css',
		   -type=>'text/css',
		   -media=>'screen'})
		   ]
		 ),
h1('Hello World!'),

But the server gives back:

<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en-
US"><head><title>Hello World, Address, Colours</title>
<link type="text/css" media="screen" rel="stylesheet" href="../styles/
style.css" />
</head><body><h1>Hello World!</h1>


which is not valid and far from intended.  Please help! Thank you!


marek
 




 9 Posts in Topic:
first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-18 11:46:19 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-19 00:39:30 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-22 03:26:05 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-23 20:32:19 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-30 05:39:09 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-10-06 23:00:21 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-08 20:04:40 
Re: first steps with mod_perl
david@[EMAIL PROTECTED]   2007-10-09 11:07:59 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-10 08:28:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 11:33:11 CST 2008.