Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 48841 invoked from network); 21 Jul 2006 09:23:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2006 09:23:27 -0000 Received: (qmail 47433 invoked by uid 500); 21 Jul 2006 09:23:24 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 46848 invoked by uid 500); 21 Jul 2006 09:23:23 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 46837 invoked by uid 99); 21 Jul 2006 09:23:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 02:23:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 02:23:22 -0700 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 20343453 for users@cocoon.apache.org; Fri, 21 Jul 2006 11:23:00 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: PDF: external-graphic & absolute path Date: Fri, 21 Jul 2006 11:23:00 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PDF: external-graphic & absolute path Thread-Index: AcasNQX7EFLs5x/NTjG+YCubbCQbVQAcZleQ From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >=20 > I worked around that by passing in the host/port/context=20 > (read from the=20 > request object) as a parameter to the XSL transformation. =20 > You could do much=20 > the same with Cocoon using something like > > value=3D"http://{request:serverName}:{request:serverPort}{reques > t:contextPath}"/> > in your sitemap and > > ... > > in the XSLT stylesheet. This avoids having to hard code the=20 > server in your=20 > XSL. We normally also solve it this way, but watch out for one thing above: = Normally, your cocoon app will run on a server listening to a certain = port, with apache httpd in front. Now, this means that when it is = working on your local cocoon app on a certain port, and you deploy it, = you might and up with external graphics with a port number in it. = Normally, you don't want people to access your cocoon app directly. Make = sure that in deployment, the port number is the one httpd (or what you = are using) listens to Ard=20 >=20 > >And, more, how to resize the image? I have tried to use=20 > content-height > >and content-weight attributes, but they seems to not work... any > >suggestion (I know I could resize it with an image editor software, > >but I'd like to not do this for many reasons). >=20 > I can't remember how I ended up that way, but nearly all the=20 > external-graphic elements in my XSL were using both width and=20 > content-width=20 > attributes (I let it scale the height automatically to=20 > preserve the aspect=20 > ration). I have a feeling that when I only used=20 > content-width it didn't=20 > work, or maybe it was the other way round. The other=20 > external-graphic in=20 > that file has only a height attribute, so perhaps it's height=20 > and width that=20 > are needed to get it to work properly rather than content-height &=20 > content-width? >=20 >=20 > Andrew. >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org