bsuh / node_xslt

a simple XSLT addon for node
zlib License
71 stars 17 forks source link

capture internal errors #25

Open MartijnR opened 10 years ago

MartijnR commented 10 years ago

Would be nice if we could capture internal warnings (and errors).

In particular output generated by <xsl:message>a warning message</xsl:message>.

andreyvital commented 10 years ago

@MartijnR I'll try something.

MartijnR commented 10 years ago

Thanks @andreyknupp!

Yes, retrievable after transformation is complete (or has quit due to a fatal error) - synchronously seems most useful in my opinion - with something like .getErrors(), basically the equivalent of libxml_get_errors which returns three different type of errors (warning, error, fatal).

andreyvital commented 10 years ago

Yep!