Working with XHTML

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

Working with XHTML

Post by bkbonner »

When I try to use XHTML Strict:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

I get the error message saying:

The declaration for "ContentType" must end with '>'. SystemID: http://www.w3.org/TR/html4/strict.dtd Line 81

It looks like "none" of the elements in the DTD follow the convention. Any thoughts?
-- Brian
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

OK, I found these...

Post by bkbonner »

OK, I found these:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd

But, why are the others so ill documented, then???
-- Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

The DTD for XHTML strict is located at http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd. Oxygen provides some document templates, one of them is for XHTML Strict. The "New from templates"/"XHTML Strict" action will give you:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
</body>
</html>
Best Regards,
George
Post Reply