You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Corda, Ugo" <Ug...@usa.xerox.com> on 2000/02/05 02:54:11 UTC

Bypassing Cocoon formatting for certain browsers

I would like to prevent Cocoon from processing and formatting an xml file
and associated xsl stylesheet in cases where the client browser has already
the capability of doing that locally (e.g. IE 5.0, when the stylesheet
generates HTML).  Is there a way to tell Cocoon not to do anything in the
case the requesting browser is of a particular type?

Thank you,

Ugo Corda
Xerox Corp.

Re: Bypassing Cocoon formatting for certain browsers

Posted by Stefano Mazzocchi <st...@apache.org>.
"Corda, Ugo" wrote:
> 
> I would like to prevent Cocoon from processing and formatting an xml file
> and associated xsl stylesheet in cases where the client browser has already
> the capability of doing that locally (e.g. IE 5.0, when the stylesheet
> generates HTML).  Is there a way to tell Cocoon not to do anything in the
> case the requesting browser is of a particular type?

Hmmm, like many other things that Cocoon is currently missing, the
sitemap proposal should handle them property. This is one of them.

As a pretty dirty hack (to get it working now), you can create a dummy
stylesheet that copies over everything without touching and apply it
based on the media type of your particular web browser.

Hope this helps.

Stefano.