This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Caching the DocBook dtd when using PSGML
- From: Kenneth Johansson <ke-joh at sectra dot se>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 17 Jan 2003 17:00:27 +0100
- Subject: RE: DOCBOOK-APPS: Caching the DocBook dtd when using PSGML
Hi,
Thanks for your input. However, I still can't get it working.
This is what I did:
I put this in my .emacs:
(setq sgml-ecat-files
(list
(expand-file-name "C:\tools\lib\docbook\docbook-xml-4.2\ecatalog")
)
)
(setq sgml-recompile-out-of-date-cdtd "ask")
Then I created the file "ecatalog" with this content:
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.ced"
My XML-files uses this declaration:
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "file:///c:\tools\lib\docbook\docbook-xml-4.2\docbookx.dtd">
Nothing happens when I start emacs and load a XML-file. When I try to add a new element I get this message: "Opening input file: no such file or directory, c:/tools/lib/docbook/docbook-xml-4.2/"
Currently my .emacs looks like this:
;; append some additional paths to load-path
(setq load-path
(nconc load-path (list "C:/PROGRA~1/Emacs/site-lisp"
"C:/PROGRA~1/Emacs/site-lisp/psgml-1.2.5")))
(autoload 'lyskom "lyskom" "Start LysKOM" t)
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
(setq sgml-ecat-files
(list
(expand-file-name "C:\tools\lib\docbook\docbook-xml-4.2\ecatalog")
)
)
(setq sgml-recompile-out-of-date-cdtd "ask")
/Kenneth
> -----Original Message-----
> From: Jirka Kosek [mailto:jirka@kosek.cz]
> Sent: Friday, January 17, 2003 15:39
> To: Kenneth Johansson
> Cc: DOCBOOK-APPS
> Subject: Re: DOCBOOK-APPS: Caching the DocBook dtd when using PSGML
>
>
> Kenneth Johansson wrote:
>
> > 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.
>
> Put following into your .emacs:
>
> (setq sgml-ecat-files
> (list
> (expand-file-name "/some/path/ecatalog")
> )
> )
> (setq sgml-recompile-out-of-date-cdtd "ask")
>
> And then setup catalog for precompiled DTD /some/path/ecatalog:
>
> PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.ced"
>
> This will instruct Emacs to store precompiled DTD for DocBook
> automatically to docbookx.ced file.
>
> Jirka
>
> --
> -----------------------------------------------------------------
> Jirka Kosek
> e-mail: jirka@kosek.cz
> http://www.kosek.cz
>
>