Hi, I'm totally stuck on a HTML path problem for images. The relative
image paths are all relative to the source image directory, not to the
output image directory (which is what I want).
I'm using xincludes, a customization layer upon the HTML chunks
stylesheet. I'm using saxon 6.5.5
My projects looks like this:
myproject
index.xml----------source files
index2.xml
web-images/ ------these are my source images
tall.jpg
wide.jpg
chunks/ -------this is where docbook puts my output
index.html
index2.html
web.css
web-images/----this is my copy of web-images folder. I put this
manually here.
tall.jpg
wide.jpg
My fileref looks like this: <imagedata role="html"
fileref="web-images/image1.jpg"/>
I want my output html files to use this kind of image reference:
<img src="web-images/tall.jpg" />
Instead I get this:
<img src="../web-images/tall.jpg" />
I've looked through the parameters:
http://docbook.sourceforge.net/release/xsl/current/doc/html/img.src.path.html
I would have thought setting that parameter to :
<xsl:param name="img.src.path">web-images/</xsl:param>
would have solved the problem. But instead I see that nothing has
changed in the output.
I've read the Docbook XSL book closely and still haven't figured it
out. I've also tried some parameters: html.base and other shots in the
dark (though I haven't tried entityref -- mainly because I don't
understand it--), but none seem relevant or have worked.
I'm reluctant to change my path structure because I use the same
project to generate an epub file. The db2epub.py script works
perfectly in how it handles images: it transfers all of them to a new
web-images directory.
I don't have any special docbook parameters in my customization layer
(at least not anything which would affects paths).
Is it possible that there's a bug here? Or am I missing something obvious?
--
Robert Nagle
htpt://www.robertnagle.info
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]