Re: DOCBOOK-APPS: sgml-parent-document

From
Mark Johnson <>
Date
2001-04-21T13:15:03+00:00
ID
Thread
Re: DOCBOOK-APPS: sgml-parent-document
Kunath, Marcel writes:

> I write a master file in NTEmacs with
> linking to sub content... and open one of
> the sub content files and it errors on me:
> 
> 	External entity CHAPTER not found
> 
Marcel, 

Put the local variables statement in the *entity* document(s), not in
the parent doc file. In your case, you could put something like:

 <!-- Keep this comment at the end of the file
 Local Variables:
 sgml-parent-document: ("index.sgml" "Book" "chapter")
 End:
 -->

at the end of your chapter file named "ar.sgml", like so: 

--------------------------------------------------------
  <chapter id="ar">
    <title>title</title>
    <para>text</para>
          ...
  </chapter>

   <!-- Keep this comment at the end of the file
   Local Variables:
   sgml-parent-document: ("index.sgml" "Book" "chapter")
   End:
   -->
--------------------------------------------------------

The pattern that works for me is:

 *ml-parent-document: ("parent-filename" "top-element-of-parent-file" "top-element-of-current-file")

(I never use the optional 4th "has-seen-element" entry.) 


Hope that helps,

Mark

_____________________________________

Mark Johnson
Senior Lecturing Fellow
111 Physics Bldg., Box 90305
Department of Physics 
Duke University
Durham, NC 27708-0305
(919) 660-2504  Fax: (919) 660-2525