This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]