discuss: Docbook XML and ENTITIES
Subject:
Re: Docbook XML and ENTITIES
From:
David Horton ####@####.####
Date:
9 Jun 2003 21:42:17 -0000
Message-Id: <3EE50090.9010700@megsinet.net>
Hal Burgiss wrote:
> Example:
>
> <!ENTITY % draft "INCLUDE">
>
> Does Docbook XML support this, and if so what is the correct syntax?
>
> This works with SGML but not XML:
>
> <![%draft;[ testing this stuff ]]>
>
Hal,
Here is an example from an XML document that is divided into many
separate files and then brought together using entities:
In the beginning I declare:
<!ENTITY legal SYSTEM "legal.xml">
<!ENTITY intro SYSTEM "intro.xml">
...and so on...
And then later in the document I use it as:
&intro;
&legal;
...and so on...
Hope that helps.
Dave