cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Goel <Abhishek.G...@morganstanley.com>
Subject Re: Image display
Date Mon, 17 Jun 2002 14:28:12 GMT
hi,
suppose you are typing the url
http://localhost:8080/images/cocoon-built.gif
so when you say "**" the value assigned to {1} will be=
images/cocoon-built.gif
which according to your case will become
src="resources/images/{1}.gif"= "resources/images/images/cocoon-built.gif"

so i think src should be resource/{1}.gif
i hope this works.
regards
Abhishek Goel

Maha M Al-Yahya wrote:

> Hello,
>   I'm new to cocoon and I'm trying to display an image which i have
> included in a stylesheet which looks like this:
> <img alt="Built with Apache Cocoon" src="images/cocoon-built.gif"/>
> The image file is located in cocoonhome/myapps/resources/images/
>
> I have added the following matcher (as found in cocoon-useres archive)
> to sitemap.xmap file
> <map:match pattern="images/**.gif">
>     <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
> </map:match>
>
> but with no success! I only see the "alt" message.
> Can anyone help?
>
> Cheers,
> mma
>
> ---------------------------------------------------------------------
> 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