OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: 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                     |        ------   (*)/'(*)



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC