This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: sgml-parent-document
- To: "Kunath, Marcel" <kunathma at ais dot msu dot edu>
- Subject: Re: DOCBOOK-APPS: sgml-parent-document
- From: Mark Johnson <mark at phy dot duke dot edu>
- Date: Sat, 21 Apr 2001 00:57:13 -0400
- Cc: docbook-apps at lists dot oasis-open dot org
- References: <17F0EC17EF87D311BF65009027D3C39D01FC8C1B@ais.msu.edu>
- Reply-to: mark at phy dot duke dot edu
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
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org