Re: DOCBOOK-APPS: Need help including c source

From
Peter Eisentraut <>
Date
2001-10-18T21:01:11+00:00
ID
Thread
Re: DOCBOOK-APPS: Need help including c source
Eric Richardson writes:

> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>           "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
> <!ENTITY myfunc SYSTEM "myfunc.c">
> ]>
>   <chapter>
>      <title>Exceptions</title>
>
>      <programlisting>
>        <![CDATA[&myfunc;]]>
>      </programlisting>
>
>    </chapter>
>
> If I leave out the CDATA then it won't parse.

Try

<!ENTITY myfunc SYSTEM "myfunc.c" CDATA>

-- 
Peter Eisentraut      http://funkturm.homeip.net/~peter