forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: cvs commit: xml-forrest/src/documentation/skins/forrest-site/ xslt/html document2html.xsl
Date Wed, 22 May 2002 14:35:13 GMT
> 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">

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

Konstantin

> 
> --
> Nicola Ken Barozzi                   nicolaken@apache.org
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
> 

Mime
View raw message