Index: openacs-4/packages/acs-core-docs/www/psgml-mode.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/psgml-mode.html,v diff -u -r1.24 -r1.25 --- openacs-4/packages/acs-core-docs/www/psgml-mode.html 11 Dec 2003 23:08:46 -0000 1.24 +++ openacs-4/packages/acs-core-docs/www/psgml-mode.html 4 Feb 2004 16:47:33 -0000 1.25 @@ -1,7 +1,7 @@ -Using PSGML mode in Emacs

Using PSGML mode in Emacs

By David Lutterkort

+Using PSGML mode in Emacs

Using PSGML mode in Emacs

By David Lutterkort

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

What it is

PSGML Mode is a mode for editing, umm, SGML and XML documents in emacs. It +

Note: nxml mode replaces and/or complements psgml mode. More information.

What it is

PSGML Mode is a mode for editing, umm, SGML and XML documents in emacs. It can parse a DTD and help you insert the right tags in the right place, knows about tags' attributes and can tell you in which contexts a tag can be used. If you give it the right DTD, that is. But even without a DTD, @@ -28,7 +28,7 @@ in it. By maintaining your own CATALOG, it is easy to add more DTD's without changing your emacs settings. (How about that HTML 4.01 DTD you always wanted to get from W3C ? The -DTD is in the zip archives and tarballs available on the site.

That's it. Now you are ready to tell emacs all about PSGML mode and +DTD is in the zip archives and tarballs available on the site.)

That's it. Now you are ready to tell emacs all about PSGML mode and that funky CATALOG

What to tell emacs

If you installed PSGML mode in a non-standard location, e.g., somewhere in your home directory, you need to add this to the load-path by adding this line to your .emacs file:

@@ -60,7 +60,7 @@
       ;; Some convenient key definitions:
       (define-key sgml-mode-map "\C-c\C-x\C-e" 'sgml-describe-element-type)
       (define-key sgml-mode-map "\C-c\C-x\C-i" 'sgml-general-dtd-info)
-      (define-key sgml-mode-map "\C-c\C-x\C-t" 'sgml-describe-entity))))
+      (define-key sgml-mode-map "\C-c\C-x\C-t" 'sgml-describe-entity)
    
 

What is a DOCTYPE ?

All SGML and XML documents that should conform to a DTD have to declare a doctype. For the docbook XML, all your .xml files whould start with