You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jessica Niewint <j....@kiosco.org> on 2003/03/19 18:50:57 UTC

Problems basic-link in xsl-fo

Hi, I am not sure if this is the right mailing list for the question...
so if it is not, please give me a hint where to post my question.

I am using  Cocoon 2.0.4

I got a problem to insert a external link to my xsl file with <fo:basic-link>.
It seems that no one else got a problem like this. So may be I forgot to 
define something in the header of the xsl-file or in the sitemap. The 
"strange" thing for me is, that without using the <fo:basic-link> the 
output into the pdf-format is no problem.
Inserting  the <fo:basic-link 
external-destination="www.test.org">TEST</fo:basic-link> into my xsl-file
produces an error.. when I comment out this tag, everything works fine and 
the pdf file is shown.
So any ideas ?

Thank you  in advance

J.


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


Re: Problems basic-link in xsl-fo

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jessica Niewint wrote:
> No, for me it is even impossible to build the PDF. So I will rebuild 
> cocoon this afternoon. May something is wrong.
> It seems that the tag basic-link is non know or accepted by the PDF.
> We got also problems to display a gif . And this on to different servers 
> with two different cocoon releases. May there is a connections. Since I 
> am not a "Cocoon-Specialist" , there could be also something wrong with 
> the sitemap.
Unlikely.

> For me is only strange that everything work fine, only if I 
> try to use the basic-link tag I got the message that the PDF is damaged. 
> I really do not have a clue ...
Well, that's common.

The general strategy is to reduce the complexity of the problem:
1. Get your source XML as a file, if you don't have already.
2. Get a FOP binary distribution. Read the docs on how to run the
   command line application and the standalone XSLT transformation
     http://xml.apache.org/fop/running.html
3. Run your source XML with your XSLT through Xalan, as described,
   in order to get a FO file. Are there problems at this point?
4. Run FOP on the FO file from the last step. Are there problems?
5. Check the FOP FAQ
   http://xml.apache.org/fop/faq.html

J.Pietschmann


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


Re: Problems basic-link in xsl-fo

Posted by Jessica Niewint <j....@kiosco.org>.
No, for me it is even impossible to build the PDF. So I will rebuild cocoon 
this afternoon. May something is wrong.
It seems that the tag basic-link is non know or accepted by the PDF.
We got also problems to display a gif . And this on to different servers 
with two different cocoon releases. May there is a connections. Since I am 
not a "Cocoon-Specialist" , there could be also something wrong with the 
sitemap. For me is only strange that everything work fine, only if I try to 
use the basic-link tag I got the message that the PDF is damaged. I really 
do not have a clue ...


At 22.24 20/03/2003 +0100, you wrote:
>Jessica Niewint wrote:
>>I tried also http:// but  it gives still the error that the pdf is damaged.
>>In the error-log of cocoon is empty. If I comment out the basic-link tag 
>>(and leave the block tag where it is) every thing
>>works fine.
>
>There was some discussion a while ago that there are problems with
>external http links. THe PDF should display fine though, only clicking
>the link results in an obscure error message.
>Can you generate the PDF with the FOP CLI?
>
>J.Pietschmann
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


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


Re: Problems basic-link in xsl-fo

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jessica Niewint wrote:
> I tried also http:// but  it gives still the error that the pdf is damaged.
> In the error-log of cocoon is empty. If I comment out the basic-link tag 
> (and leave the block tag where it is) every thing
> works fine.

There was some discussion a while ago that there are problems with
external http links. THe PDF should display fine though, only clicking
the link results in an obscure error message.
Can you generate the PDF with the FOP CLI?

J.Pietschmann



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


RE: Problems basic-link in xsl-fo

Posted by Jessica Niewint <j....@kiosco.org>.
I tried also http:// but  it gives still the error that the pdf is damaged.
In the error-log of cocoon is empty. If I comment out the basic-link tag 
(and leave the block tag where it is) every thing
works fine.

<fo:block>
    <fo:basic-link 
external-destination="http://www.zvon.org">ZVON</fo:basic-link>
</fo:block>




>Jessica Niewint wrote:
>
> > I got a problem to insert a external link to my xsl file with
> > <fo:basic-link>.
>
></snip>
>
><fo:basic-link external-destination="www.test.org">TEST</fo:basic-link>
>
>You are missing the "http://" from the start of the URL. Otherwise I believe
>FOP will assume a "file:/" protocol?
>
>Cheers!
>
>Con
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


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


RE: Problems basic-link in xsl-fo

Posted by Conal Tuohy <co...@paradise.net.nz>.
Jessica Niewint wrote:

> I got a problem to insert a external link to my xsl file with
> <fo:basic-link>.

</snip>

<fo:basic-link external-destination="www.test.org">TEST</fo:basic-link>

You are missing the "http://" from the start of the URL. Otherwise I believe
FOP will assume a "file:/" protocol?

Cheers!

Con


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