This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Automatic copying of text between chapters
- From: Jirka Kosek <jirka at kosek dot cz>
- To: dbook at centrum dot cz
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 03 Apr 2002 22:29:11 +0200
- Subject: Re: DOCBOOK-APPS: Automatic copying of text between chapters
- References: <20020403193441Z684117-23981+162@mail.centrum.cz>
dbook@centrum.cz wrote:
> do you now some docbook's construction, which provides automatic
> copying of text from one chapter to other?
You can use text entities or XInclude.
> Specially, i make in docbook course of c-language. I need to
> place exercises for students into end of every chapter and
> solutions with exercises again into appendix. Because exercises
> and solutions are large and will be often updated, i want to
> update it only in appendix. And into end of chapters i want only
> copy text of exercise from appendix and put there link to
> solution. Is it possibly?
You can store each excercise in a separate external text entity and
include it in two places -- in appendix and in a regular chapter.
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz