I'm a complete newbie trying to get psgml (Emacs)
working with this. After downloading the current
tarball, the first thing I did was have it verify my
document. I immediately got an error saying
DOCTYPE declaration is only valid in prolog
So, I switched to the shell and ran nsgml to check
things. It gave me additional errors, so I grabbed the
sample from the documentation, the one which creates a
table. Below what I get. What am I missing?
289 roland> nsgmls -D. -s foo.xml
nsgmls:xmlschema.dtd:2:2:E: "DOCTYPE" declaration not
allowed in DTD subset
nsgmls:xmlschema.dtd:9:14:E: "#CDATA" is not a valid
token here
nsgmls:xmlschema.dtd:10:18:E: "#CDATA" is not a valid
token here
nsgmls:xmlschema.dtd:21:23:E: "#CDATA" is not a valid
token here
nsgmls:xmlschema.dtd:28:16:E: "#CDATA" is not a valid
token here
nsgmls:xmlschema.dtd:36:18:E: "#CDATA" is not a valid
token here
nsgmls:xmlschema.dtd:37:57:E: character "," invalid:
only delimiter ">", name and parameter separators allowed
nsgmls:foo.xml:3:21:E: document type does not allow
element "SCHEMA" here
nsgmls:foo.xml:6:9:E: document type does not allow
element "DESC" here
nsgmls:foo.xml:8:12:E: document type does not allow
element "DESCR" here
nsgmls:foo.xml:9:11:E: character data is not allowed here
nsgmls:foo.xml:11:11:E: end tag for "FIELD" which is
not finished
nsgmls:foo.xml:13:55:E: character data is not allowed here
nsgmls:foo.xml:13:63:E: end tag for "FIELD" which is
not finished
nsgmls:foo.xml:16:12:E: document type does not allow
element "DESCR" here
nsgmls:foo.xml:18:14:E: character data is not allowed here
nsgmls:foo.xml:23:10:E: document type does not allow
element "DESCR" here
nsgmls:foo.xml:27:10:E: no document element
Logged In: YES
user_id=172762
I've partially answered my own question by reading carefully
some of the SGML docs. The DTD file itself should not have
a DOCTYPE declaration at the top. Removing that fixes some
of the problems, but not all. I'm still poking.