Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2523

Behavior change in include path handling breaks existing 1.1 docs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 2.0
    • None
    • image/jpeg, image/png
    • OS X , Linux

    Description

      When transforming a document with included files (images) there is a different behavior between 1.1 and 2.x.

      Transformation that works with fop 1.1 no longer works with 2.0

      I suspect that this is not so much a bug as a change that breaks existing build schemas due to fop making different assumption on relative paths in 1.1 compared with 2.x. but I have to yet figure out what the assumption is.

      If the generated .fo includes say,

      <fo:external-graphics src="url(myimage.jpg) width="100%" height="auto">

      If all files (both images and .fo) are in a flat directory this works well with 1.1. Running the same source through 2.0 will generate an error saying that FOP cannot find the referred file (myimage.jpg)

      I suspect this is a common enough pattern to warrant some notice on how to handle this situation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            johan162 Johan Persson
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: