FOP only resolves URIs/URLs for resources it has to access (embedded
images, embedded ICC profiles, fonts). Things such as hyperlinks are not
processed because the rules here might be different. Who says that any
relative URL should be resolved at all? You'll have to resolve the URLs
yourself in XSLT.

HTH

On 21.04.2008 18:35:57 Benjamin Plaquevent wrote:
> Hi,
> 
> I have a XHTML document with relative URLs. I use FOP to transform it into 
> PDF (first FO then PDF).
> I modified fop.xconf base parameter to 
> http://www.my_site.com<http://www.my_site.com/>. But in PDF, links and image 
> sources still are file:// formatted...
> 
> Could you help me figuring what I'm doing wrong please?
> 
> Example:
> 
> xhtml => <a href"/content/article.html">my link</a>
> fo => <fo:basic-link external-destination="url('/content/article.html')">my 
> link</fo:basic-link>
> pdf => link to file:///content/article.html
> 
> 
> In my fop.xconf:
> 
> <base>http://www.my_site.com</base>
> 
> 
> And I run FOP from command line with:
> 
> fop -c fop.xconf -xml file.xhtml -xsl file.xsl file.pdf
> 
> 
> Friendly,
> 
> Benjamin Plaquevent
> Chef de projet technique
> Smile - Motoristes Internet
> http://www.smile.fr
> Tél : 02 51 72 29 69
> Fax : 02 51 72 04 22
> Mailto : [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
> 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • Relative URLs Benjamin Plaquevent
    • Re: Relative URLs Jeremias Maerki

Reply via email to