Caching and using a large dtd
Brought to you by:
lenst
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,
/Kenneth
Logged In: YES
user_id=146903
Try doing this: Create a file called ECAT, containing lines
like the following:
public "public id" "filename.cdtd"
...
Then add the following to your ~/.emacs:
(setq sgml-local-ecat-files '("path/to/ECAT"))
When you parse a document using a public identifier listed
in the ECAT file, a compiled version of the DTD will be
written to the given file name. When you load another
document using the same public identifier, it will use the
precompiled version of the DTD.