This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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   


------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]