This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 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:

C:\OpenJade-1.3\dsssl\catalog;f:\emacs\sgml\dtd\html\catalog;f:\emacs\sgml\d
td\docbook41\docbook.cat;f:\emacs\sgml\dtd\docbkx412\docbook.cat;f:\emacs\sg
ml\stylesheets\docbook\catalog


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))
auto-mode-alist))
(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."
t)
(autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching FILESPEC." t)


;; 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")
))


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" >

<Book></Book>


It won't bring up any new elements.

mk

-----Original Message-----
From: Steffen.Maier@studserv.uni-stuttgart.de
[mailto: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
in
> Win2k)
<snip/>
> 	<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
> 	"F:\emacs\sgml\dtd\docbkx412\docbook.cat" >
<snip/>
> 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")
> 	))
<snip/>
> 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.


-----BEGIN GEEK CODE BLOCK-----
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
------END GEEK CODE BLOCK------

  http://w3studi.informatik.uni-stuttgart.de/~maiersn/
mailto:Steffen.Maier@studserv.uni-stuttgart.de

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]