Menu

#1331 inconsistent semantics of callout.graphics.path parameter

output: all formats
closed-invalid
None
5
2014-04-15
2014-04-02
No

In the HTML transformation the callout.graphics.path parameter is a path relative to the output directory, but in the PDF transformation the path is relative to the location of the input XML document. Can this parameter be made consistent?

Discussion

  • Robert Stayton

    Robert Stayton - 2014-04-10

    I'm not seeing an inconsistency here. In both cases, the value of $callout.graphics.path is just passed through without further processing. There is no consideration of the location of the input file for the handling of that path. That means the location will be interpreted in both cases as relative to the output file(s).

    That is, if your command to produce a .fo file includes --output pdfout/myfile.fo, the path inserted for callouts is still "images/callouts/", which will be interpreted relative to the pdfout directory, not the location of the source file.

     
  • Sorin Ristache

    Sorin Ristache - 2014-04-11

    My FO file is created in the same directory as the input XML file and I could fix the error either by setting an absolute path in the callout.graphics.path param or by making the callout images available in the "images/callouts/" subdirectory of the FO directory which happens to be also the XML input directory. I was thinking that the PDF is the output document, but the actual output of the Docbook XSLT transformation is the FO document.

    So I agree that the value of the param is indeed relative to the output directory also for the FO transformation.

     

    Last edit: Sorin Ristache 2014-04-11
  • Sorin Ristache

    Sorin Ristache - 2014-04-11

    So it is not a valid bug. I agree that the callout.graphics.path parameter works indeed in a consistent way.

     
  • Robert Stayton

    Robert Stayton - 2014-04-15
    • status: open --> closed-invalid
    • assigned_to: Robert Stayton
     
  • Robert Stayton

    Robert Stayton - 2014-04-15

    OK, I'll close it.