This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] How to share custom entity definitions across documents
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Taro Ikai' <tikai at ABINITIO dot COM>, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 25 Jul 2003 14:13:30 -0400
- Subject: RE: [docbook-apps] How to share custom entity definitions across documents
You can create a single file containing all of your shared entity
declarations and then include it in each of your files.
For example, you could have a file named "global.ent" that would look
something like:
<!ENTITY mystring "My String">
<!ENTITY another_string "Another String">
Then, the DOCTYPE declaration for each file would be:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook 4.2 XML//EN" "http://www...." [
<!ENTITY % global_entities SYSTEM "global.ent">
%global_entities;
]>
(Note the use of the percent sign (%) when declaring such "parameter
entities" that include DTD declarations.)
Jeff Beal
> -----Original Message-----
> From: Taro Ikai [mailto:tikai@ABINITIO.COM]
> Sent: Friday, July 25, 2003 2:04 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] How to share custom entity definitions across
> documents
>
>
> I want to share entity definitions across multiple Docbook documents.
>
> Is there a way to do this? For example, I want to have:
>
> <!ENTITY mystring "My String">
>
> in one place, and be able to reference it by &mystring; from many
> documents.
>
> How can I do this? Do I have to modify the DTD?
>
> Taro
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-help@lists.oasis-open.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org