Re: [xsl] Setting Base URL For Resolivng xsl:include/xsl:import

Subject: Re: [xsl] Setting Base URL For Resolivng xsl:include/xsl:import
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 21 May 2004 17:41:39 +0100
Hi Eliot,

> 1. Was my expectation justified or have I misunderstood how URL
> resolution works generally or in XSLT or in Saxon?

It should work in the way you expect, from what you've described.

I have sometimes encountered problems where it looks like URLs aren't
being resolved properly and it turns out the server is rewriting (or
reinterpreting) the URLs behind the scenes. I suggest testing the XSLT
on a local filesystem (i.e. without going through the server) to
confirm that the relative URLs are correct, and then looking at the
server configuration.

Another thing that might mess things up is if you're using entities or
xml:base, both of which might change the base URI of the stylesheet
and thus the base URI against which the relative URI is resolved.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Current Thread