You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Prasanna Jayaprakash <pr...@gmail.com> on 2005/10/03 23:45:51 UTC

Need urgent help....

Dear Sir,

I am using FOP for creating PDF files using XML and XSL. My problem is In my
site I'll showing the PDF files in a frameset page. My PDF file
have some links to the external sites. As my requirement If I click the link
it should open in a new window. But its opening in a same window.
Could you please help me to solve this issue ? How I need to change the XSL
file ?

Thanks in advance.

 Sample Code
-------------------
  <fo:table-row>
<fo:table-cell ><fo:block space-after="2mm" font-weight="bold">Updated
By</fo:block></fo:table-cell>
<fo:table-cell><fo:block><fo:basic-link external-destination="url('
http://www.google.com')" show-destination="replace">Prasanna Test Link
4</fo:basic-link></fo:block> </fo:table-cell>
</fo:table-row>
  Regards,
Prasanna.

Re: Need urgent help....

Posted by Jeroen van der Vegt <je...@technolution.nl>.
Hi,

That doesn't seem like something you can do with FOP to me. You could 
try it with HTML though, by specifying a <BASE> element with a target in 
the page containing the PDF. See also 
http://www.w3.org/TR/html4/struct/links.html#idx-base_URI .

Jeroen.

Prasanna Jayaprakash wrote:

> Dear Sir,
>
> I am using FOP for creating PDF files using XML and XSL. My problem is 
> In my site I'll showing the PDF files in a frameset page. My PDF file
> have some links to the external sites. As my requirement If I click 
> the link it should open in a new window. But its opening in a same 
> window.
> Could you please help me to solve this issue ? How I need to change 
> the XSL file ?
>
> Thanks in advance.
>
>  
>
> Sample Code
> -------------------
>
>  
>  <fo:table-row>
>      <fo:table-cell ><fo:block space-after="2mm" 
> font-weight="bold">Updated By</fo:block></fo:table-cell>
>      <fo:table-cell><fo:block><fo:basic-link 
> external-destination="url(' http://www.google.com')" 
> <http://www.google.com%27%29%22> show-destination="replace">Prasanna 
> Test Link 4</fo:basic-link></fo:block>  </fo:table-cell>        
>    </fo:table-row>
>  
>  
> Regards,
> Prasanna.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Need urgent help....

Posted by Lo...@log-net.com.
The property "show-destination" is not fully implemented and will only 
open a link in the same window.  See 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-show-destination 
for more details.

You should see the following message in your out log:

2005-08-09 12:26:00,355 INFO  [STDOUT] [WARN]: property - 
"show-destination" is not implemented yet.

-Lou

Prasanna Jayaprakash <pr...@gmail.com> wrote on 10/03/2005 17:45:51:

> Dear Sir,
> I am using FOP for creating PDF files using XML and XSL. My problem 
> is In my site I'll showing the PDF files in a frameset page. My PDF file 

> have some links to the external sites. As my requirement If I click 
> the link it should open in a new window. But its opening in a same 
window. 
> Could you please help me to solve this issue ? How I need to change 
> the XSL file ?
> Thanks in advance.
> 
> Sample Code
> -------------------
> 
>  <fo:table-row>
>      <fo:table-cell ><fo:block space-after="2mm" font-
> weight="bold">Updated By</fo:block></fo:table-cell>
>      <fo:table-cell><fo:block><fo:basic-link external-destination="url(' 

> http://www.google.com')" show-destination="replace">Prasanna Test 
> Link 4</fo:basic-link></fo:block>  </fo:table-cell> 
>    </fo:table-row> 
> 
> 
> Regards,
> Prasanna.