Layer 7 API Management

Expand all | Collapse all

XSLT vs Javascript

Jump to Best Answer
  • 1.  XSLT vs Javascript

    Posted 08-07-2019 03:08 AM

    I would like to know which is the most reliable way to make a transformation. In my team we are looking forward to make JSON to JSON tranformations only. As per last 9.4 API Gateway we can achieve this using Javascript or transforming it to XML and apply XSL stylesheets. My question is about which way is more suitable in terms of performance? Because, from my perspective, Javascript is working over a Java layer which I think will not be very high performance but with XSLT you need to transform to XML, apply XSL and transform back. So which one would you use?

    Thank you in advance,


  • 2.  RE: XSLT vs Javascript
    Best Answer

    Posted 08-12-2019 11:03 AM

    The transformation from JSON to XML to JSON again seems heavier than transforming with javascript.
    But due the nature of tranformations involves a series of variables, you will only be sure making some tests and measuring the load on gateway.

    Follow some inputs from documentation:

    Sr. Consultant Services
    HCL Enterprise Studio

  • 3.  RE: XSLT vs Javascript

    Posted 08-13-2019 02:31 AM
    Hi Leandro,

    Thanks for your reply, we'd probably go for Javascript but We will make some performance test to see the diference between them.

    Kind regards,