Rainer Pruy wrote:
wildcard *matcher* is one of the most used components with cocoon, I'd reckon. But what to do, when one needs to handle X/c/** and X/** (excluding X/c/**) different? At least if the contained components are not "final" (serialize, read)

Cocoon has no URI selector, wildcard or otherwise, probably as some kind of deliberate design choice.

This kind of problem is easily solved with Perl-compatible regexps, but Cocoon uses the inefficient and less powerful Jakarta Regexp package (this is a big gripe of mine, btw) probably for "hysterical raisins."

If it used the native java.util.regex you could match on "^X/c/" and on "^X/(?!c/)", but alas you're limited to egrep-style regular expressions, which lack negative lookaheads.

If you don't like the nested simple selector solution, or the resources solution, you will have to write your own matcher or selector. Which is not hard at all, by the way. Just extend AbstractPreparableMatcher or AbstractSwitchSelector, put your class in WEB-INF/classes and give it a short name in your sitemap.xconf.


Tobia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to