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]
Other format: [Raw text]

Re: inserting an external source code example into xml docbook


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


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