This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Inserting external code into docbook
- From: Jens Stavnstrup <js at ddre dot dk>
- To: Joachim Ziegler <ziegler at algorilla dot de>
- Cc: Bob Stayton <bobs at caldera dot com>, DocBook <docbook at lists dot oasis-open dot org>
- Date: Thu, 24 Oct 2002 16:14:50 +0200 (CEST)
- Subject: Re: DOCBOOK: Inserting external code into docbook
Joachim,
Bob alleady included that in chapter 3. You just forgot to add the
DocBook-XSL extension to your classpath.
java -cp
/usr/lib/docbook-xsl/extensions/saxon65.jar:/usr/lib/saxon-6.5/saxon.jar \
com.icl.saxon.Stylesheet ...
Regards
Jens
On Thu, 24 Oct 2002, Joachim Ziegler wrote:
> Am Mittwoch, 23. Oktober 2002 18:26 schrieb Bob Stayton:
> > Looking back in the archives, it seems that this is how you
> > do it with 4.1.2:
> >
> > <programlisting>
> > <inlinemediaobject>
> > <imageobject>
> > <imagedata fileref="myfunc.c" format="linespecific"/>
> > </imageobject>
> > </inlinemediaobject>
> > <programlisting>
>
> Yes, this is valid with 4.1.2
>
> But why isn't there an easier mechanism/markup for verbatim inclusion of text
> files? I suppose that this is something which occurs frequently. (?)
>
> > layer or on the command line. The parameters are
> > use.extensions=1 and textinsert.extension=1. Both must be
> > set for it to work.
>
> I get the following error:
>
> $ java -classpath /usr/lib/saxon-6.5/saxon.jar com.icl.saxon.StyleSheet -o
> Pythonbuch.html Pythonbuch.xml htmlsheet.xsl use.extensions=1
> textinsert.extension=1
>
> No insertfile extension available.
> Processing terminated by xsl:message at line 812
>
> What does that mean?
>
> Bob, could these extensions be a subject for your "Using the DocBook XSL
> Stylesheets"?
>