Page 1 of 1

Working with XHTML

Posted: Sat Jun 26, 2004 12:16 am
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?

OK, I found these...

Posted: Sat Jun 26, 2004 12:19 am
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???

Posted: Sat Jun 26, 2004 11:56 pm
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