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.48 -r1.49 --- openacs-4/packages/acs-core-docs/www/psgml-mode.html 27 Oct 2014 16:39:24 -0000 1.48 +++ openacs-4/packages/acs-core-docs/www/psgml-mode.html 7 Aug 2017 23:47:52 -0000 1.49 @@ -1,5 +1,5 @@ -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.

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 @@ -13,7 +13,7 @@ you if it found it or not.

If you don't have PSGML preinstalled in your Emacs, there are two things you can do:

  1. On Linux: Get the psgml rpm from RedHat's -docbook-tools and install it as usual.

  2. On other systems: Get the tarball from the PSGML Website. +docbook-tools and install it as usual.

  3. On other systems: Get the tarball from the PSGML Website. Unpack it and follow the install instructions.

Using CATALOG files

The easiest way to teach PSGML mode about a DTD is by adding it to your own CATALOG. Here is an example of how you can set that up for the Docbook XML DTD.

  1. Get the Docbook XML DTD @@ -81,6 +81,6 @@ top.xml, that the element in the parent that will enclose the current document is a book and that the current file's topmost element is a sect1.

How to use it

Of course, you should read the emacs texinfo pages that come with PSGML -mode from start to finish. Barring that, here are some handy commands:

KeyCommand
C-c C-eInsert an element. Uses completion and only lets you insert elements that +mode from start to finish. Barring that, here are some handy commands:

KeyCommand
C-c C-eInsert an element. Uses completion and only lets you insert elements that are valid
C-c C-aEdit attributes of enclosing element.
C-c C-x C-iShow information about the document's DTD.
C-c C-x C-eDescribe element. Shows for one element which elements can be parents, -what its contents can be and lists its attributes.

Further reading

Start with the the section called “OpenACS Documentation Guide”

($Id$)
View comments on this page at openacs.org
+what its contents can be and lists its attributes.

Further reading

Start with the the section called “OpenACS Documentation Guide”

($Id$)