Return-Path: Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 72361 invoked from network); 22 May 2002 14:43:48 -0000 Received: from unknown (HELO aisa?2nd.aisa) (194.184.10.212) by daedalus.apache.org with SMTP; 22 May 2002 14:43:48 -0000 Received: from PC103 ([192.4.0.103]) by aisa_2nd.aisa (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id C1256BC1.00523F23; Wed, 22 May 2002 16:58:21 +0200 Message-ID: <002901c2019e$9c71cf00$670004c0@PC103> Reply-To: "Nicola Ken Barozzi" From: "Nicola Ken Barozzi" To: References: Subject: Re: cvs commit: xml-forrest/src/documentation/skins/forrest-site/xslt/html document2html.xsl Date: Wed, 22 May 2002 16:40:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Piroumian Konstantin" > > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org] > > From: "Steven Noels" > > > > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org] > > > > ... > > > > You missed my point though. > > > > Say we have the image in xxx/images/*.jpg , and I tell the > > sitemap to match > > **images/*.jpg to that . > > > > If I put in a document in the > > YYY/ dir, I > > will have the image copied by CLI in YYY/images/myimage.jpg. > > > > If I also put in a document > > in the ZZZ/ dir, > > I will have the image copied by CLI again in ZZZ/images/myimage.jpg. > > > > I have the same image being copied by the CLI in two different dirs. > > > > How can we make Cocoon reference only one copy? > > What about this for custom images: > > > > > and simply for commons: > Now it's images/**.jpg for custom and skin/images/**.jpg for skins. it's basically the same. > ? > Why to have a copy of the same image for whatever reason? If they are > different then it's Ok to have 'xxx' or 'yyy' in the source attribute. > > But, I can tell from my experience, that image-dirs can change in a very > unexpected way. Say, someday we can decide to have a central image > repository for all projects in xml.apache.org and setup a default context on > the server optimized for for all the static resources. In this case we > should use references like src="/images/myimg.jpg". > > The other day we will need to load images from a special image server, say: > images.apache.org. This time we should use > src="http://images.apache.org/myimg.jpg". > > Hm... Ignore all the above: this can be achieved using URL rewriting on the > Web server, isn't it?.. ;) > > Please tell me if I am totally wrong? Ok, I think that it isn't clear if you don't see it. Download Centipede, which has nested books. Build the docs. Then look at the resulting stuff. You'll see that the common images (like top headers and bottom icons), are copied in every sub directory, even if they are the same. I'm not talking about how to reference them, but what Cocoon creates as a static result. -- Nicola Ken Barozzi nicolaken@apache.org - verba volant, scripta manent - (discussions get forgotten, just code remains) ---------------------------------------------------------------------