You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Ritzmann, Heiko" <He...@godyo.com> on 2001/11/18 15:01:32 UTC
path to the pictures
Hi,
how I have to say cocoon the right path to the images. Cocoon find's all may
templates with ".../*", but the images in the templates are not visible,
although the relative path to the pictures is the right one. I think it's a
question of the sitemap, isn't it? I don't understand the examples in
standard cocoon.
Can anyone gif my an tip?
Thanks a lot
Heiko
Re: path to the pictures
Posted by Mohamed Abdel Hameed <mo...@imkenberg.net>.
hi Heiko
i think u have to write reader inside sitemap to identify the path of the
images
this is what i did when this problem occur with me
assuming u put all images under images directory just u write the name of
the image inside XSL
and reader will match this pattern and replace it with the right path
hope this help u
<map:match pattern="**.gif">
<map:read src="images/{1}.gif" mime-type="image/gif"/>
</map:match>
<map:match pattern="**.jpg">
<map:read src="images/{1}.jpg" mime-type="image/jpg"/>
</map:match>
///////////////////////////////////////////////////////////////////
----- Original Message -----
From: "Ritzmann, Heiko" <He...@godyo.com>
To: "'cocoon-user'" <co...@xml.apache.org>
Sent: Sunday, November 18, 2001 4:01 PM
Subject: path to the pictures
> Hi,
>
> how I have to say cocoon the right path to the images. Cocoon find's all
may
> templates with ".../*", but the images in the templates are not visible,
> although the relative path to the pictures is the right one. I think it's
a
> question of the sitemap, isn't it? I don't understand the examples in
> standard cocoon.
> Can anyone gif my an tip?
>
> Thanks a lot
>
> Heiko
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>