This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Merging multiple documents with document() funtion


> 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:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]