Re: [xsl] coping with missing external document

Subject: Re: [xsl] coping with missing external document
From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx>
Date: Thu, 31 Jul 2008 11:49:33 +0200
On 31/07/2008, Trevor Nicholls <trevor@xxxxxxxxxxxxxxxxxx> wrote:
> Is there anything I can add to the template, or stylesheet, so that this
> situation does not generate a fatal error?

Depends a bit on your processor. Both Sablotron and LibXSLT have
options for silent supressing of unresolved document(). I think Saxon
has, too. Xalan don't, but you *could* use the -URIRESOLVER
[full-path] option to specify your own URI resolver, which you can
just have resolve to an empty document with a blank root you can test
on if resolved to 404. Xalan is not recomended, and if you can,

 Project Wrangler, SOA, Information Alchemist, UX, RESTafarian, Topic Maps
------------------------------------------ --------

Current Thread