On Wednesday 12 June 2002 01:20 pm, Jonas Petersen wrote:
> I am working on a selector that analyses the  Accept header of the
> browser and provides a way to (for example) response with the best
> fitting content(-type). It's comparable with the apache module
> 'mod_negotiation'.

awesome!

> Now a problem that I encountered:
>
> For each <map:when/> the select() function gets called. There I do the
> weight calculations with the current Accept header against the
> configuration. This produces some overhead because this really needs to
> happen only once (in the beginning of the <map:select/>.

Already encountered. Look at the Switch Selector:
http://cvs.apache.org/viewcvs/xml-cocoon2/src/java/org/apache/cocoon/selection/SwitchSelector.java

-pete

-- 
peter royal -> [EMAIL PROTECTED]

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

Reply via email to