GNU Info

Info Node: (psgml.info)Inserting a DOCTYPE

(psgml.info)Inserting a DOCTYPE


Next: Information from the DTD Prev: Using a Split Document Up: Managing the DTD
Enter node , (file) or (file)node

Inserting a DOCTYPE
===================

   *** Describe the DTD menu in general.  Describe customized entries
for special DTDs.  Mention `C-c C-u C-d' for inserting a DOCTYPE from
keyboard.

   If you change the doctype you must execute `sgml-parse-prolog',
changes in the doctype are not automatically recognized.

 - User Option: sgml-custom-dtd
     Menu entries to be added to the DTD menu.  The value should be a
     list of entries to be added to the DTD menu.

     Every entry should be a list.  The first element of the entry is a
     string used as the menu entry.  The second element is a string
     containing a doctype declaration (this can be nil if no doctype).
     The rest of the list should be a list of variables and values.
     For backward compatibility a single string instead of a variable
     is assigned to `sgml-default-dtd-file'.  All variables are made
     buffer local and are also added to the buffers local variables
     list.

     When an entry is selected from the DTD menu, the doctype
     declaration will be inserted, the variables will be set to the
     values in the entry and a local variables list will be created in
     the buffer.

     Example:

             (("HTML" nil
               sgml-default-dtd-file "~/sgml/html.ced"
               sgml-omittag nil sgml-shorttag nil)
              ("HTML+" "<!doctype htmlplus system 'htmlplus.dtd'>"
               "~/sgml/htmlplus.ced"
               sgml-omittag t sgml-shorttag nil)
              ("DOCBOOK" "<!doctype docbook system 'docbook.dtd'>"
               "~/sgml/docbook.ced"
               sgml-omittag nil sgml-shorttag t)))


automatically generated by info2www version 1.2.2.9