cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Paul Adams <>
Subject Re: Request headers
Date Mon, 26 Jul 2004 10:16:29 GMT
>>>>> "Bernhard" == bernhard huber <> writes:

    Bernhard> hi, what about using this kind of snippet?

    Bernhard> <map:select type="header"> <map:parameter
    Bernhard> name="header-name" value="accept"/> <map:when
    Bernhard> test="application/xhtml+xml"> ...  </map:when>
    Bernhard> <map:otherwise> ...  </map:otherwise> </map:select>

I don't think so.

    Bernhard> you may want to read the wiki, too, see

I read it. And it says you can only match on the value of the header,
whereas I want to check if the header contains the string or not.

I think I'll write a RegexpHeaderSelector.
Colin Paul Adams
Preston Lancashire

View raw message