Re: Re: catalog in sgml-validate-command?

Bob Bernstein <[email protected]> Mon, 3 Nov 2003 15:52:52 -0500
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
On Mon, Nov 03, 2003 at 09:22:01PM +0100, Steinar Bang wrote:

> Could you set the SGML_CATALOG_FILES environment variable to point to
> the desired catalog, before starting emacs?  If so, both psgml and
> nsgmls child processes, should pick it up from there.

I had this in my .emacs:

(setq sgml-catalog-files '("CATALOG" "/usr/pkg/share/sgml/catalog"))

and this enabled psgml to, for instance, find the dtd I was using 
without an explicit system identifier. It used the public identifier. 
But I don't know how to specify this variable so that it gets to the 
Validate command. This does not work:

(setq sgml-validate-command "nsgmls -c usr/pkg/share/sgml/catalog -s %s 
%s")

Also, doing this:

setenv SGML_CATALOG_FILES /usr/pkg/share/sgml/catalog

doesn't seem to help either. Setting the var in the environment, and 
removing the line above from .emacs, makes things worse, as psgml then 
cannot find the dtd without a system identifier.



-- 
Bob Bernstein   


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/