Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jon Boyer 37 posts 59 karma points
    Jul 16, 2012 @ 06:30
    Jon Boyer
    0

    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?

     

Please Sign in or register to post replies

Write your reply to:

Draft