OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Re: ProgramListingCO bugs on "linespecific image"text files ?

Yann Dirson writes:

> > There are many chars special to sgml in this file, so a simple general
> > entity doesn't work.  Is there some way to declare a general entity to
> > take a file's content as raw CDATA ?
> I additionally tried the following, which does parse, but does not
> output the file's contents:
> <!ENTITY adjust-dll SYSTEM "../src/adjust-dll" CDATA linespecific>

To include program text with funny characters into DocBook, I use the

<!ENTITY test SYSTEM "something.c">



This will paste the contents of the file (with all the funny characters
magically translated to character entities) during parsing, before
formatting, so all the stylesheet features, such as line numbering,
callouts, etc. work.  This is unlike the <inlinegraphic entityref="...">
solution, where substitution happens during formatting.

Peter Eisentraut   peter_e@gmx.net

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC