Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 86950 invoked from network); 9 Nov 2000 20:00:15 -0000 Received: from palrel3.hp.com (156.153.255.226) by locus.apache.org with SMTP; 9 Nov 2000 20:00:15 -0000 Received: from orion.nsr.hp.com (orion.nsr.hp.com [15.47.171.122]) by palrel3.hp.com (Postfix) with ESMTP id 860F4972; Thu, 9 Nov 2000 12:00:01 -0800 (PST) Received: (from ovidiu@localhost) by orion.nsr.hp.com (8.9.3/8.9.3/client.cv) id LAA24146; Thu, 9 Nov 2000 11:58:25 -0800 Message-Id: <200011091958.LAA24146@orion.nsr.hp.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0 From: Ovidiu Predescu To: Donald Ball Cc: cocoon-dev@xml.apache.org Subject: Re: Better and Better and RT In-Reply-To: Your message of "Thu, 09 Nov 2000 14:29:05 EST." X-Url: http://www.geocities.com/SiliconValley/Monitor/7464/ X-Image-Url: http://www.geocities.com/SiliconValley/Monitor/7464/ovidiu.tiff X-Face: ?(@Y~qjBA}~8ZMh5gM4{Q{bE_*:sCJ3@Z?{B*Co=J!#8bb~-z?-0._vJjt~MM59!MjxG%>U 5>MW^2-\7~z04buszR^=m^U|m66>FdR@cFwhb;.A(8*D.QmLkK]z,md0'HiOE\pyeiv_PACR+P:Cm. wq_%l':E:q]g-UCc>r&s@BVo'kFN;(\9PF22Myg5w%nUBWQ6MJJ#qL#w>2oxckP'H:\$9F"mxsz]Dg k{1`fTcP'Y$CgGnc^paTV$dzhVX+;(U$;Eb)P<>G)g) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 09 Nov 2000 11:58:25 -0800 Sender: ovidiu@cup.hp.com X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Thu, 9 Nov 2000 14:29:05 -0500 (EST), Donald Ball wrote: > On Sat, 4 Nov 2000, Ross Burton wrote: > > > I have plans to write both of these. I'm currently finishing a spec for > > BrowserCapabilitySelector which will include Accepts as a parameter, and > > IIRC a ParameterMatcher was posted recently which might be able to be > > changed to a selector. > > any luck searching for an open database of browsers and their > capabilities, or do we still need to write our own? :) What kind of browser capabilities are you looking for? As I said in an earlier posting, I have already implemented something similar for C1. I posted the patch on the mailing list a while ago. It should be fairly easy to port the code to C2, although I admit I didn't look at C2 as much as I looked on C1. The patch looks at the Accept: header if the user agent is not known and generates the correct media type for Cocoon. When the user agent is specified, Cocoon passes to the XSLT processor as an argument a DOM tree with the browser capabilities. One can make use of this argument to generate a customized mark-up page; I'm already doing it for WML browsers. The initial code is aimed at supporting WML browsers, but it can be extended easily to support HTML browsers as well. In fact the database does contain a description of some HTML browsers, but nothing really serious. Please let me know if you want me to repost the patch. Regards, -- Ovidiu Predescu http://orion.nsr.hp.com/ (inside HP's firewall only) http://www.geocities.com/SiliconValley/Monitor/7464/