cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <colle...@umn.edu>
Subject Re: OR statement in sitemap match pattern
Date Fri, 10 Oct 2003 19:15:26 GMT
gounis@osmosis.gr wrote:
> hi people
> 
> is it possible to have something just like or statemend 
> in sitemap match pattern?
> 
> <map:match pattern="Home|Welcome|Entrance"> (home or Welcome or Entrance)
> 
> 
> i think tha this can be using RegExp (but im looking something simpler)


Well, if you want REALLY simple, just create 3 pipelines that are the same, but match different

patterns :)

If you want to go the regexp way, it would be pretty easy:

<map:match type="regexp" pattern="Home|Welcome|Entrance">
...
</map:match>

IMO this seems simple and elegant enough, and is easy to understand.

> 
> 
> thanx
> 
> --stavros

Regards,
Tony


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


Mime
View raw message