This is the mail archive of the
sgml-tools@via.ecp.fr
mailing list .
RE: CDATA entities?
- To: <sgml-tools at via dot ecp dot fr>
- Subject: RE: CDATA entities?
- From: "Gershon Leib Joseph" <gershon at mainsoft dot com>
- Date: Thu, 9 Mar 2000 16:05:51 +0200
- Reply-To: sgml-tools at via dot ecp dot fr
Bruce,
The following should work:
<!ENTITY mysource.c SYSTEM "mysource.c" CDATA>
Otherwise, your original entity declaration should work. However, you will
have to preprocess your C code to replace the "<" with "<" and "&" with
"&"
I assume when you say that your original entity declaration almost works,
it's because you get the < interpreted as element start tag and &
interpreted as entity start. I have managed to import C code into
<programlisting> and cleaned up the < and & problems in the SGML.
Hope this helps,
Gershon