Question Arek Makarenko · Aug 28, 2018 XSLT Transformations with Javascript in xslt stylesheet #Ensemble HiI am trying to make transofromation of one stylesheet containg some Javascript. transform.TransformStream fails each time xslt contains javasript. Is there a way of making it work?Arek
Jonathan Levinson Oct 18, 2018 to Jonathan Levinson If the question is, can XSLT process JavaScript, the answer is no. XSLT processors are not able to process JavaScript. If the question is can XSLT include JavaScript as character data by using appropriate escapes the answer is yes.
Arek Makarenko Oct 19, 2018 to Jonathan Levinson Thank you. I wasn't 100% certain about this. .net transformation library do allow processing javascript.
Eduard Lebedyuk Oct 19, 2018 to Jonathan Levinson Some XSLT engines can process arbitrary javascript as code.
No
If the question is, can XSLT process JavaScript, the answer is no. XSLT processors are not able to process JavaScript. If the question is can XSLT include JavaScript as character data by using appropriate escapes the answer is yes.
Thank you. I wasn't 100% certain about this.
.net transformation library do allow processing javascript.
Some XSLT engines can process arbitrary javascript as code.