#1085 html: draft.watermark.image pointing to web-resource

output: HTML
XSL (1066)

The draft.watermark.image parameter is pointing to http://docbook.sourceforge.net/release/images/draft.png. This requires web-acess. The docbook-xsl(-ns) tarballs however contain draft.png in the images directory. So IMO the parameter should better point to one of the below:


Maybe instead of using the literal "images/", there is another paramter to declare the path? However, it should not point to http://docbook.sourceforge.net/release/images/ or the catalog needs another entry to rewrite this location.


  • Mauritz Jeanson

    Mauritz Jeanson - 2010-01-01

    Using "images/draft.png" as the default path would make this parameter more similar to callout.graphics.path and navig.graphics.path. But customization would probably still be required for most users.

    A catalog cannot be used to rewrite the value of draft.watermark.image. The path is just a string; it is not the type of resource identifier that can be resolved in a catalog.

  • Daniel Leidert

    Daniel Leidert - 2010-01-02

    IMO images/draft.png is best for most users. It is shipped with the tarballs.

    PS: In the toolchain xml -> fo -> pdf IMHO one could use a catalog to rewrite the URL to a local file path. And only here the current situation creates an issue, because fop would try to access the internet (I got the report from a Debian user about this issue).

  • Mauritz Jeanson

    Mauritz Jeanson - 2010-01-03

    * When transforming XML to FO using DocBook-XSL, you cannot use a catalog to rewrite draft.watermark.image. The path is just a string with no special significance.

    * For the FO -> PDF step, it seems like it should be possible to use a catalog resolver to rewrite image locations. See http://wiki.apache.org/xmlgraphics-fop/HowTo/XmlCommonsResolver. But this functionality can only be activated via Java code (the -catalog command line option cannot be used). I have not been able to make the example code work myself.

  • Daniel Leidert

    Daniel Leidert - 2010-01-03

    This switch must be pretty new and not part of the last release. However, the wiki site says, that image retrieval is not handled by the catalog. So even a catalog won't help here. So I propose to change the parameter value to images/draft.png.

  • Robert Stayton

    Robert Stayton - 2010-08-09

    I changed it to images/draft.png.

  • Robert Stayton

    Robert Stayton - 2010-08-09

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:


  • Robert Stayton

    Robert Stayton - 2010-08-09
    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks