This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
I Need to insert C-language code into DocBook XML
- From: dbook at centrum dot cz
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 12 Mar 2002 22:08:39 +0100
- Subject: DOCBOOK-APPS: I Need to insert C-language code into DocBook XML
I have problem - how to put into DocBook XML content of file with
C-language code?
Problem is, that this content must be placed in external file
(source.c), no directly in DocBook XML.
My idea was:
<!DOCTYPE book PUBLIC ...
[<!ENTITY ccode SYSTEM "source.c">]
>
...
<programlisting>
<![CDATA[
&ccode;
]]>
</programlisting>
...
but it of course ignores everything in CDATA.
Is there some way to place C-code with "dangerous" characters
like &,$,(,) without modifying external file with C-code?
Sorry for my english,
Thank you.
--------------------
Centrum pro milovníky peněz http://finance.centrum.cz