exception handling and reporting

"kitchen" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
Is there a way to get more verbose messages from the XSLTProcessor?

Right now, when I have a syntax error or such in my xsl sheet, all I
get is an exception when I execute the importStylesheet method.

I'm catching the exception with a try/catch and reporting with the
name, message, and stack properties of the thrown exception, and here's
what I get:

exception.name: exception.message (stack: exception.stack)
null: Component returned failure code: 0x80600001
[nsIXSLTProcessor.importStylesheet] (stack: undefined)

as you'll see, this doesn't even give me the line number or script file
the exception was thrown in.  Since this is a slightly more complicated
object, are there different properties I should be using to get the
information I need? (a description on why parsing failed would be nice,
but a line number and script file at the very *very* least would be
awesome.

I apologize if this is a FAQ, or if it's answered in TFM, all the
searching I have done has come up with nothing (the XSLTProcessor
doesn't seem to be overly well documented, maybe with my work using it
I can fix that :), so a pointer to the place in TFM or a pointer to a
google search is very welcome :)

Thanks!

-Jeremy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.