"XsltSettings.EnableScript"-Error when using XSLT Preview with JavaScript extensions

Hi community,

as far as i know, it is possible to integrate XSLT Stylesheets as XML Previews in Studio. Works fine for me with simple XSLTs. However, i tried to use JavaScript extensions for some complex operations. Then i get an exception with some kind of security violation:

"Die Ausführung von Scripts wurde verhindert. Verwenden Sie die XsltSettings.EnableScript-Eigenschaft, um die Ausführung zu aktivieren".

In English, it means something like this:

The script execution was prohibited. Use the XsltSettings.EnableScript property to allow execution.

Unfortunately, i have no opportunity to activate this property. I think that this property needs to be activated in Studio itself, where the preview window is integrated (maybe it's a property of the windows forms control which is used in studio to display the preview).

Can anyone help me with this? (Unfortunately, the SDL Trados Studio Support could not help me.)

Best Regards,
Mario Trojan

Parents
  • Hi,

    this is the first requirement for this particular property of the XSLT transformation. I will add it as new feature request for some of future releases.

    As alternative till this is available - you can use API to extend any existing filter by providing custom preview - there you can add whatever features required.

    Regards

    Patrik

Reply
  • Hi,

    this is the first requirement for this particular property of the XSLT transformation. I will add it as new feature request for some of future releases.

    As alternative till this is available - you can use API to extend any existing filter by providing custom preview - there you can add whatever features required.

    Regards

    Patrik

Children