cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huber, Daniel" <Daniel.Hu...@TechniDATA.DE>
Subject RE: Pattern matching for static resources
Date Wed, 08 Sep 2004 11:59:07 GMT
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>


With this matcher it doesn't matter what path was used to request a GIF,
all will be read from the same directory



Regards,

Daniel

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


Mime
View raw message