Kjetil Kjernsmo wrote:
So, I should send proper XHTML to clients that supports it, and dumb it down to HTML and use text/html to clients that don't. Cocoon seems ideally suited to do this.

The dumbing down is probably easy enough, AFAICS, this stylesheet will do the trick: http://www.stylusstudio.com/xsllist/200004/post10360.html

Now, I just need to append this to the pipeline, but only for the clients that doesn't support application/xhtml+xml. So, my question is, how do I do that?
If you already know the list of "dumb" browsers, the BrowserSelector[*] should do the trick. Add a <map:select> statement for the browsers that need text/html, and use the refered xsl an the html-serializer.

Askild
-

[*] http://cocoon.apache.org/2.1/userdocs/default/browser-selector.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to