This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Efficiently including images in DocBook
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Efficiently including images in DocBook
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Mon, 25 Sep 2000 13:17:48 -0400
- References: <20000924142624.A51240@canyon.nothing-going-on.org>
- Reply-to: Norman Walsh <ndw at nwalsh dot com>
/ Nik Clayton <nik@nothing-going-on.demon.co.uk> was heard to say:
| Producing the postscript version doesn't work. For some reason, although
| fig1.eps exists in the same directory, the stylesheets don't use fig1.eps,
| and instead use the contents of the textobject, so I get ASCII art in my
| Postscript output.
Uh, that's odd. If you send me your stylesheet and a short test
document I'll run my eyeballs over it.
| I tried an alternative method, where I include two imageobjects, but wrap
| them with the parameter entities so that only one is visible to the processor
| when the document is converted;
|
| <mediaobject>
| <![ %output.png; [
| <imageobject>
| <imagedata fileref="fig1.png" format="png">
| </imageobject>
| ]]>
|
| <![ %output.eps; [
| <imageobject>
| <imagedata fileref="fig1.eps" format="eps">
| </imageobject>
| ]]>
If you go with this approach, I recommend that you leave both images
in (skip the marked sections) and teach the stylesheets to explicitly
select the right one.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Where it is permissible both to
http://www.oasis-open.org/docbook/ | die and not to die, it is an abuse
Chair, DocBook Technical Committee | of valour to die.--Mencius