Alejandro,

What's wrong with:

<map:match pattern="x*/y*/z*.gif"> 
  <map:read mime-type="image/gif" src="img/y{2}/z{3}.gif"/>


PS Plain text mail is better.

Vadim

--
Resistance is futile. 

-----Original Message-----
From: Alejandro Raiczyk [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 06, 2002 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: Question about WildcardURIMatcher

Hi people, I've got this situation: 
When I make a request, for example, of a gif like y/z.gif (where
y=y1/y2/../yn, n>=0) from a page p in x/ ({document_root}/x/p.xml, where
x=x1/x2/../xn, x>=0) the URI passed to the matcher is x/y/z.gif.
The only part I care from this URI is y/z, I mean, I don't care where
the page that is making the request is, because I want z.gif to be taken
from {document_root}/img/y/z.gif.
I tried diferent pattern matchings, and couldn't find one that works.
The problem is to identify where x ends (or where y begins), so I tried
to use a explicit delimiter in the URIs like
        <img src="#y/z.gif"/> 
and then match this with: 
        <map:match pattern="**#**.gif"> 
                <map:read mime-type="image/gif" src="img/{2}.gif"/> 
        </map:match> 
but it didn't work also. 
Can someone help me with this ? 
Thanks in advance. 
Alejandro D. Raiczyk 
Desarrollo de Proyectos 
Technisys Informática S.R.L. 
Tel./Fax: +54(11)4322-7100 int 133 
[EMAIL PROTECTED] 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to