[xslt] Catch xslt stdout errors
- From: Esther Parrilla Endrino <esther parrilla deimos-space com>
- To: xslt gnome org
- Subject: [xslt] Catch xslt stdout errors
- Date: 31 May 2004 10:55:28 +0200
Hi,
I would like to know if there is a way to catch the XSLT error that I
get from the standard output when an error in a transformation occurs,
and write it to a log file.
Resuming, the lines I am using to transform are:
--snip--
cur = xsltParseStylesheetFile((const xmlChar *)xslFile_name);
doc = xmlParseFile(xmlFile_name);
res = xsltApplyStylesheet(cur, doc, params)
xmlSaveFile(formattedFile_name, res);
xsltFreeStylesheet(cur);
xmlFreeDoc(res);
xmlFreeDoc(doc);
xsltCleanupGlobals();
xmlCleanupParser();
--snip--
For example if I can't load the XSL, I get in stdout the following
error:
--snip--
warning: failed to load external entity "./filess/template.xsl"
error
xsltParseStylesheetFile : cannot parse ./filess/template.xsl
--snip--
How can I write this message to a log file and avoid it to appear in
stdout?
I have taken a look at the libxslt API but it is not clear to me which
function should I use to do so...
Thanks,
esther
--
~ Code matters more than comercials ~
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]