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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Editing documents included within other documents?


Galen Boyer <galenboyer at hotpop dot com> writes:

> Since I can't have the dtd declaration in the included document, how do
> people handle parsing the appropriate DTD for the subfile?
> 
> I'm using Emacs and XAE.

XAE uses PSGML, right? If so, you can set the variable
`sgml-parent-document' in the included document, like this:


--- file parent.xml: -------------------------------------

<!DOCTYPE book PUBLIC ... [
  <!ENTITY chap1 SYSTEM "chap1.xml">
]>
<book>
  ...
 &chap1;
</book>

--- file chap1.xml: --------------------------------------

<chapter>
  ...
</chapter>
<!--
Local variables:
sgml-parent-document: ("parent.xml" "book" "chapter")
End:
-->

-----------------------------------------------------------

hth
Henrik


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