OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK: Newbie - How to include entities?

A newbie asks:

So far, my book looks like this:

	<!DOCTYPE book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [

	<!ENTITY john		"John Lennon">
	<!ENTITY paul		"Paul McCartney">
	<!ENTITY george	"George Harrison">
	<!ENTITY ringo		"Ringo Starr">

	<!ENTITY chap1		SYSTEM "chap1.sgml">
	<!ENTITY chap2		SYSTEM "chap2.sgml">
	<!ENTITY chap3		SYSTEM "chap3.sgml">

		<!--	bookinfo entries go here...	-->

1. The john, paul, george, and ringo entities are used throughout
the chap1, chap2, and chap3 files.  I would like to keep the john,
paul, george, and ringo entities (plus many others) in a separate
file and include them.  Can I do this?  How?

2. I am writing a users manual that will be showing error messages
like "An error occurred in module ? - please contact the help desk."
I currently do something like this:

	<!ENTITY part1	"An error occurred in module ">
	<!ENTITY part2	"please contact the help desk.">

	&part1; moduleX &part2;
	&part1; moduleY &part2;
	&part1; moduleZ &part2;

Is it possible to create an entity or macro where I can substitute
the % (or some other symbol) with a parameter?  Maybe something


to produce the same results?  Is it possible to pass multiple arguments?

Thanks -
Jim Ide

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC