Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Delivered-To: moderator for cocoon-users@xml.apache.org Received: (qmail 28498 invoked from network); 28 Apr 2000 20:45:03 -0000 Received: from mailgate1.uea.ac.uk (139.222.230.1) by locus.apache.org with SMTP; 28 Apr 2000 20:45:03 -0000 Received: from mailserver1.uea.ac.uk [139.222.130.16] by mailgate1.uea.ac.uk with esmtp (Exim 1.73 #1) id 12lHdK-0001ZZ-00; Fri, 28 Apr 2000 21:45:06 +0100 Received: from [139.222.129.44] (helo=itcsajs5.cpc.uea.ac.uk ident=mail) by mailserver1.uea.ac.uk with esmtp (Exim 3.02 #1) id 12lHdJ-0003u0-00 for cocoon-users@xml.apache.org; Fri, 28 Apr 2000 21:45:05 +0100 Received: from paulr by itcsajs5.cpc.uea.ac.uk with local (Exim 2.05 #1 (Debian)) id 12lHdI-0000Rt-00; Fri, 28 Apr 2000 21:45:04 +0100 Date: Fri, 28 Apr 2000 21:45:04 +0100 From: Paul Russell To: cocoon-users@xml.apache.org Subject: Re: Different Stylesheets depending on requestParameter Message-ID: <20000428214504.I877@itcsajs5.cpc.uea.ac.uk> References: <7B350C14D80ED411B49D0050DA41C90D0593@enterprise.on2trade.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <7B350C14D80ED411B49D0050DA41C90D0593@enterprise.on2trade.de>; from awi@on2trade.de on Fri, Apr 28, 2000 at 05:23:15PM +0200 Organisation: Luminas Ltd. Sender: Paul Russell X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Fri, Apr 28, 2000 at 05:23:15PM +0200, Andreas Witt wrote: > This kind of brings up the question why the stylesheet ist referenced > within the XML page in the first place. If we are trying to seperate > content from presentation shouldn't the stylesheet be assosiatet with > the document at some higher level ? Indeed - this will be (and indeed is) fixed in Cocoon2. Meanwhile... > Anyhow. Any help on the subject above would be appreciated. The best solution I've seen so far is to use XSP to dynamically rewrite the PIs (processing instructions) in the XML files according to the request URI. There have been several people asking this question recently, so you should be able to find some examples in the mailing list archives. HTH -- Paul Russell Technical Director, http://www.luminas.co.uk Luminas Ltd.