This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Newbie - How to include entities?
- To: "Ide, Jim" <jide at lgb-inc dot com>, docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Newbie - How to include entities?
- From: Rune Enggaard Jensen <r dot e dot jensen at bigfoot dot com>
- Date: Thu, 26 Apr 2001 07:47:10 +0200
- References: <499503A3A75AD211995E00A0C9EA5CAA5390C7@FFX_MAIL>
"Ide, Jim" <jide@lgb-inc.com> 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
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org