Re: DOCBOOK: Newbie - How to include entities?

From
Rune Enggaard Jensen <>
Date
2001-04-26T05:49:01+00:00
ID
000d01c0ce14$57864920$
Thread
Re: DOCBOOK: Newbie - How to include entities?
"Ide, Jim" <> wrote

> 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?

Try making the file, let's call it myentities.ent, and use

<!DOCTYPE book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
<!ENTITY % myents SYSTEM "myentities.ent">
%myents;
]>

Then consider switching to version 4.1 of DocBook ;-)

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

Nope!

Hope this helps.

Best regards

    Rune Enggaard