I have this problem and this is my solution (it isn't very elegat, but can be util) :
I put the image with a relative link to the pdf file. The path of my site map is http://machine/context/sci/ (by default context is coocon). If you request one file of the sci/ directory you need use the first pipeline if you request a resources on a child of sci you must use the second pipeline. In the xslt pdf.xst that transforme my xml source in an pdf I use the parameter filePath as a prefix for the image url. With this prefix I have the complete path of the image. <map:match pattern="*.pdf"> <map:generate src="{1}.xml"/> <map:match type="host" pattern="*"> <map:act type="request"> <map:transform src="xsl/pdf.xsl"> <map:parameter name="filePath" value="http://{../1}{context}/sci"/> </map:transform> </map:act> </map:match> <map:serialize type="fo2pdf"/> </map:match> <map:match pattern="**/*.pdf"> <map:generate src="{1}/{2}.xml"/> <map:match type="host" pattern="*"> <map:act type="request"> <map:transform src="xsl/pdf.xsl"> <map:parameter name="filePath" value="http://{../1}{context}/sci/{../../1}"/> </map:transform> </map:act> </map:match> <map:serialize type="fo2pdf"/> </map:match> I don't like this solution. Have any one a bette?. Olivier Rossel wrote: > Tell me if I am wrong: > FOP only accepts standard URLs for external-graphic "src " attribute. > file:// > http:// > are ok. > > No relative path, and no cocoon pseudo-protocol. > > Can anyone confirm? > > Is it possible that FOP uses the URIResolver of Cocoon instead, in order to > understand pseudo-protocol (especially cocoon:// and resource://) ? > > Is there a trick in order to use relative paths in FOP? (I read the > archives and everyone > seems to use full URLs :-( > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]>
begin:vcard n:Adrover;Bartomeu x-mozilla-html:FALSE org:UIB;Servei de Cālcul i Informatizaciķ version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya fn:Baromeu Adrover end:vcard
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>