On Mon, 2006-12-04 at 08:34 -0800, Mark Lundquist wrote:
> On Dec 4, 2006, at 7:37 AM, Bertrand Delacretaz wrote:
> 
> > Restricting a single sitemap to use either of these engines (as
> > opposed to allowing a mix in a single sitemap) might help avoid
> > confusion.
> 
> I totally agree!
> 
> How about...
> 
>       <sitemap matching="classic">
> 
> This would be the default setting, to preserve backward-compatibility.  
> It would also log a message to the deprecation log!
> 
> vs.:
> 
>       <sitemap matching="engine">             <!-- out w/ the old, in w/ the 
> new :-) -->
> 
> I'm also thinking that with matching="engine", we should get rid of the 
> <matchers> section in the sitemap altogether, and set up the matching 
> engine component in cocoon.xconf.  WDYT?
> 
> cheers,
> —ml—

Or use different tags, say in resemblance to XSLT:

<map:if path="...">
...
</map:if>

<map:choose>
  <map:when path="...">
    ...
  </map:when>
  <map:otherwise>
  </map:otherwise>
</map:choose>

map:match and map:select can the be deprecated and removed in a future
version.

Cheers, Alfred.

Reply via email to