Vladimir,

It seems that you tell cocoon to ask himself via http: to get the image...
When you are in your sitemap, you have to point the image location in your sitemap.

Try :
<map:read  mime-type="image/gif"  src="pics/{1}.gif"/>

PS : Please don't write your mails to the list in HTML : it's not necessary, it's bigger, and you eliminate a great number of potential guy to read it.

HTH
--
Olivier Billard


Vladimir Lisin wrote:

Hi all, I have the next situation:

There is directory D:\cocoon-2.1.5\build\webapp\html-xml\
There are two files :
First is sitemap.xmap :
---------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
<map:pipelines>
<map:pipeline>
<map:match pattern="pics/*.gif">
<map:read mime-type="image/gif" src="http://localhost:8888/pics/{1}.gif"/>
</map:match>
<map:match pattern="sp">
<map:read src="sp.html" mime-type="text/html"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
---------------------------------------------------------------------------------------------------------------------


Second is sp.html :
--------------------------------------------
<html>
<head>
<TITLE>Picture</TITLE>
</head>
<body>
<h3 align=center><img src=../pics/z82.gif width=36 height=34><br>Picture 1</h3>
</body>
</html>
-------------------------------------------
After load : http://localhost:8888/html-xml/sp I have not on the page in browser the image of z82.gif
The path for directory "pics" is D:\cocoon-2.1.5\build\webapp\pics\
I wrote the tag <map:read mime-type="image/gif" src="d:\cocoon-2.1.5\build\webapp\pics\{1}.gif"/> but nothing.


In " http://wiki.apache.org/cocoon/Source "  is  point :

  "2. Resolving a source
/TODO explain SourceResolver, SourceFactory and URLFactory/ "

But  I  can't  search this refrence :-((((((

Can anyone correct my  mistakes ?

Thanks in advance.

VL




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



Reply via email to