Using docbook dtd with PSGML

  • I'm trying to use the docbook xml-dtd with PSGML and it works great. Unfortunutaly parsing the dtd takes ages and each time I open a xml-file it parses the dtd again. I would like to be able to use a cached copy of the dtd for all my xml-files. Here's what I've tried:

    Saving the parsed dtd works fine but it saves a copy only for the active xml-file the dtd was parsed for.

    I've read about caching precompiled dtd subsets in the documentation but I don't understand how it's supposed to work. The documentation is somewhat vague when it comes to setting up your own ecat files. An example would be nice.

    Thanks a bunch,


    • A ECAT file would contain lines like the following:

      FILE /Users/lenst/Library/SGML/docbk41/docbook.dtd  /tmp/docbook41.cdtd

      Associating a DTD file with a file to store the compiled version. You also must make sure that the ECAT file is listed in sgml-ecat-files.

      When PSGML is about to parse a DTD file it checks if there is an associated compiled DTD, and try to use that.