RE: Relative paths when processing DocBook 5 with DocBook 4 stylesheets

"Jan Tosovsky" <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
On 2019-06-14 Jirka Kosek wrote:
> On 11.6.2019 23:19, Jan Tosovsky wrote:
> > In my case all relative images has become absolute.
> > Or are there better/built-in ways?
> 
> Well this is tricky area. I would suggest switching to "ns" flavour of
> stylesheets where there is no such problem.

I apply same heavily customized stylesheets to both DB4/DB5 documents. I am afraid there is no ROI for rewriting styles to NS variant and then to maintain both versions.

> 
> Alternatively you can see whether the following parameter would work in
> your case:
> 
> http://docbook.sourceforge.net/release/xsl/current/doc/html/keep.relativ
> e.image.uris.html

This could work in some environments, but not applicable in documents composed from XIncludes located in nested subfolders. 

In my new customization I am tweaking <xsl:template name="process.image">. Once the image file path is determined, it is then truncated using $base.dir parameter (with some additional processing specific to my environment).

Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.