This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: including C source files
- From: Peter Eisentraut <peter_e at gmx dot net>
- To: John Gruenenfelder <johng at bach dot as dot arizona dot edu>
- Cc: docbook at lists dot oasis-open dot org
- Date: Tue, 02 Apr 2002 18:05:46 -0500 (EST)
- Subject: Re: DOCBOOK: including C source files
John Gruenenfelder writes:
> My problem is that the Docbook parser treats the included text as more SGML,
> so any occurances of '<', '>', and '&' cause problems. How can I instruct
> Docbook to include the contents of the file without having the parser recurse
> into it?
There isn't a really good solution. Your best bet is to run the C code
through a sed script to escape the funny characters.
--
Peter Eisentraut peter_e@gmx.net