Hi Paul,

URI's are case sensitive, so that's why the match is too. Another reason is
that some file systems are also case sensitive so passing a wildcard would
lead to different results.
You can use regexp matchers to match both .bmp and .BMP in the same
pipeline.
First configure the matcher:
      <map:matcher name="regexp"
src="org.apache.cocoon.matching.RegexpURIMatcher"
logger="sitemap.matching.regexp"/>

Then the pipeline
<map:match pattern="^(.+)[.](bmp|BMP)$" type="regexp">

Jasha Joachimsthal

Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

www.onehippo.com


On 30 January 2012 16:09, Paul Joseph <[email protected]> wrote:

> Hi there,
>
> The cocoon site map is case sensitive (
> http://cocoon.apache.org/2.1/**userdocs/parameter-selector.**html<http://cocoon.apache.org/2.1/userdocs/parameter-selector.html>
> ).
>
> I have the need to upload various images...I have a sitemap (parts shown
> below).
>
> <map:match pattern="*.bmp">
> <map:read mime-type="image/bmp"
>  src="context://webtask/**taskfiles/{0}"/>
> </map:match>
>
>
> However the customer tried to upload a file whose extension was in CAPS.
> as in myimage.BMP
>
> Any way to "compactly" address this instead of duplicating all the entries
> with their cap eqivalents?
>
> Paul
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@cocoon.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to