[xslt] How I can detect processing errors ?



Hi

While executing following pice of code:

result = xsltApplyStylesheet(styleSheet, data, vars);

I get a lot of errors on stderr:
-----------------------------------
runtime error: file /var/vzcp/xsl/lib/globals.xsl line 11 element
variable
unregistered variable skin
xmlXPathCompiledEval: 1 object left on the stack
runtime error: file /var/vzcp/xsl/lib/globals.xsl line 11 element
variable
Evaluating global variable   being computed ...  failed
runtime error: file /var/vzcp/xsl/lib/globals.xsl line 14 element
variable
unregistered variable skinObj
xmlXPathCompiledEval: evaluation failed
runtime error: file /var/vzcp/xsl/lib/globals.xsl line 14 element
variable
Evaluating global variable   being computed ...  failed
-----------------------------------

but result is returned ad not NULL

how I should detect their errors ?

PS:
Following xsltSaveResultToString() returns NULL in buf but is it right
way ???

-- 
Vladimir B. Grebenschikov
SWsoft Inc.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]