Install the DocBook SGML DTD

  1. Unzip the files

    Extract the contents of the DocBook DTD archive into a new directory in your SGML tree, e.g. c:\user\default\sgml\dtd\docbook41. Using the version number in the subdirectory name simplifies the installation of several versions in parallel (you might need older versions for reasons of compatibility with older, existing documents).

  2. Register docbook.cat

    The DTD archive contains a catalog file named docbook.cat which must be added to the SGML_CATALOG_FILES environment variable. Use the procedure as described previously. Append the full path (including the filename) of the catalog file, e.g. c:\user\default\sgml\dtd\docbook41\docbook.cat, to the semicolon-separated list.

  3. Create ecatalog

    Use Emacs to create the file ecatalog in the DocBook directory, e.g. c:\user\default\sgml\dtd\docbook41. Insert the following line:

         PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.ced"
       
    

    and save the file.

  4. Set the SGML declaration

    In your _emacs, locate the line:

         sgml-declaration          "d:/user/default/sgml/dtd/docbook41/docbook.dcl"
       
    

    and adjust the path to your local system.

    Note: We just set a reasonable default value in _emacs. The declaration you enter here should match the DocBook DTD that you will use most of the time. If it should be the case that you mainly edit vintage DocBook 3.1 documents, you would rather specify docbook31/docbook.dcl here. Whenever you need a different declaration than the default, use the menu command SGML->User options->Declaration to set a new value.