This is the mail archive of the sgml-tools@via.ecp.fr mailing list .


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

RE: CDATA entities?


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 "&lt;" and "&" with
"&amp;"

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




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