Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 66052 invoked from network); 13 Jun 2007 11:01:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 11:01:39 -0000 Received: (qmail 27460 invoked by uid 500); 13 Jun 2007 11:01:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27442 invoked by uid 500); 13 Jun 2007 11:01:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27415 invoked by uid 99); 13 Jun 2007 11:01:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 04:01:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.140.77.184] (HELO mail.schoenhaber.de) (217.140.77.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 04:01:19 -0700 Received: from localhost (unknown [127.0.0.1]) by mail.schoenhaber.de (Postfix) with ESMTP id 8BF2E705DFD3 for ; Wed, 13 Jun 2007 11:00:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at schoenhaber.de Received: from mail.schoenhaber.de ([127.0.0.1]) by localhost (mail.schoenhaber.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AWVEBHnromOy for ; Wed, 13 Jun 2007 13:00:56 +0200 (CEST) Received: from [192.168.42.6] (Gimli [192.168.42.6]) by mail.schoenhaber.de (Postfix) with ESMTP id 0CA57705DFD0 for ; Wed, 13 Jun 2007 13:00:56 +0200 (CEST) Message-ID: <466FCE67.2040206@schoenhaber.de> Date: Wed, 13 Jun 2007 13:00:55 +0200 From: =?UTF-8?B?TWFya3VzIFNjaMO2bmhhYmVy?= Reply-To: users@tomcat.apache.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070604 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Re: Problem with XSL stylesheet not being applied when XML served through Tomcat References: <466F2FB8.80100@library.berkeley.edu> <466FB891.304@schoenhaber.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Owen Rees wrote: > --On Wednesday, June 13, 2007 11:27:45 AM +0200 Markus Schönhaber > wrote: > >> I don't think this has anything to do with Tomcat. It rather seems >> to me that Firefox loads and applies the XSL if the URL referencing >> it points to the same server(?) / base URL (?) the XML file comes >> from. Drop the XSL into the Tomcat webapp and modify the XML source >> (or our code generating it) to reference it from there. Then it >> will propably be applied. If you find out whether this is a >> documented feature of Firefox or simply a bug, please let me know. > > > > > At the end of the "Why isn't my stylesheet applied?" section it says: > "Mozilla won't load XSLT stylesheets from a different domain for > security reasons." Thanks for the pointer, Owen! Another comment targeted @ the OP: IMO XSL transformations should be done on the server side, not on the client side. Doing it on the client side may be OK if you have a very specific user base and you can be sure that their clients support XSLT. If you target a more general audience, you'll propably exclude some potential users because their clients won't apply the stylesheet. For example, my konqueror doesn't - and since AFAIR Safari is based on the same foundation as konqueror, it propably won't either. Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org