From 5a286420a2356d611929b700e5338ab4649d707f Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Tue, 23 Aug 2011 20:37:08 -0400 Subject: 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 --- docbook.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docbook.am b/docbook.am index 2ffb7e6..f53f670 100644 --- a/docbook.am +++ b/docbook.am @@ -42,7 +42,8 @@ XMLTO_XHTML_FLAGS = \ --stringparam html.stylesheet=$(STYLESHEET_SRCDIR)/xorg.css 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) -- cgit v1.2.1