cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: Allowed Sitemap Constructs
Date Thu, 03 Jan 2002 14:43:04 GMT
John Morrison wrote:
> > From: Carsten Ziegeler []
> > John Morrison wrote:
> > >
> Would it be acceptable for the sitemap transformation to take
> what you wrote
> above and 'automagically' generate the following...
> <map:pipeline>
>  <map:match pattern="docs/*">
>   <map:act type="LogStatus"/>
>   <map:act type="ProtectAllResource">
>   ...
>   </map:act>
>  </map:match>
> </map:pipeline>
> This would then allow you to 'group' matches within an action but
> would only
> *do* the action when the match is found...?  Does this make
> sense?  Kind of
> a compromise between the verbosity you want in the first instance and what
> actually happens (my version...)?
I really like compromises. I see your concern that the action is always
invoked even if there is no pattern matching, but actually that's the reason
for putting an action on the top level.
Noone can prevent me currently from doing
<map:match pattern="**">
   <map:act type="LogStatus"/>
   <map:act type="ProtectAllResource">
   <map:match pattern="docs/*">

This is a workaround and has the same effect and it's absolutely legal,
so I see no reason against allowing actions as top-level elements.

If you disallow Actions as top-level elements you must also disallow
a match with the pattern="**" as top-level and this is impossible as
I can write my own matcher.

> J.
> =======================================================================
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
> Experian Limited (registration number 653331).
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message