This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Admonitions
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Admonitions
- From: Michael Smith <smith at xml-doc dot org>
- Date: Tue, 09 Oct 2001 17:39:16 +0900
- Cc: docbook at lists dot oasis-open dot org, daveP at dpawson dot freeserve dot co dot uk
- List-Id: <docbook.lists.oasis-open.org>
- References: <DEEBKIOFGPHEEJPDAJMHGELICBAA.kenw@ddd.co.za>
[Any followups on this should go to docbook-apps]
Ken Walton <kenw@ddd.co.za> writes:
> Hi All
>
> I am working with admonitions, specifically <tip> and <warning> and would
> like to include a graphic.
>
> I have tried using <tip graphic="tip.gif">Tie your shoe laces...</tip> but
> cannot seem to output the graphic in html (I'm using chunk.xsl).
>
> Can anyone help?
By default, admon graphics aren't included in output from the
stylesheets. To get the graphics, you have to set the value of the
admon.graphics parameter to something other than "0", like "1". If
you've never perused the html/param.xsl file, you definitely should
take a look through that.
To set parameters, you either need to make an XSLT customization layer
file and put them in there, or use whatever command-line syntax your
XSLT engine requires. If you're using full Saxon, you can do this:
java com.icl.saxon.StyleSheet yourDocument.xml \
<yourDbkXSLTdirectory>/html/chunk.xsl admon.graphics=1
DaveP -- if you're still working on a FAQ, seems like this should
maybe go in there (or does the FAQ not cover stylesheet questions?).
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>