cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: something that bugs me
Date Thu, 01 Nov 2001 21:26:56 GMT
Peter Royal wrote:

> At 08:08 PM 10/30/2001 +0100, you wrote:
> 
>>    <map:match pattern="**images/*.jpg">
>>     <map:read src="images/{2}.jpg" mime-type="image/jpeg"/>
>>    </map:match>
>>
>> could be condensed into
>>
>>    <map:match pattern="**images/*.*">
>>     <map:read src="images/{2}.gif" mime-type="image/{3}"/>
>>    </map:match>
> 
> 
> it won't work for jpeg's unless you name them .jpeg as the mime type and 
> the extension don't match :)


Good point :)

Probably it shows why a little verbosity is better :)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                           able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



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


Mime
View raw message