[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] handling stylesheet errors

Subject: [list4xt] handling stylesheet errors
From: guy (guy@polylab.sfu.ca)
Date: 11/07/2001 - 21:02


I deleted the original email but someone was asking about finding errors
in your
stylesheet. I think you have to specify the exception in your
XSLTServlet.

Please let me know if this is any help.
Guy

Here is the code I use:

   try {
      cached.loadStylesheet(new
InputSource(getServletContext().getResource(stylesheet).toString()));
    }
   catch (SAXParseException e) {
        System.out.println("Error in " + e.getSystemId() +
                        " at line " + e.getLineNumber() +
                       " column " + e.getColumnNumber());
        throw new ServletException(e);
     }
    catch (SAXException e) {
        System.out.println("*SAXEXCEPTION*");
        throw new ServletException(e);
    }
    catch (IOException e) {

System.out.println("*IOEXCEPTION*");
      throw new ServletException(e);
    }

--
Mailing list for the XT users community.     (http://merchantaccountmentors.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org


A site designed by Dyomedea