Hi Vladimir, According to your sitemap "sp" and "pics/" are on the same level. Why do you refer to gif with "../" prefix? The path should be (according the sitemap) "http://localhost:8888/html-xml/pics/z82.gif" so that reference is "pics/z82.gif" and not "../pics/z82.gif ".
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]
