xspec / oXygen-XML-editor-xspec-support

An oxygen XML Editor plugin intended to help those that create XSpec scenarios.
MIT License
11 stars 10 forks source link

XSLT error results in empty pane #24

Closed tofi86 closed 5 years ago

tofi86 commented 6 years ago

If the tested XSLT produces an error (e.g. because of a document($uri) function where the $uri can't be accessed) the result pane is empty, no error is thrown and you have no chance to debug but install xspec as standalone application.

This happens with latest release, tested yesterday.

AlexJitianu commented 6 years ago

It would definitely be good to get feedback. I'll look into it and see how I can intercept the failure. Meanwhile, what you can do in this situation, to present the console, is to click on the following icon that can be found on Oxygen's status bar (bottom-right). output

AirQuick commented 6 years ago

If you add @failonerror="true" to <java>, the error is caught. (The attribute is going to be added by xspec/xspec#266.)

AirQuick commented 5 years ago

Looks like this is no longer reproduced on 1.2.1. (The ANT [XSpec for XSLT] pane opens automatically on failure. There you can see what the actual error is.)

AlexJitianu commented 5 years ago

Version 1.21. of the plugin bundles version 1.2.0 of XSpec. I probably ported the @failonerror fix as well (I see it it in the build_report.xml).