I've written an xslt extension that called a third-party datasource (a web service), and then returns the result to my xslt file for further manipulation.
Unfortunately, the web service is currrently unreliable, and can take 6 to 7 seconds to respond. However, my C# code doesn't throw an error before no error has been encountered...it's just waiting.
Umbraco, however, appears to be impatient, and if the C# extension code hasn't returned a response within about two seconds, if throws the "Error parsing XSLT file:" error.
What error-handling strategies can we use in xslt? I've tried if(myextention) !="", but that's not catching it...
Am I just going to have to rewrite my C# so that it it hasn't received a response in 1 second it returns a default value?
Error handling in xslt
I've written an xslt extension that called a third-party datasource (a web service), and then returns the result to my xslt file for further manipulation.
Unfortunately, the web service is currrently unreliable, and can take 6 to 7 seconds to respond. However, my C# code doesn't throw an error before no error has been encountered...it's just waiting.
Umbraco, however, appears to be impatient, and if the C# extension code hasn't returned a response within about two seconds, if throws the "Error parsing XSLT file:" error.
What error-handling strategies can we use in xslt? I've tried if(myextention) !="", but that's not catching it...
Am I just going to have to rewrite my C# so that it it hasn't received a response in 1 second it returns a default value?
is working on a reply...