cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Paul Adams <co...@colina.demon.co.uk>
Subject Re: Request headers
Date Mon, 26 Jul 2004 19:48:57 GMT
>>>>> "Ugo" == Ugo Cei <ugo@apache.org> writes:

    Ugo> Il giorno 26/lug/04, alle 15:53, bernhard huber ha scritto:
    Ugo> Colin Paul Adams wrote:
    >>>>> <pattern name="xhtml">^.*application/xhtml\+xml.*$</pattern>
    Ugo> Wouldn't <pattern
    Ugo> name="xhtml">application/xhtml\+xml</pattern> have the same
    Ugo> effect? I think it should.
    >>> Yes - it does.
    >>> 
    >> I was checking the header accept sent by mozilla, it says:
    >> accept =
    >> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
    >> plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
    >> 
    >> thus checking if application/xml is available you need some
    >> sort of RE, that's the reason for using plain HeaderSelector is
    >> a bit tedious.

    Ugo> Of course. But the regexp "application/xhtml\+xml" should
    Ugo> match everything that "^.*application/xhtml\+xml.*$" matches,
    Ugo> unless something is escaping me. The former is simpler and
    Ugo> has the same effect.

The only reason the ^.* and .*$ were there, was I was having problems
getting the thing to work, so I was playing around with various REs.

Now, I'm just having problems with the test case, but I'll fathom it
out sometime tomorrow.
-- 
Colin Paul Adams
Preston Lancashire

Mime
View raw message