Re: Re: Correct sgml-declaration for (X)HTML

Syd Bauman <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
> For validation, I use:  [whitespace added]
>  (add-hook
>   'xml-mode-hook
>   (lambda
>     nil
>     (setq sgml-validate-command
>  	    "SP_CHARSET_FIXED=YES
>            SP_ENCODING=XML
>            SGML_CATALOG_FILES=/usr/share/doc/packages/sp/html-xml/xml.soc
>            nsgmls -wxml -s %s %s")))

Wow. That's cool. Is the ability to specify environment variables on
the command-line like that OS or shell specific?

In any case, rather than use xml-mode-hook, you can now (as of I
don't know what version) just set the variable sgml-xml-validate-
command (before loading psgml, I think).

With respect to the original poster's question and subsequent
discussion, I suspect (but do not know) that you are using the same
SGML declaration for XML that I am using. I suspect so because I set
my SGML catalog file to a file called xml.soc also; it has only one
entry, which points to an SGML declaration, xml.dcl. Now of course,
it's the contents of that file that count, but it wouldn't surprise
me at all if ours were the same.


-------------------------------------------------------
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M        http://www.thinkgeek.com/sf/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.