#931 img.src.path not taken into account in some ext-graphics

closed-rejected
nobody
XSL (1066)
5
2007-09-01
2007-08-30
jm_f
No

Hi,

I've submitted this bug on the docbook mailing list, I've been advised to put it here since apparently others had the same problem.

I've customized the XSLT stylesheet in order to add an image on the cover using a external-graphic tag. This tag does not take src.img.path into account: I had to add it manually (see the src="{$img.src.path}img.png" attribute in the attached file).

The img.src.path parameter is taken into account in the imageobject tags of the document.

Tested with xalan, XSLT 1.70, 1.72.0 and 1.73.1.

Best,
JM

Discussion

  • jm_f

    jm_f - 2007-08-30

    Docbook and XSLT file used to produce the bug

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-08-31
    • status: open --> pending-rejected
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-08-31

    Logged In: YES
    user_id=582041
    Originator: NO

    This is not a bug. If you want the img.src.path parameter to be considered, then you have to be explicit about it in your customization. It doesn't just work automatically. Therefore you must add $img.src.path to the src attribute on fo:external-graphic, as you already have done.

     
  • jm_f

    jm_f - 2007-09-01

    Logged In: YES
    user_id=1879721
    Originator: YES

    Thanks for your answer.

    I guess I did not understand properly the description of the parameter:
    --
    Extracted from http://docbook.sourceforge.net/release/xsl/current/doc/fo/img.src.path.html:
    Add a path prefix to each HTML img or FO fo:external-graphic element's src attribute.
    --

    I guess this means that img.src.path is added to all the ext-graphic elements THAT ARE PRODUCED BY THE XSL (i.e. NOT to all ext-graphic elements in general).

    Thanks,
    JM

     
  • jm_f

    jm_f - 2007-09-01
    • status: pending-rejected --> open-rejected
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-09-01
    • status: open-rejected --> closed-rejected
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-09-01

    Logged In: YES
    user_id=582041
    Originator: NO

    I have checked in an update of the description of img.src.path, as follows:

    Add a path prefix to the value of the fileref attribute of graphic and imagedata elements. The resulting compound path is used in the output as the value of the src attribute of img (HTML) or external-graphic (FO).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks