Hi sebb,

Don't know if this is answered yet, but I guess Xalan uses the java
standard HttpURLConnection to get the contents as an inputstream. The
HttpURLConnection class has a static method 'setFollowRedirects(boolean)',
which enables or disables redirection handling for all HttpURLConnections
in your JVM. There might be some code that disables this (the default is
'true'). If enabling redirection handling breaks your code, you might want
to override the URIResolver for your transformations. In that case, you can
implement how external contents is loaded (e.g. you can add caching of
resources, etc). Be aware that the URIResolver also handles includes and
imports, not only the document() function.
Hope this helps.
Best regards,
Dennis

On Tue, Jan 5, 2016 at 8:44 PM, sebb <[email protected]> wrote:

> I'm getting an error when using document() on a URL which redirects.
>
> It looks like Xalan (2.7.2) is not honouring the redirect, but instead
> is processing the content.
>
> Is this a known restriction?
>
> Is there a way to tell Xalan to honour redirects when processing
> document() calls?
>



-- 
D.G. van der Laan, MSc
Sr. Software Engineer, Center for Information Technology
+31 (0)50 363 9273

Reply via email to