This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


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

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/ |        ------   (*)/'(*)


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