cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yann" <ylelo...@ims.ltd.uk>
Subject Re: dynamic production of XML
Date Wed, 10 May 2000 12:55:00 GMT
Cocoon produces XML on the server. What is passed to the client is HTML for
instance in the case of IE5. That depends on your stylesheet.

What you were doing was to generate XML from your Java Servlet and have the
client render it. That is not how Cocoon works (although it can do that to).

If you wanted to support Netscape that wouldn't be any different. Even
better, with Cocoon you can apply a stylesheet depending on the HTTP request
User Agent so you can have 1 stylesheet for IE, 1 stylesheet for Netscape.
Both stylesheets could render XML in any browser-dependant
HTML/DHTML/you-name-it way avoiding all sort of "if browser = IE then" sort
of obscure syntax.

The bottom line: Cocoon is a big servlet that creates XML documents and uses
XSL stylesheets to render client-specific ways to display them. The
production and tronsformation of these documents is done on the server. Only
the rendering is done on the client.

Yann.


Mime
View raw message