This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: The best way to 'include' parts of a DocBook
- From: Janning Vygen <vygen at gmx dot de>
- To: Ljósálfr <fjolsvit at netscape dot net>,docbook at lists dot oasis-open dot org
- Date: Tue, 10 Sep 2002 17:52:02 +0200
- Subject: Re: DOCBOOK: The best way to 'include' parts of a DocBook
- Organization: Planwerk 6 /websolutions
- References: <3D7E0F96.1080005@netscape.net>
Am Dienstag, 10. September 2002 17:28 schrieb Ljósálfr:
> I want to create blocks of text, for example, <glossentery/>s and
> 'include' them in my text at different places. One strategy I
> have come up with is to create a separate file for each entry and
> then add an <!ENTITY term SYSTEM "term.xml"> for each term. This
> starts to get rather ugly if I put them all in the '['...']' of the
> DocType specifier.
hi,
You can put all your external entities in a different file so you
dont have them in DocType specifier.
But what i like most is to use XInclude.
At least xsltproc supports XInclude if you call it with --xinclude
option. But i guess other parsers do it as well.
Check this web site for more informations on modular doc book files
with XInclude:
http://www.sagehill.net/xml/docbookxsl/ModularDoc.html
I use XInclude all the time and by now i see no disadvantage over
external entities.
kind regards
janning
> First of all, does anybody understand what I'm attempting? If so,
> is there a more elegant way of achieving this?
--
Planwerk 6 /websolutions
Herzogstraße 86
40215 Düsseldorf
fon 0211-6015919
fax 0211-6015917
http://www.planwerk6.de