Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 30th, 2010, 12:53 PM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hyperlink in PDF not working (XML to PDF using XSL-FO stylesheet)

Hi All,

I’m having trouble with a hyperlink in my XML file.

Here is my complete scenario. The final output is a PDF document.

I’m converting a XML file into PDF document using Oracle BI Publisher reporting tool. I’m using a XSL-FO stylesheet to preserve the formatting features.

In this XML file I have a column,let’s say CLOB_COLUMN. In this CLOB_COLUMN I have the following

<CLOB_COLUMN>
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:html="http://www.w3.org/1999/xhtml">
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" text-align="justify" orphans="2" widows="2" language="en">
<fo:inline font-size="10pt"> The Todd Henderson controversy might inspire you to revisit your definition of what it means to be wealthy.</fo:inline>
</fo:block>
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" language="en" white-space-treatment="preserve"/>-
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" text-align="justify" orphans="2" widows="2" language="en">
<fo:inline font-size="10pt"> The deal, reached after AIG's board met with government officials on Wednesday, shows the insurer is making gradual progress in disentangling itself from the government, although the U.S. Treasury initially will take a larger stake the company in preparation for selling it down.</fo:inline>
</fo:block>
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" language="en" white-space-treatment="preserve"/>-
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" text-align="justify" orphans="2" widows="2" language="en">
<fo:inline font-size="10pt"> Stocks retreated Thursday as investors decided to lock in profits at the end of a historically strong month. Indexes rose sharply just after the market opened following news that unemployment claims dropped and manufacturing activity in the Chicago area rose.</fo:inline>
</fo:block>
<fo:block font-family="Arial" font-size="10pt" white-space-collapse="false" language="en" white-space-treatment="preserve"/>-
<fo:block font-family="Arial" font-size="10pt" orphans="2" widows="2" language="en">-
<fo:basic-link font-family="Arial" font-size="10pt" color="#0000ff" external-destination="url(S:\XXXXX)" text-decoration="underline">
<fo:inline font-family="Arial" font-size="10pt" color="#0000ff" text-decoration="underline">S:\XXXX</fo:inline>
</fo:basic-link>
</fo:block>
</fo:block>
</CLOB_COLUMN>

As you can see I have some notes and a hyperlink and it might contain images also. The problem is when a user clicks on the hyperlink present in the PDF document. The URL seems to add ///u01/oracle/product/10.1.3/dmidr3/j2ee/home/ before the actual path specified in the XML file and there by the user wasn’t able to open the document. Is there a way to trim or cut that extra path so that the URL is accessable?

Some more explaination of this issue is specified here
http://forums.oracle.com/forums/mess...592791#4592791

but I wasn’t able to solve this issue. Please, guide me in a right direction.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL- FO : Problem accessing an image that needs to printed in the pdf roohi XSLT 0 May 3rd, 2010 06:44 AM
HTML to PDF via XSL-FO NEO1976 XSLT 2 September 8th, 2006 06:47 AM
xHTML to XSL:FO to PDF NotesSensei XSLT 0 September 2nd, 2006 10:02 AM
xml + xsl:fo --> PDF Kabe Classic ASP XML 0 August 26th, 2004 06:17 AM
I can't show Chinese when .fo to .pdf frank-lo XSLT 2 January 20th, 2004 06:00 AM



All times are GMT -4. The time now is 11:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.