This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Newbie - How to include entities?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]