docbook-apps

Expand all | Collapse all

Re: [docbook-apps] Problem with images given as entity in xhtml output (template process.image)

  • 1.  Re: [docbook-apps] Problem with images given as entity in xhtml output (template process.image)

    Posted 05-22-2014 15:17
    On 22.5.2014 17:12, Fletcher, Brett wrote:
    > First, Thank you for replying! I will gladly take your advice of eliminating Entities.

    Please, next time reply to all, so answer is sent back to the whole
    mailing list.

    > As far as the solution you provided, could you provide an example of how it would look in an xml doc? Also, I am guessing I need to modify an .xsl file? I have never done that before and am not sure how to do that. I inherited my setup and am having to learn XML on the fly while trying not to fall to far behind in the actual work! Do you have any suggested reading?

    You should definitively read the following book if you mean it seriously
    with using DocBook XSL stylesheets:

    http://sagehill.net/docbookxsl/index.html

    Back to your question. In your document you will use just filenames
    without any path:

    <imagedata fileref="picture.png"/>

    Then in subdirectories like "version1" and "version2" you will store two
    different versions of this image, both times in a file called picture.png

    Then during the processing you will set "img.src.path" parameter either
    to "version1/" or "version2/" value. You can set parameter from command
    line when invoking XSLT processor or you can store it into your own XSL
    customization layer. More details are in the book mentioned above.

    Jirka

    > Thanks again!
    >
    > Brett
    >
    >


  • 2.  RE: [docbook-apps] Problem with images given as entity in xhtml output (template process.image)

    Posted 05-22-2014 15:18
    You made my day