This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Including C source code in a document
Michael Wiedmann <michael.wiedmann@detewe.de> writes:
> Jorge Godoy wrote:
> ...
> > This solution would require me to actually put the source in the
> > document. Isn't there any solution that allow me to get the C file as
> > an entity? This would be much more interesting since I'd always have
> ...
>
> Sorry,
> I can't help you with this :(
<!DOCTYPE k [
<!ENTITY c SYSTEM "file.c">
<!ELEMENT k - - (#PCDATA)>
]>
<k>
<![ RCDATA [
&c;
]]>
</k>
Make sure file.c doesn't contain strings looking like General Entities.
It's better to preprocess file.c.
--
work : ke@suse.de | ------ ,__o
: http://www.suse.de/~ke/ | ------ _-\_<,
home : keichwa@gmx.net | ------ (*)/'(*)