Re: Still serious problems with psgml 1.2.5
Lennart Staflin <[email protected]>
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Message-ID | <[email protected]> |
On fredag, jun 6, 2003, at 14:02 Europe/Stockholm, Joachim Ziegler
wrote:
> Steinar Bang wrote:
>> A wild guess here: could you be reading the SGML DTDs instead of the
>> XML DTDs?
>
> No. Doing sgml-general-dtd-info says clearly:
>
> Doctype: BOOK
> Element types: 389
> Entities: 999
> Parameter entities: 2160
> Files used: /KM/usr/ziegler/DocBook/DocBookXML4.2/dbgenent.mod
> /KM/usr/ziegler/DocBook/DocBookXML4.2/dbhierx.mod
> /KM/usr/ziegler/DocBook/DocBookXML4.2/calstblx.dtd
> /KM/usr/ziegler/DocBook/DocBookXML4.2/dbpoolx.mod
> .
> .
> /KM/usr/ziegler/DocBook/DocBookXML4.2/docbookx.dtd
>
> This is the XML DTD. Note that again Doctype is "BOOK", not "book"!
> There must be something wrong with the parsing of the DTD.
It is the right DTD but it has probably been read using sgml-mode
instead of xml-mode. I don't know how that could happen. In some
earlier mail you used a precompiled dtd (.ced) file. If that is the
case try removing that and PSGML should parse the DTD from source.
The problems are consistent with the DTD parsed in wrong mode. I tried
going to the main file and executing sgml-mode and re-parsing the DTD
and then load the chapter. I get the same behavior.
The code that interprets sgml-parent-document has lax error checking. I
think that
sgml-parent-document:("LEDATutorium.xml" "book" ("chapter") "book")
which is ill formed, is interpreted the same as
sgml-parent-document:("LEDATutorium.xml" "book" ("chapter"))
Further if any element in the inner parentheses ("chapter") are
undefined, this is not detected but later you can get an assertion
failure. If the DTD has been parsed as SGML, then "chapter" will be
undefined as the element is named "CHAPTER".
That was just a side point as sgml-parent-document should be
("LEDATutorium.xml" "book" "chapter")
in this case.
//Lennart
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.