This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [PSGML] Splitting docbook files
- To: ian mayo <IanMayo at hotmail dot com>
- Subject: Re: DOCBOOK-APPS: [PSGML] Splitting docbook files
- From: Thomas Andre Berger <thomasbe at osc dot no>
- Date: Tue, 18 Sep 2001 09:26:44 +0200
- Cc: docbook-apps at lists dot oasis-open dot org
- List-Id: <docbook-apps.lists.oasis-open.org>
- Organization: Open Systems Computing AS
- References: <OE633zbtmWxT1OdpGOj000086f8@hotmail.com>
ian mayo <IanMayo@hotmail.com> writes:
> I've found how to insert it into my master as an entity, but since
> the "child" sub-file can't contain a DTG I can't see how to get
> emacs/psgml to allow me to process the DTD or allow my to insert
> elements.
>
> I've set the sgml-parent-file parameter, hoping that this would make
> emacs pull the DTD from the parent file, but this didn't happen.
>
> I guess I could try inserting the DTD reference into the child-file
> and pressing "Parse DTD" from the menu bar - then commenting it out
> again before I do a "real" publish, but I'm hoping there's a better
> way of doing it.
>
> Can anybody give me some direction in this please?
We use preparsed DTDs for PSGML (.ced files) for each sub-file. Point
to that file (using sgml-default-dtd-file), and use the
sgml-parent-document variable to set the correct context you are
starting wrinting at. All variables are set using emacs' Local
Variables-feature.
------------------- START --------------------------------
<sect1>
<title>Introduction</title>
<comment role="proof-reading">$RCSfile: admin_install_common.sgml,v $ $Revision: 1.41 $</comment>
[....]
<!--
Local Variables:
mode: sgml
sgml-default-dtd-file: "/local/share/sgml/ced/docbook-3.1-book.ced"
sgml-declaration: "/local/share/sgml/docbook3.1/docbook.dcl"
sgml-parent-document: ("../jade/database_admin.sgml" "chapter" "sect1")
End:
-->
------------------- END --------------------------------
Hope this helps.
--
Thomas André Berger Open Systems Computing AS
email: thomasbe@osc.no Kongensgt. 9, N-0153 Oslo, Norway
phone +47 2220 4050, fax +47 22 20 02 85
http://www.osc.no/
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>