The XslCompiledTransform class supports embedded scripts using the msxsl:script element. When the style sheet is loaded, any defined functions are compiled to Microsoftintermediate language (MSIL) by the Code Document Object Model (CodeDOM) and are executed
during run time. The assembly generated from the embedded script block is separate than the assembly generated for the style sheet.
For more information, you could refer to the following link:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
1 Post
Is there a way to generate ASP.NET script blocks in XSL Transform
Mar 27, 2017 01:00 PM|rod24rod|LINK
This is what I'm trying to generate using XSL Transform
This is what I've tried, but it just puts the markup on the page.
Here's what I get, but not's what expected:
Star
8670 Points
2882 Posts
Re: Is there a way to generate ASP.NET script blocks in XSL Transform
Mar 28, 2017 08:03 AM|Cathy Zou|LINK
Hi rod24rod.
From your description, as far as know.
The XslCompiledTransform class supports embedded scripts using the msxsl:script element. When the style sheet is loaded, any defined functions are compiled to Microsoftintermediate language (MSIL) by the Code Document Object Model (CodeDOM) and are executed during run time. The assembly generated from the embedded script block is separate than the assembly generated for the style sheet.
For more information, you could refer to the following link:
https://msdn.microsoft.com/en-us/library/wxaw5z5e(v=vs.110).aspx
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.