Markus Grunwald
2005-08-21 17:53:19 UTC
Hello,
On my first steps to write xhtml with xemacs/psgml, I have some troubles.
I try to validate the following file with onsgmls:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"/usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Text</title>
<!-- gegebenenfalls andere Elemente im Kopfbereich -->
</head>
<body>
<h1>Text</h1>
</body>
</html>
<!-- Keep this comment at the end of the file
Local variables:
mode: xml
sgml-default-dtd-file:"~/SGML/xhtml1-strict.ced"
-->
All that I get are these error:
***@Eddie: > onsgmls -wxml -s /usr/share/sgml/declaration/xml.dcl index.xhtml
onsgmls:/usr/share/sgml/declaration/xml.dcl:1:W: SGML declaration was not
implied
onsgmls:index.xhtml:3:55:E: DTD did not contain element declaration for
document type name
onsgmls:index.xhtml:5:44:E: document type does not allow
element "html" here onsgmls:index.xhtml:32:6:E: no document element
Ok, the first one is a warning that I might ignore. But I am completely helpless
with the rest...
I tried to find some help via google but was not successfull. Could you please
help me ?
TIA
On my first steps to write xhtml with xemacs/psgml, I have some troubles.
I try to validate the following file with onsgmls:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"/usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Text</title>
<!-- gegebenenfalls andere Elemente im Kopfbereich -->
</head>
<body>
<h1>Text</h1>
</body>
</html>
<!-- Keep this comment at the end of the file
Local variables:
mode: xml
sgml-default-dtd-file:"~/SGML/xhtml1-strict.ced"
-->
All that I get are these error:
***@Eddie: > onsgmls -wxml -s /usr/share/sgml/declaration/xml.dcl index.xhtml
onsgmls:/usr/share/sgml/declaration/xml.dcl:1:W: SGML declaration was not
implied
onsgmls:index.xhtml:3:55:E: DTD did not contain element declaration for
document type name
onsgmls:index.xhtml:5:44:E: document type does not allow
element "html" here onsgmls:index.xhtml:32:6:E: no document element
Ok, the first one is a warning that I might ignore. But I am completely helpless
with the rest...
I tried to find some help via google but was not successfull. Could you please
help me ?
TIA
--
Markus Grunwald
Registered Linux User Nr 101577 gpg/pgp fingerprint: 7E01F5FE15CEDD0A
http://counter.li.org (gpg --recv-keys 7E01F5FE15CEDD0A)
icq 314331831
Markus Grunwald
Registered Linux User Nr 101577 gpg/pgp fingerprint: 7E01F5FE15CEDD0A
http://counter.li.org (gpg --recv-keys 7E01F5FE15CEDD0A)
icq 314331831