debugging issues with application of XSLT
Hello, I'm currently attempting to apply an XSL transform to an XML document using LXML. Unfortunately, when I do this I get the following traceback: /usr/lib/python2.7/dist-packages/lxml/etree.so in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:160146)() XSLTApplyError: Failed to evaluate the 'select' expression. Given there are quite a few select expressions in the XSL document (and more than one may be an issue), is there any way to get LXML to spit out the specific expression that triggered this error? Thank you, Nathan
Rice, Nathan Alexander schrieb am 13.07.2015 um 18:29:
I'm currently attempting to apply an XSL transform to an XML document using LXML. Unfortunately, when I do this I get the following traceback:
/usr/lib/python2.7/dist-packages/lxml/etree.so in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:160146)()
XSLTApplyError: Failed to evaluate the 'select' expression.
Given there are quite a few select expressions in the XSL document (and more than one may be an issue), is there any way to get LXML to spit out the specific expression that triggered this error?
Have you looked into the "error_log" of the XSLT object? It might contain more detailed information. Stefan
participants (2)
-
Rice, Nathan Alexander
-
Stefan Behnel