forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <nicola...@apache.org>
Subject Re: cvs commit: xml-forrest/src/documentation/skins/forrest-site/xslt/html document2html.xsl
Date Wed, 22 May 2002 14:40:25 GMT
From: "Piroumian Konstantin" <KPiroumian@protek.com>



> > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org]
> > From: "Steven Noels" <stevenn@outerthought.org>
> > > > 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 <img src="images/myimage.jpg"> in a document in the
> > YYY/ dir,  I
> > will have the image copied by CLI in YYY/images/myimage.jpg.
> >
> > If I also put <img src="images/myimage.jpg">  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:
> <img src="images/xxx/myimage.jpg">
> <img src="images/yyy/myimage.jpg">
> <img src="images/zzz/myimage.jpg">
>
> and simply for commons:
> <img src="images/myimage.jpg">

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)
---------------------------------------------------------------------


Mime
View raw message