Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42532 invoked from network); 25 Apr 2006 12:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 12:17:40 -0000 Received: (qmail 95352 invoked by uid 500); 25 Apr 2006 12:17:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95121 invoked by uid 500); 25 Apr 2006 12:17:10 -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 95110 invoked by uid 99); 25 Apr 2006 12:17:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 05:17:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of funkman@joedog.org designates 204.74.20.252 as permitted sender) Received: from [204.74.20.252] (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 05:17:09 -0700 Received: from [10.38.20.134] (tafunk-lt.americas.armstrong.com [10.38.20.134]) by sid.armstrong.com (8.13.6/8.12.8) with ESMTP id k3PCHsf5002876 for ; Tue, 25 Apr 2006 07:17:58 -0500 Message-ID: <444E132C.5050403@joedog.org> Date: Tue, 25 Apr 2006 08:16:44 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problem with the xsl:import References: <5BABED549FA0374BBBC0F5CC4DF9DB69F5C0B9@lon0355xns.fm.rbsgrp.net> In-Reply-To: <5BABED549FA0374BBBC0F5CC4DF9DB69F5C0B9@lon0355xns.fm.rbsgrp.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Here's the problem. xsl:import is purely an XSL thing. So it doesn't necessarily do anything similar to how the servlet spec does things. So when you have - cowbell is retreived in a relative style with respect to its context. (which could be file, or http). Your webapp lives in a context. But xsl knows nothing about context, or context as defined by the servlet spec. So asking for http://localhost/aaem/xsl/routesummarycontent.xsl is the same as a webbrowser asking for it. On a multi-hosted machine - yup - this will bring you interesting results. So what you probably need is your own javax.xml.transform.URIResolver. You probably need to write your own implementation of it and have tomcat use it. (A topic for which I have done neither) -Tim BLAND, Geoff, GBM wrote: > Marc, > > Thanks for the reply. > > We can put in an import of the form > > > > and that works fine (for a single web server). > > But we have multiple web servers on the box (using different ports and > different install paths) and they may be different versions (development, > UAT, production) having different versions of routesummarycontent.xsl. If we > use the import above all servers end up selecting the XSL for just one of > the versions. > > We don't want to have a different import for each version either as that > will need modifying as we migrate updated versions between servers. > > What we need is a "relative" import, for example, > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org