Question
Arek Makarenko · Aug 28, 2018

XSLT Transformations with Javascript in xslt stylesheet

Hi


I 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

0
0 233
Discussion (4)2
Log in or sign up to continue

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.