You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/04/09 16:00:42 UTC

XSL images

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


Re: XSL images

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
I think you must have a pipe dealing with images :
    <!-- images -->
    <map:match pattern="*.gif">
      <map:read mime-type="images/gif" src="resources/images/{1}.gif"/>
    </map:match>

--
Olivier

----- Original Message ----- 
From: <Ma...@swisscom.com>
To: <co...@xml.apache.org>
Sent: Wednesday, April 09, 2003 4:00 PM
Subject: XSL images


> 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


Re: servlet mapping

Posted by Wise Team <su...@interface-si.fr>.
Hi users,

I have find the answer to my question maybe it could help somebody else ;)
You musn't mapping the servlet in the sitemap.xmap
You must only mapping it in web.xml of your application


  <servlet>
    <servlet-name>Servlet_JAppletContentXml</servlet-name>
    <display-name>Servlet JAppletContentXml</display-name>
    <description>Default configuration created for servlet.</description>
    <servlet-class>servlet.JAppletContentXml</servlet-class>
  </servlet>


 <servlet-mapping>
    <servlet-name>Servlet_JAppletContentXml</servlet-name>
    <url-pattern>/servlet/JAppletContentXml</url-pattern>
  </servlet-mapping>

Have fun with cocoon :)
Regards

Stephanie

>> Hi all,
>
>
>
> I try again to solve this problem but not successfully.
>
>>
>>
>> I use tomcat 4.1.18, cocoon 2.0.5 and Jdk1.4.
>>
>> I try to use cocoon in a jsp project. The html page is separate in 
>> three frames, in one I use an applet which  call a servlet matching 
>> normally in a virtual repository.
>>
>> How can I say to cocoon that this servlet exists ?
>>
>> Please help me :)
>
>
>> I add in my sitemap.xmap this lines :
>>
>> <map:match pattern="servlet/JAppletContentXml">
>>        <map:generate src="/internal/JAppletContentXml"/>
>>        <!-- rest of pipeline to process results -->
>>    </map:match>
>>
>> and in the web.xml of cocoon :
>>
>> <servlet>
>>    <servlet-name>Servlet_JAppletContentXml</servlet-name>
>>    <display-name>Servlet JAppletContentXml</display-name>
>>    <description>Default configuration created for servlet.</description>
>>    <servlet-class>JAppletContentXml</servlet-class>
>> </servlet>
>>
>> <servlet-mapping>
>>    <servlet-name>Servlet_JAppletContentXml</servlet-name>
>>    <url-pattern>/servlet/JAppletContentXml</url-pattern>
>> </servlet-mapping>
>>
>> I obtain the folowing error :
>> java.io.FileNotFoundException: C:\Program Files\Apache Group\Tomcat 
>> 4.1\webapps\cocoon\mount\presentation\servlet\sitemap.xmap (Le chemin 
>> d'accès spécifié est introuvable) in the sitemap log of cocoon. 
>
>
>
>> Have you any idea to map this servlet??
>
>
>
> Thanks in advance,
> Regards,
>
> Stephanie
>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: servlet mapping

Posted by Wise Team <su...@interface-si.fr>.
> Hi all,


I try again to solve this problem but not successfully.

>
>
> I use tomcat 4.1.18, cocoon 2.0.5 and Jdk1.4.
>
> I try to use cocoon in a jsp project. The html page is separate in 
> three frames, in one I use an applet which  call a servlet matching 
> normally in a virtual repository.
>
> How can I say to cocoon that this servlet exists ?
>
> Please help me :)

> I add in my sitemap.xmap this lines :
>
> <map:match pattern="servlet/JAppletContentXml">
>        <map:generate src="/internal/JAppletContentXml"/>
>        <!-- rest of pipeline to process results -->
>    </map:match>
>
> and in the web.xml of cocoon :
>
> <servlet>
>    <servlet-name>Servlet_JAppletContentXml</servlet-name>
>    <display-name>Servlet JAppletContentXml</display-name>
>    <description>Default configuration created for servlet.</description>
>    <servlet-class>JAppletContentXml</servlet-class>
> </servlet>
>
> <servlet-mapping>
>    <servlet-name>Servlet_JAppletContentXml</servlet-name>
>    <url-pattern>/servlet/JAppletContentXml</url-pattern>
> </servlet-mapping>
>
> I obtain the folowing error :
> java.io.FileNotFoundException: C:\Program Files\Apache Group\Tomcat 
> 4.1\webapps\cocoon\mount\presentation\servlet\sitemap.xmap (Le chemin 
> d'accès spécifié est introuvable) in the sitemap log of cocoon. 


> Have you any idea to map this servlet??


Thanks in advance,
Regards,

Stephanie

>
>
>



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


servlet mapping

Posted by Wise Team <su...@interface-si.fr>.
Hi all,

I use tomcat 4.1.18, cocoon 2.0.5 and Jdk1.4.

I try to use cocoon in a jsp project. The html page is separate in three 
frames, in one I use an applet which  call a servlet matching normally 
in a virtual repository.

How can I say to cocoon that this servlet exists ?

I add in my sitemap.xmap this lines :

 <map:match pattern="servlet/JAppletContentXml">
        <map:generate src="/internal/JAppletContentXml"/>
        <!-- rest of pipeline to process results -->
    </map:match>

and in the web.xml of cocoon :

<servlet>
    <servlet-name>Servlet_JAppletContentXml</servlet-name>
    <display-name>Servlet JAppletContentXml</display-name>
    <description>Default configuration created for servlet.</description>
    <servlet-class>JAppletContentXml</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>Servlet_JAppletContentXml</servlet-name>
    <url-pattern>/servlet/JAppletContentXml</url-pattern>
</servlet-mapping>

I obtain the folowing error :
java.io.FileNotFoundException: C:\Program Files\Apache Group\Tomcat 
4.1\webapps\cocoon\mount\presentation\servlet\sitemap.xmap (Le chemin 
d'accès spécifié est introuvable) in the sitemap log of cocoon.

Hav you any idea??


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


Re: XSL images

Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Maxime,

you don't have "an xsl stylesheet with a image", but a XSL creating a HTML 
page containing an image element. That's an important difference! Because 
the image source path is resolved relative to the HTML page's path.

So if the HTML has the URL http://localhost:8080/my/path/index.html and you 
have the below image src, the absolute path is 
http://localhost:8080/my/path/t_rgb3.gif.

Regards,

Joerg

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

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


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


Re: XSL images

Posted by Stavros Kounis <go...@osmosis.gr>.


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