cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject RE: Pattern matching for static resources
Date Wed, 08 Sep 2004 12:51:16 GMT
Daniel

Thanks,  I think I need to add the following to make it fit exactly:

   <map:match pattern="**/resources/custom/**/*.gif">
      <map:read src="resource/actual-dir/{2}/{3}.gif"
mimetype="image/gif"/>
   </map:match>

Derek

>>> Daniel.Huber@TechniDATA.DE 2004/09/08 02:14:22 PM >>>
> Hi Derek,
> 
> > Please help with a simple match that I cannot get
> > to work...
> > 
> > in HTML I will have:
> > 
> > src="/dir1/dir2/dir3/resources/custom/images/icon.gif"
> > or
> > src="dir2/dir3/resources/custom/images/icon.gif"
> > or
> > src="dir3/resources/custom/images/icon.gif"
> 
> 
> just use this
> 
>    <map:match pattern="**/*.gif">
>       <map:read src="resource/actual-dir/{2}.gif"
mimetype="image/gif"/>
>    </map:match>
> 

Sorry Derek, I just realized what you want to do. (Next time I will
think twice...)
If you want to select the set of images by the appearance of
"custom"images" anywhere in the URL, this might be the right matcher:

   <map:match pattern="**/resources/custom/**/*.gif">
      <map:read src="resource/actual-dir/{3}.gif"
mimetype="image/gif"/>
   </map:match>


Regards,

Daniel

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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


Mime
View raw message