<map:match pattern="images/*.gif">
     <map:read src="workflowmanager/images/{1}.gif" mime-type="image/gif"/>
</map:match>

using this mach pattern in cocoon's main sitemap

workflowmanager/images/ must be a physical path under ./cocoon/ dir

./cocoon/workflowmanager/images/ must exist in your disk

put there a test.gif

and ask the url

http://localhost:8080/cocoon/images/test.gif

then u will see your test gif in your browser

u r working in cocoon's main sitemap so check if inside this sitemap is
another match that catch the same pattern "images/*.gif" before yours


--stavros

On Wed, 9 Apr 2003 [EMAIL PROTECTED] wrote:

> in the main sitemap.
>
>
> -----Original Message-----
> From: Stavros Kounis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 09, 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: XSL images
>
>
>
> this entry (<map:match..)
> is in cocoon's main sitemap or in a sub-sitemap?
>
> stavros
>
>
>
> On Wed, 9 Apr 2003 [EMAIL PROTECTED] wrote:
>
> > I set this in the pipeline :
> > <map:match pattern="images/*.gif">
> >     <map:read src="workflowmanager/images/{1}.gif"
> > mime-type="image/gif"/>
> > </map:match>
> >
> > on my computer : "./cocoon/workflowmanager/images/abc.gif"
> > then in my xsl I have : <img src="images/abc.gif"/>
> >
> > but the images path still isn't valid (on my page I get
> > ".../cocoon/wfm/images/abc.gif")
> >
> > (wfm is the web name for workflowmanager)
> >
> > -----Original Message-----
> > From: Stavros Kounis [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 09, 2003 4:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSL images
> >
> >
> >
> >
> >
> > first of all try to ask your image directly to check if you can get it
> > or you need to make changes in your sitemap
> >
> > for example
> > i have my images into
> >
> > www/htdocs/themes/images/
> >
> > and my sitemap.xmap
> >
> > www/conf/
> >
> > ---- sitemap match pattern ---
> >
> > <map:match pattern="images/*.*">
> >     <map:read src="../htdocs/themes/images/{1}.{2}"
> > mime-type="image/gif"/>
> > </map:match>
> > <map:match pattern="themes/images/*.*">
> >     <map:read src="../htdocs/themes/images/{1}.{2}"
> > mime-type="image/gif"/>
> > </map:match>
> >
> > -------
> >
> > so i can get images with 2 ways
> >
> > <img src="images/myimage.gif" ...>
> > or
> > <img src="themes/images/myimage.gif" ..>
> >
> > ------
> >
> > notice that the src path in map match is relative to where
> sitemap.xmap
> > is
> >
> >
> > -- stavros
> >
> > On Wed, 9 Apr 2003 [EMAIL PROTECTED] wrote:
> >
> > > Hi,
> > > How work the images path? I have an xsl stylesheet with a image, but
> I
> > > can't display the image, I tried everything, please help!!!
> > >
> > > simply : <img border="0" src="t_rgb3.gif"/> <---where is the src
> path?
> > > at the cocoon root? the xsl root dir? or xsp root dir?
> > >
> > > THanks
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to