Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 31803 invoked from network); 15 Feb 2008 10:27:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 10:27:00 -0000 Received: (qmail 1857 invoked by uid 500); 15 Feb 2008 10:26:54 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 1805 invoked by uid 500); 15 Feb 2008 10:26:54 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 1794 invoked by uid 99); 15 Feb 2008 10:26:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 02:26:54 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 10:26:03 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix1.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1JPxlv-0001r6-Lj for dev@forrest.apache.org; Fri, 15 Feb 2008 11:26:23 +0100 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.60) (envelope-from ) id 1JPxlv-00078a-Vo for dev@forrest.apache.org; Fri, 15 Feb 2008 11:26:24 +0100 Subject: Re: Problem with fop94 locating an aart-image From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <20080215090725.AEA0.DEV@jeremias-maerki.ch> References: <1203019697.6077.29.camel@cartman> <1203022445.6077.39.camel@cartman> <20080215090725.AEA0.DEV@jeremias-maerki.ch> Content-Type: text/plain Date: Fri, 15 Feb 2008 11:25:16 +0100 Message-Id: <1203071116.5827.44.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-Spam-Score-Int: 1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2008-02-15 at 09:09 +0100, Jeremias Maerki wrote: > Please also note that the fop-ng block provides a URIResolver to FOP. So > special URI schemes should now work inside FO documents. Not sure if it > helps in this case but I have a feeling it would. You mean something like href="cocoon://..." also would work? salu2 > > On 14.02.2008 21:54:05 Thorsten Scherler wrote: > > On Thu, 2008-02-14 at 21:08 +0100, Thorsten Scherler wrote: > > ... > > > > > > My prior hack to did not work because it > > > seems the resulting document is ignoring the servlet context and use the > > > relative path from himself. > > > > But http://www.thescripts.com/forum/thread84856.html gives the > > impression that it should work. > > > > Fueled by http://marc.info/?l=fop-dev&m=100719308626996&w=2 > > "If you want a relative URI, why not just use a relative URI? I.e., > > src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBig.gif"? > > Then the current protocol, host, and directory will be used as the base URI > > and the relative URI interpreted relative to that." > > > > http://xmlgraphics.apache.org/fop/fo.html#external-resources > > "URIs may be either absolute or relative to a base URI. > > (See FOP: Configuration for information on setting the base > > URI for a FOP session). Here is an example referencing > > an external-graphic that is relative to the base URI: > > " > > " > > > > If you use the url() then I get "Could not find function: url" since > > this in not a standard xsl 1 function. > > > > > > > > The problem as I understand it is that > > > needs an absolute url to > > > resolve the image. > > > > http://www.nabble.com/Help!-URI-for-fo:external-graphic-in-web-service-td14657418.html > > > > "XSL-FO prescribes that only a > > URI is allowed. To go from a filepath to a URI you should rewrite it > > something like "file:///c:/project/scr/certificate.gif" (note the > > forward slashes!)." > > > > Our image does not exist in the file system, only via http:// > > > > salu2 > > -- > > Thorsten Scherler thorsten.at.apache.org > > Open Source Java consulting, training and solutions > > > > > Jeremias Maerki > -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions