tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: please read -- need to specify current working directory
Date Sun, 08 Jul 2001 17:53:32 GMT
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.

- donald


Mime
View raw message