RE: [docbook-apps] Relative paths when processing DocBook 5 with DocBook 4 stylesheets

2019-06-14 Thread Jan Tosovsky
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 . Once 
the image file path is determined, it is then truncated using $base.dir 
parameter (with some additional processing specific to my environment).

Jan


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Relative paths when processing DocBook 5 with DocBook 4 stylesheets

2019-06-14 Thread Jirka Kosek
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.

Alternatively you can see whether the following parameter would work in
your case:

http://docbook.sourceforge.net/release/xsl/current/doc/html/keep.relative.image.uris.html


-- 
--
  Jirka Kosek e-mail: ji...@kosek.cz http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
  http://docbook.czStránky o dokumentačním formátu DocBook
  http://xmlguru.czBlog mostly about XML for English readers
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] Relative paths when processing DocBook 5 with DocBook 4 stylesheets

2019-06-11 Thread Jan Tosovsky
Dear All,

I am facing relative path issue described in
http://www.sagehill.net/docbookxsl/ProcesingDb5.html :

>> The disadvantages of [DocBook 4] stylesheets for DocBook 5 are:
>> - The act of copying the content into a node set loses the base URI of
the document. This can create problems with relative path references for
images ...

In my case all relative images has become absolute.

I can imagine to override  template
located in /common/common.xsl, which would simply remove the prefix passed
as a template parameter.

Or are there better/built-in ways?

Thanks,

Jan


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org