tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: please read -- need to specify current working directory
Date Wed, 11 Jul 2001 02:00:15 GMT


On Sun, 8 Jul 2001, Donald Ball wrote:

> On Sun, 8 Jul 2001, Victor Wynnytsky wrote:
> 
> > [ WHY I NEED THIS ]
> > It is very common for an XSL page to include another XSL page.
> > An XSL page called "orderDetail.xsl" might begin like this...
> >
> >   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0">
> >   <xsl:import href="nav.xsl"/>
> >   <xsl:import href="grid.xsl"/>
> >   <xsl:template match="/">
> >   ...
> >
> > The focus of my problem is on the <xsl:import> tag.  I'm using a *web*
> > path there, and I'm sure everyone using Xalan is using an *file* path.
> > The above sample XSL shows orderDetail.xsl trying to refer to nav.xsl
> > in the same folder (ie: web path).
> 
> you should check out the javax.xml.transform.URIResolver interface. you
> can have trax transformers call one of your methods to resolve uris.
> 

You should really do as Donald suggests.  One of the flaws to your current
approach is that "user.dir" is global to all webapps, so as soon as you
have your apps processing multiple requests at the same time, you're going
to run into race conditions.

> - donald
> 
> 

Craig McClanahan



Mime
View raw message