[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PSGML and split documents



Can anyone show me how to make the settings for editing a split document
in emacs PSGML mode, please?

Document structure:

Top level: reference.sgml:

  <!-- reference.sgml
  -
  - Postgres User's Reference documentation.
  - thomas 1998-03-14
  -
  - -->
  <!doctype book      PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
  <!entity intro      SYSTEM "intro.sgml">

  <!entity % allfiles SYSTEM "ref/allfiles.sgml">         -----+
  %allfiles;                                                   |
                                                               |
  <!entity biblio     SYSTEM "biblio.sgml">                    |
  <!entity contacts   SYSTEM "contacts.sgml">                  |
  ]>                                                           |
  <Book>                                                       |
  ...       [ all elements here are terminated ]               |
  &commands;                    ----+                          |
  ...                               |                          |
                                    |                          |
                                    |                          |
2nd level: commands.sgml:       <---+                    <-----+

  <Chapter>
  <Title>Commands</Title>

  <Para>
  </Para>

  &alterTable;                                           ------+
  &select;                                                     |
                                                               |
  </Chapter>                                                   |
                                                               |
3rd level: alter_table.sgml is the file to be edited.    <-----+
It begins:

  <REFENTRY ID="SQL-ALTERTABLE-1">



PSGML documentation says:

  "Using a Split Document

  You can have the `DOCTYPE' declaration in another file by setting
  sgml-doctype to the other file. 

  User Option: sgml-parent-document 
      Used when the current file is part of a bigger document. 

      The variable describes how the current file's content fit into the
      element hierarchy. The variable should have the form 

      (parent-file context-element* top-element (has-seen-element*)?)"

However, the documentation gives no example and I have not yet found a
combination that works.

How should I define this, please?

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver

PGP key from public servers; key ID 32B8FAA1

                 ========================================
    Come to me, all you who labour and are heavily laden, and I will
    give you rest. Take my yoke upon you, and learn from me; for I am
    meek and lowly in heart, and you shall find rest for your souls.
    For my yoke is easy and my burden is light.    (Matthew 11: 28-30)



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: