This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Editing documents included within other documents?
- From: Henrik Motakef <henrik dot motakef at web dot de>
- To: Galen Boyer <galenboyer at hotpop dot com>
- Cc: docbook at lists dot oasis-open dot org
- Date: Wed, 19 Feb 2003 08:06:28 +0100
- Subject: Re: DOCBOOK: Editing documents included within other documents?
- References: <uof58zve7.fsf@hotpop.com>
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