Next in thread → Next in month →

Re: [docbook-apps] olinking between PDFs - open target in new window

From
Bergfrid Skaara <>
Date
2013-08-05T09:00:20+00:00
ID
Thread
Re: [docbook-apps] olinking between PDFs - open target in new window
Thanks for the input! 

I somehow got it to work, but I cannot pinpoint what did the trick because I have been working on a lot of different issues at the same time. I suspect it had something with missing PDF base uri parameters in my olinkdb.xml - we never added that initially when using only internal olinks and having all PDFs in a single flat folder.

 

I have my own customization layer with multiple files (my customization main file imports the stock stylesheets plus our other custom files).

 

I have also experimented with a trial version of RenderX XEP from oXygen, and that seams to respect the show-destination parameter as well.

 

Best regards

Bergfrid Skaara 

On Fri, Jul 26, 2013 at 9:09 PM, Bob Stayton <> wrote:

I just tested this and I can confirm that the 1.78.1 stylesheet works outside of Oxygen, using Saxon and FOP 1.1. I also tested the same stylesheet customization inside Oxygen 15.0, and that PDF did not work.  So I tried changing the Oxygen Transformation to save the .fo file instead of generating the .pdf.  When I ran that  .fo file through fop 1.1 outside of Oxygen, then it worked.  That suggests Oxygen is running the transformation correctly, but something is going wrong in the  application of fop 1.1 within Oxygen.

Regarding the attribute-set confusion, I cannot duplicate that.  I get olink.properties to work, and the .fo file shows the show-destination="new" in the .fo file using Oxygen's transformation.

The transformation I used calls my customization layer, which imports a copy of DocBook XSL 1.78.1 from outside the Oxygen distribution.  Are you just modifying the Oxygen DocBook transformation, or do you have your own customization layer?

Bob

--------------------------------------------------

From: "Peter Desjardins" <>

Sent: Friday, July 26, 2013 10:03 AM

To: "Bergfrid Skaara" <>

Cc: "DocBook Apps" <>

Subject: Re: [docbook-apps] olinking between PDFs - open target in new window

What viewer are you using to view the PDFs and follow the link?

I'm using docbook-xsl-ns-1.78.0. If I add the olink.properties

customization (shown on the page you mention) to my customization

layer, following a link from one PDF to another will open a new Adobe

Reader window.

Possible regression from 1.78.0 to 1.78.1? Or something to do with the

viewing software? I'm using Adobe Reader 11.0.3.

Also, I'm using FOP 1.0

Peter

On Fri, Jul 26, 2013 at 5:16 AM, Bergfrid Skaara

<> wrote:

Hi, I am trying to set up olinks between PDFs using stylesheet version

1.78.1 with our company customization layer, working with tool bundle of

oXygen 15.0 (Saxon, FOP, etc).

The olink points to the xml:id of a chapter. Clicking the link correctly

opens the target PDF and scrolls to the correct chapter. However, it does

not open the target in a new window despite adding show-destination="new" to

olink.properties as described in

http://sagehill.net/docbookxsl/OlinkPrintOutput.html#OlinkNewWindow.

It looks like attribute set xref.properties is used in this case rather than

olink.properties, changes to olink.properties has no effect on the output

link.  I tested it by changing the color attribute in the sets, and the

links in the generated PDF are the color specified within the xref set and

not the olink set.

Any idea why olink.properties is ignored, or even better, what I have to do

/ look for in order to implement "open target in new window"?

Best regards

Bergfrid Skaara

---------------------------------------------------------------------

To unsubscribe, e-mail: 

For additional commands, e-mail: 
Next in thread → Next in month →