You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Robert P. J. Day" <rp...@mindspring.com> on 2003/04/13 19:24:15 UTC

can i redefine the relative location of callout images and graphics?

  apparently, i spoke too soon about how easy it was to extend
red hat's "xmlto" utility to select FOP instead of passivetex
for the FO -> PDF step.  here's the problem, perhaps someone
has a suggestion.

  in my original docbook file, i want to incorporate some simple
figures, admonition images, callout images and the like.  to do 
this, i specify the location of these things relative to the
current working directory with things like:

  <xsl:param name="admon.graphics.path" select="'images/'"/>

  <mediaobject>
   <imageobject>
    <id fileref="blah.pdf"/>

and so on.  in short, all the locations are listed as relative
to the working directory containing all the source.

  unfortunately, "xmlto" early on creates a temporary directory
in /tmp/xmlto-??????, and does all its work under there, which
means those locations are no longer valid if they're treated as
relative to the current directory.

  when "xmlto" calls pdfxmltex, the way it *seems* to work is
that it extracts the original working directory and sets an
environment variable TEXINPUTS to hold that, so that references
will be resolved relative to the (correct) original directory,
not to the current temporary working directory.

  is there some way to do that with FOP?  until this is 
adjusted, all references to callouts or admonitions or
imageobjects generate errors since, obviously, none of those
things are in the current working directory.

  suggestions?

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org