Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix xslt error parsing so filename and line numbers show. #206
This is worth a :facepalm: ...
We can't do better, as the second line in the two errors embellishes the first line and does not duplicate the file/line info.
from io import BytesIO from lxml import etree style = etree.parse("errtest.xml") try: etree.XSLT(style) except etree.XSLTParseError as e: print e.error_log