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

Subject: Re: [xsl] Merging multiple documents with document() funtion
From: Eric Vitiello <xsl-list@xxxxxxxxxxxx>
Date: Mon, 14 Jan 2002 14:02:45 -0500
-- Paul Sprakes [Mon, 14 Jan 2002 18:47:30 -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?

I am currently doing the exact same thing, and ran into the exact error.  The only fix that I could find was to put another layer into the mix.  I am doing everything via ASP, so I had a local XML file, and an XSLT file that would combine the XML, and various other sources VIA document().  to fix the problem, I cerated a local ASP file that I could request with my document() call.  This ASp file would go get teh XML file for me, and cache it.  whenever the "fetch" ASP file encountered an error, it would simply return the previous cached data to me.

This also allowed me to set expiration times for the remote XML files, and created a MUCH faster transformation.


---
Eric Vitiello
Perceive Designs
<www.perceive.net>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread