Developer forum

Forum » Integration » C# Scripting in xslt when using XMLProvider

C# Scripting in xslt when using XMLProvider

Jonas Krarup Dam
Reply

Hi, 

Im getting an exception when I'm trying to use c# scripting in xslt, as described here:

https://doc.dynamicweb.com/documentation-9/integration/data-integration-module/integration-providers/xml-provider#sideNavTitle1-5

see screenshot:


It seems the 

settings.EnableScript = true;
is missing for this transformation. 

Im running DW 9.7

Thanks, Jonas

Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Jonas,

Hope you are well :) That is a bug and will be fixed in tfs# 85745. Thanks for the stack trace.
Kind regards, Dmitrij

Votes for this answer: 1
 
Jonas Krarup Dam
Reply

Hi Dmitriy,

I'm good, thank you - hope you are too :-) 

Sounds good.

If you can get away with it, maybe look at updating the transformation to use something more modern than XSLT 1.0, too?  ;-) 

Thanks, Jonas

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Jonas,

I am also fine:) It is not possible right now with standard .Net as it only supports 1.0 vesion
and XSLT 2.0 or .3.0 are in the roadmap for .Net 5. Only third party libraries are availble with XSLT 2.0/3.0.
Kind regards, Dmitrij

 

You must be logged in to post in the forum