This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: inserting an external source code example into xml docbook
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Lorenzo Delana <ldelana at libero dot it>
- Cc: docbook <docbook at lists dot oasis-open dot org>
- Date: Wed, 03 Apr 2002 09:40:21 +0200
- Subject: Re: DOCBOOK: inserting an external source code example into xml docbook
- References: <200204030153.21800.ldelana@libero.it>
Lorenzo Delana wrote:
> <!ENTITY example01 SYSTEM "example01.txt">
>
> <para>
> <example>
> <title>a little example</title>
> &example01;
> </example>
> </para>
You can use following construct which is handled by both DSSSL and XSL
stylesheets (you must set parameter use.extensions=1 when using XSL
ones):
<programlisting><inlinegraphic
fileref="example.txt" format="linespecific"/></programlisting>
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz