2015-01-14 12:14 GMT+01:00 Chris Angelico <ros...@gmail.com>:

> Would it be possible to do a one-off transformation of the entire XSLT
> file into a Python module with a single function in it, and then every
> time you need that XSLT, you import that module and call the function?
> That would potentially be a lot quicker than exec(), *and* would be
> much clearer - there'd be an actual file on the disk with your
> generated Python code, and anyone could read it and understand what
> it's doing.
>
I've done some tests executing compiled generated python and it doesn't
seem to be worth over processing xslt directly. What you propose could be a
solution. In fact I'm not sure yet how it will be designed.

Thank you for feedback anyway.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to