diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2011-08-07 21:20:26 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2011-08-07 21:40:28 -0400 |
commit | 888135ef815766f0421438430ca40809e4f7e411 (patch) | |
tree | dfa7429cc526a83a173bd3228500184baab11167 | |
parent | 5ba82aec6547513ea182cbc6cb95b472bbfb9dc5 (diff) |
docbook pdf: add xsl parameter to locate images
Unlike html, pdf/ps requires a full path name to find images,
but only needs it to make an internal copy of it at build time.
The image can later be removed and the image still shows up in the pdf doc.
This allows us to use the absolute builddir.
This parameter must not be used for html which loads the image from disk
at user read time. The image is removed from builddir after build is done,
and we do not know where the image will be installed by the distro.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | docbook.am | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -41,8 +41,10 @@ XMLTO_XHTML_FLAGS = \ -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl \ --stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css +# Caution: img.src.path *must* not be used for html. Pdf copies the image. XMLTO_FO_FLAGS = \ - -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl + -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl \ + --stringparam img.src.path=$(abs_builddir)/ endif HAVE_STYLESHEETS shelf_DATA += $(docbook:.xml=.html) |