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

Subject: Re: [xsl] Merging multiple documents with document() funtion
From: "Paul Sprakes" <paul@xxxxxxxxxxxxx>
Date: Mon, 14 Jan 2002 23:16:30 -0000
Thanks for the tip. Unfortunately, I need everything to run in a standalone
browser on the client, so no asp/cgi etc.. I have tried running it in
Mozilla with a purposely broken url and it worked perfectly, so it seems
that this is a msxsl bug.

Cheers, Paul.

----- Original Message -----
From: "Eric Vitiello" <xsl-list@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, January 14, 2002 7:02 PM
Subject: Re: [xsl] Merging multiple documents with document() funtion


> -- 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
>


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


Current Thread