OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] how to set relative paths for HTML image directory?

Ok, I'm coming closer.

It looks like Oxygen sets some default parameter values for some of
its transformations with Saxon.

I had been cloning the Docbook presets for the Docbook HTML-chunk
scenario and adding my customization layer. But Oxygen had included
without telling me some default parameters of its own. (Actuallly it
sort of told me -- the Edit Scenario will tell you how many parameters
were already preset in this scenario. And the Oxygen parameter
settings were overriding my own.

Instead I should have began with a blank scenario instead of cloning
one of Oxygen's.

(Or run the damn thing from the command line).

I'm still going to try to use scenarios and in fact I'm running to
some additional issues about permissions.

I like the idea of having the ability to edit scenarios with Oxygen's
dialogs; the main problem is that there is no way (as far as I can
tell) how to save/backup these Oxygen settings.

(But I'll save my whines for the Oxygen list).


> -----Original Message-----
> From: Robert Nagle [mailto:idiotprogrammer@gmail.com]
> Sent: Sunday, November 28, 2010 3:23 AM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] how to set relative paths for HTML image
> directory?
> 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.htm
> l
> 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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Robert Nagle
12777 Ashford Point Dr #1417
Houston, Texas 77082
713 893 3424

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]