Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 39677 invoked from network); 4 Aug 2000 08:27:53 -0000 Received: from fwall.clustra.com (HELO smtp.trd.clustra.com) (fwuser@195.204.160.194) by locus.apache.org with SMTP; 4 Aug 2000 08:27:53 -0000 Received: (qmail 14785 invoked from network); 4 Aug 2000 08:27:52 +0000 (GMT) Received: from dhcp-10-179.clustra.com (HELO nt-trd-25.clustra.com) (10.10.200.179) by maestro.clustra.com with SMTP; 4 Aug 2000 08:27:52 +0000 (GMT) Message-Id: <4.3.2.7.2.20000804101426.00be7100@mail.trd.clustra.com> X-Sender: yngves@mail.trd.clustra.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 04 Aug 2000 10:27:52 +0200 To: cocoon-users@xml.apache.org From: Yngve Svendsen Subject: Applying a different stylesheet - possible? In-Reply-To: References: <39897100.5EFD2FDE@insage.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I am running a Cocoon-based setup with Apache JServ. For the time being, the only purpose it is being used for is applying fairly simple XSL stylesheets to XML docs. The setup runs nicely, but I have run into one seemingly insurmountable problem: Cocoon seems to lack the capability for applying a different stylesheet to a document than the one specified in the document itself. Our setup uses a form where users specify what document they need and whether the document should be formatted for screen or print. The form data gets posted to a simple script which redirects the client to the requested document. I know that Cocoon supports different media types, but I see no way of modifying the User-Agent header in the client request in order to exploit this. Our former, purely Xalan-based servlet setup had a simple mechanism for applying different stylesheets, but Cocoon seems to be unable to do this. Has anyone been able to find a workaround for this? I should probably add that I know very little Java. This might be an FAQ, but the only references to this kind of problem I've been able to find are almost a year old. Yngve Svendsen yngve.svendsen@clustra.com