On Tue, 10 Jun 2003, Tim Bachta wrote:

> Ok, I tried this and no luck, I don't understand what I am doing wrong?
>
> Xsl:
> <img src="images/icons/disabled/keypad.gif" />

this is ok

now for match pattern try something strong


<map:match pattern="images/icons/disabled/*.gif">

<map:read src="images/icons/disabled/{1}.gif"/>

<!-- be carefull in map:read src :  the path is relative to the position
of sitemap.xmap in your file system
-->

</map:match>


or  something more flexible

<map:match pattern="**/*.gif">
<map:read src="{1}/{2}.gif"/>
<map:match

in this case
a uri: http://..../images/icons/dot.gif

will give you the dot.gif file from path
[where your sitemap.xmap is]/images/icons/dot.gif

--stavros

>
> Sitemap:
>
> <map:match pattern="**.gif">
> <map:read src="images/{1}.gif" mime-type="image/gif"/>
> </map:match>
> <map:match pattern="images/icons/disabled/**.gif">
> <map:read src="images/icons/disabled/{1}.gif" mime-type="image/gif"/>
> </map:match>
>
> The images a located in an images folder off of the root from there they
> have subfolders in this case icons with a subfolder called disabled.
>
> Thanks
> Tim
>
> -----Original Message-----
> From: Geoff Howard [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2003 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Gif image
>
> Well, first of all that image src reference is to the image on your
> local
> computer - so even if you get it working locally, it won't work for
> anyone
> but you.  Actually, it starts off that way and then ends with what was
> probably
> meant to be the reference to the server location via http.
>
> Second, be sure you have a pipeline set up to serve static content, or
> your
> webserver/cocoon setup causes static images to be served directly from
> the
> webserver.
>
> See: http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles
>
> Geoff Howard
>
> At 11:23 AM 6/10/2003, you wrote:
> >I am trying to show an image in my final file.  I am using the
> following
> >code in my xsl file but when I go to the page as all I get is the blank
> >image icon.  Can anyone please help me with my little issue here, I
> know
> >it is probably a stupid mistake but I have not been able to find it
> >anywhere.  Thanks.
> >
> ><img src="C:\Program Files\Apache Group\Tomcat
> >4.1\webapps\cocoon\vyzo\images/icons/disabled/keypad.gif" /><br
> />Keypad
> >
> >Tim Bachta
>
>
> ---------------------------------------------------------------------
> 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