docbook-apps

  • 1.  Olinking for PDF generates absolute path

    Posted 12-11-2014 14:49
      |   view attached
    Hello,

    I try to get olinks between PDF manuals. I use XEP as the XSL-FO renderer and DocBook 1.78.1 stylesheets with some customizations.

    I use the following olink database file:





    ]>
    <targetset>

    <document targetdoc="AImporterDeveloperManual_280878" baseuri="importer-developer-en.pdf">
    &importer;
    </document>
    <document targetdoc="AOperationsBasicKnowledge-285398" baseuri="operation-basics-en.pdf">
    &operations;
    </document>

    </targetset>

    (Using baseuri="file:importer-developer-en.pdf" does not work for me.)

    In the PDF I get an absolute link as shown in the screenshot with the build directory as the prefix but what I want is a relative path.
    Is there a setting to get it or do I something wrong?

    Best regards,
    Michael

    Dr. Michael Fritsch
    Technical Editor
    tel +49.40.325587.214
    fax +49.40.325587.999
    michael.fritsch@coremedia.com<mailto:michael.fritsch@coremedia.com>
    CoreMedia AG
    content | conversation | conversion
    Ludwig-Erhard-Str. 18
    20459 Hamburg, Germany
    www.coremedia.com<http: www.coremedia.com/="">
    Executive Board: Gerrit Kolb (CEO), Dr. Klemens Kleiminger (CFO)
    Supervisory Board: Prof. Dr. Florian Matthes (Chairman)
    Trade Register: Amtsgericht Hamburg, HR B 76277


    </http:></mailto:michael.fritsch@coremedia.com>


  • 2.  RE: Olinking for PDF generates absolute path

    Posted 12-11-2014 15:08

    Michael,

    Have tried putting the <document/> content in a sitemap and giving the directory structure for the output, see Bob's guidance at http://www.sagehill.net/docbookxsl/OlinkDetails.html.

    Regards

    Nick

    From: Fritsch, Michael [mailto:michael.fritsch@coremedia.com]
    Sent: Thursday, December 11, 2014 3:49 PM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] Olinking for PDF generates absolute path

    Hello,

    I try to get olinks between PDF manuals. I use XEP as the XSL-FO renderer and DocBook 1.78.1 stylesheets with some customizations.

    I use the following olink database file:





    ]>
    <targetset>

    <document targetdoc="AImporterDeveloperManual_280878" baseuri="importer-developer-en.pdf">
    &importer;
    </document>
    <document targetdoc="AOperationsBasicKnowledge-285398" baseuri="operation-basics-en.pdf">
    &operations;
    </document>

    </targetset>

    (Using baseuri="file:importer-developer-en.pdf" does not work for me.)

    In the PDF I get an absolute link as shown in the screenshot with the build directory as the prefix but what I want is a relative path.
    Is there a setting to get it or do I something wrong?

    Best regards,
    Michael


    Dr. Michael Fritsch
    Technical Editor
    tel +49.40.325587.214
    fax +49.40.325587.999
    michael.fritsch@coremedia.com<mailto:michael.fritsch@coremedia.com>
    CoreMedia AG
    content | conversation | conversion
    Ludwig-Erhard-Str. 18
    20459 Hamburg, Germany
    www.coremedia.com<http://www.coremedia.com/>
    Executive Board: Gerrit Kolb (CEO), Dr. Klemens Kleiminger (CFO)
    Supervisory Board: Prof. Dr. Florian Matthes (Chairman)
    Trade Register: Amtsgericht Hamburg, HR B 76277




  • 3.  Re: [docbook-apps] Olinking for PDF generates absolute path

    Posted 12-11-2014 17:06
    Hi Michael,
    I believe what you are seeing is an artifact of the PDF reader. There
    is nothing in the XSL that generates a full path for the olinks. If you
    generate a .fo file and examine it, you'll see relative paths in the
    olinks before being converted to PDF.

    Try moving the files to a new location and see if the displayed path
    changes, and if the links work.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 12/11/2014 6:48 AM, Fritsch, Michael wrote:
    > Hello,
    >
    > I try to get olinks between PDF manuals. I use XEP as the XSL-FO
    > renderer and DocBook 1.78.1 stylesheets with some customizations.
    >
    > I use the following olink database file:
    >
    >
    >
    > >
    >
    >
    >
    >
    > ]>
    >
    > <targetset>
    >
    > <document targetdoc="AImporterDeveloperManual_280878"
    > baseuri="importer-developer-en.pdf">
    >
    > &importer;
    >
    > </document>
    >
    > <document targetdoc="AOperationsBasicKnowledge-285398"
    > baseuri="operation-basics-en.pdf">
    >
    > &operations;
    >
    > </document>
    >
    > </targetset>
    >
    > (Using baseuri=”file:importer-developer-en.pdf” does not work for me.)
    >
    > In the PDF I get an absolute link as shown in the screenshot with the
    > build directory as the prefix but what I want is a relative path.
    >
    > Is there a setting to get it or do I something wrong?
    >
    > Best regards,
    >
    > Michael
    >
    > Dr. Michael Fritsch
    >
    > Technical Editor
    >
    > tel +49.40.325587.214
    > fax +49.40.325587.999
    >
    > _michael.fritsch@coremedia.com <mailto:michael.fritsch@coremedia.com>___
    >
    > CoreMedia AG
    >
    > content | conversation | conversion
    >
    > Ludwig-Erhard-Str. 18
    > 20459 Hamburg, Germany
    > www.coremedia.com <http://www.coremedia.com/>
    >
    > Executive Board: Gerrit Kolb (CEO), Dr. Klemens Kleiminger (CFO)
    > Supervisory Board: Prof. Dr. Florian Matthes (Chairman)
    > Trade Register: Amtsgericht Hamburg, HR B 76277
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



  • 4.  RE: [docbook-apps] Olinking for PDF generates absolute path

    Posted 01-07-2015 16:00
    Hi Bob,

    thanks, you are absolutely right it was only an artifact of the PDF reader.
    Sorry, for the inconvenience.

    Best regards,
    Michael