forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Forrest site generates content above build/site
Date Thu, 20 Apr 2006 02:27:03 GMT
Brian M Dube wrote:
> David Crossley wrote:
> >Using references like /images/icon.png is the way to go.
> >I just tried it with 0.8-dev in 'forrest seed site' and
> >it correctly finds image sources in either resources/images/
> >or in xdocs/images/ directories. Sub-directories also works.
> >There is no need for any special sitemap matches, as Forrest
> >already handles this automatically.
> >
> >Also relative references like from samples/linking.xml to
> >../images/icon.png works.
> >
> >However as you say, "broken" references like ../../images/icon.png
> >do work, but the images are generated into a directory above
> >the build/site directory. No error is reported because Forrest
> >does correctly find the relevant sources.
> >
> >I don't know what to do about this latter problem,
> >other than an FAQ and docs to encourage the use of
> >references like /images/foo
> 
> Absolute references in the final output should also help with caching at 
> the proxy and browser level. As I understand it, caching proxies will 
> fetch both ../images/icon.png and ../../images/icon.png even when they 
> refer to the same resource. Proxies may be more intelligent than when I 
> last configured one, but this is the reason why consistent (read 
> absolute) URLs for site-wide resources were recommended.

Thanks Brian, very good point. That is something
else that we should ensure. Forrest already has
xslt code for "absolutizing".

However, my comments were solely regarding the
Cocoon processing sitemap matches which is not
necessarily related to the final output space.

-David

Mime
View raw message