[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK: Re: external programlistings
Dave Makower <davemak@iclick.com> writes: | However, I'd like to have the program reside in an external file, | say, "Tutorial1.java". Is there a way for me to include the | external file and have it treated as if it were a CDATA section? | This would save me from having to maintain two copies of the program | content. Please, try: <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [ <!ENTITY tips SYSTEM "tips.sgml"> ]> ... <programlisting><![ RCDATA [&tips; ]]> </programlisting> You're looking for RCDATA (Replacable Character Data). I hope, XML didn't drop this feature. -- work : ke@suse.de | : http://www.suse.de/~ke/ | ------ ,__o home : ke@gnu.franken.de | ------ _-\_<, : http://www.franken.de/users/gnu/ke/ | ------ (*)/'(*)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC