OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: DOCBOOK-APPS: Emacs and XML

I have to correct my expressions. I did not set sgm-catalog-files in my
.emacs. I set it in the NT environment variables.

System variable SGML_CATALOG_FILES:


I put docbkx412 into f:\emacs\sgml\dtd\docbkx412\

I have in my .emacs (among other things):

;; load xml-mode 
(setq auto-mode-alist
(append (list (cons "\\.xml\\'" 'xml-mode))
(autoload 'xml-mode "psgml" nil t)
(setq sgml-xml-declaration "C:/OpenJade-1.3/pubtext/xml.dcl")

;; Start DTD mode for editing SGML-DTDs
(autoload 'dtd-mode "tdtd" "Major mode for SGML and XML DTDs.")
(autoload 'dtd-etags "tdtd"
"Execute etags on FILESPEC and match on DTD-specific regular expressions."
(autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching FILESPEC." t)

;; ecat support
(setq sgml-ecat-files
    (expand-file-name "f:/emacs/sgml/dtd/html/ecatalog")
    (expand-file-name "f:/emacs/sgml/dtd/docbook41/ecatalog")
;    (expand-file-name "f:/emacs/sgml/dtd/docbkx412/ecatalog")

and this is as far as I get with {mark-up->insert element}

<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
"F:\emacs\sgml\dtd\docbkx412\docbook.cat" >


It won't bring up any new elements.


-----Original Message-----
From: Steffen.Maier@studserv.uni-stuttgart.de
Sent: Thursday, May 03, 2001 3:53 PM
To: Kunath, Marcel
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: Emacs and XML

Hello Marcel,

On Thu, 3 May 2001, Kunath, Marcel wrote:
> I added docbkx412 to my sgml-catalog-files. (F:\emacs\sgml\dtd\docbkx412
> Win2k)
> 	<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
> 	"F:\emacs\sgml\dtd\docbkx412\docbook.cat" >
> I got the following in my .emacs:
> 	;; ecat support
> 	(setq sgml-ecat-files
> 	  (list
> 	    (expand-file-name "f:/emacs/sgml/dtd/html/ecatalog")
> 	    (expand-file-name "f:/emacs/sgml/dtd/docbook41/ecatalog")
> 	    (expand-file-name "f:/emacs/sgml/dtd/docbkx412/ecatalog")
> 	))
> The ecatalog file says:
> 	PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbook.ced"

> I open the test file and it color marks the declaration. It also compiles
> and saves docbook.ced. It allows me to create the book tags but then it
> doesn't have any tags available underneath that.
> I am confused on where I am stuck.

ECATalog-files are for PSGML's internal caching of preparsed DTDs. Before
PSGML can successfully parse and cache such a preparsed DTD it needs to
have "normal" SGML-catalog files, just as any other SGML-application
supporting catalogs does.

For me it was sufficient to set the evironment variable SGML_CATALOG_FILES
(tested under WinNT, NTEmacs 20.1, PSGML 1.2.[1|2]) to my central
catalog-file which in turn references beneith others the DocBook XML 4.1.2
catalog "docbook.cat". It seemed to me as if psgml looks up the
catalog-position from the mentioned env-var as a default when nothing else
is set via elisp-variables. So there should be no need to setq
sgml-catalog-files (not to be mixed up with sgml-ecat-files).

HTH, Steffen.

Version: 3.12
GCS/E d- s++:- a-->?@ C(++++) ULC++++$ P+ L++(+++) E++>+++ W++(--) N+ !o
K? w O- M- V? PS+(++) PE(-) Y+ PGP>+++ t 5 X+++ R* tv(-) b+ DI++ D G>++ e
h* r- y? UF


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC