RE: [xsl] Merging multiple documents with document() funtion

Subject: RE: [xsl] Merging multiple documents with document() funtion
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 16 Jan 2002 09:08:48 -0000
> I have a source xml document which defines multiple url's to
> rss feeds. I
> then use an xsl transformation to combine these using a call to
> document(url) and then transform them into a single html
> page. Eveything
> works fine until one of the url's can't be reached (i.e.
> server goes down).
> When this happens, the processing stops and no more url's
> will be loaded.
> Is there any way to get the processor to continue to the next
> url if the
> prevous one cannot be resolved?

The XSLT processor is given discretion here, whether to abort or to recover.
The actual behavior therefore depends on the processor you are using. Some
processors allow you to control the recovery action. If the processor
supports JAXP 1.1, you can write your own URIResolver which returns a dummy
document if no real document can be found.

Mike Kay

 XSL-List info and archive:

Current Thread