cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: Wierd image / cocoon problem
Date Thu, 27 Jun 2002 07:04:09 GMT
> From: daniel robinson [mailto:drob@dnai.com] 
> 
> My sitemap specifies:
> 
>  <map:match pattern="images/**.gif">
>      <map:read src="images/{1}.gif" mime-type="image/gif"/>
>     </map:match>
>  
>     <map:match pattern="images/**.jpg">
>      <map:read src="images/{1}.jpg" mime-type="image/jpg"/>
>     </map:match>
> 
> 
> in my xslt I reference <img src="image/myjpg.jpg" ....>  This 
> all worked 
> fine on my dev machine.  I moved everything to a production 
> server and 
> no-one could see the images.  When I cleared my browser cache 
> I had the 
> same problem.  When I selectively copied files into the image 
> dir they 
> would show up - or not - intermitantly.  On the suggestion of 
> the sysadm 
> I copied all the images into a directory that Apache could see 
> htmlroot/images and then changed my references to <img 
> src="http://www.myserver.com/images/myjpg.jpg" .... >  this seems to 
> work fine in all cases.  What gives?

You can use simply <img src="/images/myjpg.jpg" .... > instead. 

Compare the URLs on the production server and your dev machine. Maybe they
don't match your "images/**.jpg" pattern. Maybe you need something like
"**/images/*.jpg"?

Konstantin

> 
> Thanks,
> 
> Dan
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message