I'm trying to find out why lxml cannot parse an XSL document which consists of a "root" document with various xml:include
s. I get an error:
Traceback (most recent call last):
File "s.py", line 10, in <module>
xslt = ET.XSLT(ET.parse(d))
File "xslt.pxi", line 409, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:151978)
lxml.etree.XSLTParseError: Invalid expression
That tells me where in the lxml source the error is, but is there a way to get more through lxml about where in the xsl the error is, or should I be using a different method? I'm trying to provide a service that accepts XSL documents, so I don't have access to an XML editor to debug manually. What I would like to do though is give feedback about why a transformation didn't succeed.