[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: XSL-FL Basic-link results in wrong Adobe Acrob

Subject: RE: RE: XSL-FL Basic-link results in wrong Adobe Acrobat link action specified
From: "Echlin, Robert" <Robert.Echlin@xxxxxxxxxxxxx>
Date: Tue, 27 Sep 2011 18:05:22 +0000
RE:  RE: XSL-FL Basic-link results in wrong Adobe Acrob
Hi Ken,
Thanks for that.
I am responsible for some XSL-FO, and will need to edit it soon.
Rob


> -----Original Message-----
> From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, September 27, 2011 9:55 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  RE: XSL-FL Basic-link results in wrong Adobe Acrobat
link
> action specified
>
> At 2011-09-27 13:24 +0000, Sharon Harris wrote:
> >I am trying to dynamically create active hyperlinks in PDF output
> >using XSL-FO. The code I am using traverses the
> >Release_Notes_Documentation node, which then calls the hyperlink
> >template that specifies instructions for finding a string beginning
> >w/ http:// and turning that string into a basic link. Everything
> >looks great in the PDF output as the links display as active.
> >
> >Unfortunately, only the 1st occurrence of an active link works
> >correctly. Launches the browser to display the Web page associated
> >w/ the url. All of the other active links (contain different but
> >valid urls) do not launch a browser as the action specified when
> >viewing the link properties in Adobe Acrobat for the other links is
> >to "go to a page in another document" and "file" prefixes the url.
> >On the 1 active link that does work correctly, the action specified
> >in Adobe Acrobat is "open a web link".
> >
> >How do I ensure that all of the active links uses the "open a web
> >link" action?
>
> I suggest looking at the intermediate result of XSLT transformation
> before looking at your code.
>
> Carefully inspect every <fo:basic-link> that you create and determine
> if there is a difference between the first one and the remainder.
>
> If not, it could be a problem with your XSL-FO engine.
>
> If so, then it is a problem with assumptions in your XSLT.
>
> In the classroom I remind students of the debugging value of the
> intermediate XSL-FO output:  it is the first place I look when I have
> inconsistent output.  Staring at my code doesn't help because I
> should have done it right the first time around.  Inspecting the
> XSL-FO generated usually at least reveals my mistakes, if not how
> they were made.
>
> And to help with the debug, I will often inject diagnostic
> information in comments in my XSL-FO.  This is new to students who
> have already used XSL-FO.  Since an XSL-FO engine ignores the
> comments, I can find the XSL-FO that is rendered near where I have
> problems and inspect the comments to correlate behaviours in my
> stylesheets.
>
> I hope this helps.
>
> . . . . . . . . . . . . Ken
>
>
> --
> Contact us for world-wide XML consulting and instructor-led training
> Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
> G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Google+ profile: https://plus.google.com/116832879756988317389/about
> Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.