This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: external programlistings
- To: Dave Makower <davemak at iclick dot com>
- Subject: DOCBOOK: Re: external programlistings
- From: Karl EICHWALDER <ke at gnu dot franken dot de>
- Date: 28 Mar 2000 08:26:10 +0200
- Cc: DocBook Mailing List <docbook at lists dot oasis-open dot org>
- References: <p04310115b505b80e13f0@[192.168.10.23]>
- Reply-To: docbook at lists dot oasis-open dot org
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/ | ------ (*)/'(*)