cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: XSL images
Date Wed, 09 Apr 2003 14:29:32 GMT
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:gounis@osmosis.gr] 
Sent: Wednesday, April 09, 2003 4:16 PM
To: cocoon-users@xml.apache.org
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 Maxime.Gheysen@swisscom.com 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: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


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


---------------------------------------------------------------------
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