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: 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 





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


Powered by eList eXpress LLC