zepheira / amara

Amara 2.0. Amara XML toolkit is an open-source collection of Python tools for XML processing, not just tools that happen to be written in Python, but tools built from the ground up to use Python idioms and take advantage of the many advantages of Python over other programming languages.
http://wiki.xml3k.org/Amara2
Apache License 2.0
23 stars 9 forks source link

KeyError when handling errors #14

Open chimezie opened 11 years ago

chimezie commented 11 years ago

When I hit an error in an XSL transform, amara triggers a KeyError while attempting to handle the error, giving the following traceback:

File "/Library/Python/2.6/site-packages/amara/xslt/tree/attribute_types.py", line 457, in prepare col=element.columnNumber, msg=str(error)) File "/Library/Python/2.6/site-packages/amara/init.py", line 29, in init message %= kwds KeyError: 'text'